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:

Cathrine
2 days ago
But option D doesn't seem to address the issue with the assertion failure.
upvoted 0 times
...
Amie
8 days ago
I disagree, I believe the correct answer is D.
upvoted 0 times
...
Cathrine
11 days ago
I think the correct answer is A.
upvoted 0 times
...
Ronnie
12 days ago
Option C looks interesting with the @IsTest(seeAllData=true) annotation. That might be the easiest solution to bypass any permission issues.
upvoted 0 times
...
Jody
17 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
Bong
1 days ago
I think option B is correct. Querying the Standard User should help with permissions.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77