Salesforce
PDII · Question #40
PDII Question #40: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #40. The question stem and answer options stay visible for context.
Question
A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?
Options
- AMove the prerequisite reference data setup to a TestDataFactory and call that from each test
- BMove the prerequisite reference data setup to a @testSetup method in the test class.
- CMove the prerequisite reference data setup to a static method in the test class and call that from
- DMove the prerequisite reference data setup to the constructor for the test class.
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.