Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 11 Topic 2 Discussion

Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 11 Topic 2 Discussion

PDI Exam Topic 2 Question 11 Discussion:
Question #: 11
Topic #: 2

A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of Apex tests allowing

them to test isolated requirements for various types of Salesforce cases.

Which approach can efficiently generate the required data for each unit test?


A.

Create a mock using the HttpcalloutMock interface.


B.

Use @TestSetup with a void method.


C.

Add @IsTest (seeAllData=true) at the start of the unit test class.


D.

Create test data before Test .startTest() in the unit test.


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.