Salesforce Certified Platform Developer 1 (SP25) CRT-450 Question # 40 Topic 5 Discussion

Salesforce Certified Platform Developer 1 (SP25) CRT-450 Question # 40 Topic 5 Discussion

CRT-450 Exam Topic 5 Question 40 Discussion:
Question #: 40
Topic #: 5

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 CRT-450 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.