Salesforce
PDII · Question #204
PDII Question #204: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #204. The question stem and answer options stay visible for context.
Question
A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of all the test data that is needed to perform the tests. What should the developer do to speed up test execution?
Options
- ADefine a method that creates test data and annotate with @testSetup
- BReduce the amount of test methods in the class
- CEnsure proper usage of test data factory in all test methods
- DDefine a method that creates test data and annotate with @createData
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.