Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam DEX-450 Topic 2 Question 112 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 112
Topic #: 2
[All DEX-450 Questions]

Consider the following code snippet:

As part of the deployment cycle, a developer creates the following test class:

When the test class runs, the assertion fails.

Which change should the developer implement in the Apex test method to ensure the test method executes successfully?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Jody
1 days ago
The code seems to be dealing with permissions, so I think option B is the way to go. Querying the Standard User and running the test as that user should ensure the test passes.
upvoted 0 times
...

Save Cancel