ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 233 - Certified Platform Developer II discussion

Report
Export

A developer wrote a test class that successfully asserts a trigger on Account. It fires and updates data correctly in a sandbox environment.

A salesforce admin with a custom profile attempts to deploy this trigger via a change set into the production environment, but the test class fails with an insufficient privileges error.

What should a developer do to fix the problem?

A.
Add system.runAs ( ) to the best class to execute the trigger as a user with the correct object permissions.
Answers
A.
Add system.runAs ( ) to the best class to execute the trigger as a user with the correct object permissions.
B.
Configure the production environment to enable "Run All tests as Admin User."
Answers
B.
Configure the production environment to enable "Run All tests as Admin User."
C.
Verify that Test, statement ( ) is not inside a For loop in the test class.
Answers
C.
Verify that Test, statement ( ) is not inside a For loop in the test class.
D.
Add seeAllData=true to the test class to work within the sharing model for the production environment.
Answers
D.
Add seeAllData=true to the test class to work within the sharing model for the production environment.
Suggested answer: A
asked 23/09/2024
Liusel Herrera Garcia
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first