Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 51 Topic 6 Discussion

Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 51 Topic 6 Discussion

PDI Exam Topic 6 Question 51 Discussion:
Question #: 51
Topic #: 6

While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous window succeeds with no exceptions or errors.

Why did the method fail in the sandbox test framework but succeed in the Developer Console?


A.

The test method does not use system. runAs to execute as a specific user.


B.

The test method is calling an @future method.


C.

The test method relies on existing data in the sandbox.


D.

The test method has a syntax error in the code.


Get Premium PDI Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.