nerdexam
SalesforceSalesforce

PDI · Question #100

PDI Question #100: Real Exam Question with Answer & Explanation

Sign in or unlock PDI to reveal the answer and full explanation for question #100. The question stem and answer options stay visible for context.

Submitted by valeria.br· Apr 18, 2026Testing, Debugging, and Deployment

Question

A developer needs to create a baseline set of data (Account, Contacts, Products, Assets) for an entire suite allowing them to test independent requirements for various types of Salesforce Cases. Which approach can efficiently generate the required data for each unit test?

Options

  • AUse &TestSteup with a void method.
  • BCreate test data before Test.startTest in the unit test.
  • CCreate a mock using the Stub APL.
  • DAdd $ IsTest (seeAllDatatrue) at the start of the unit test class.

Unlock PDI to see the answer

You've previewed enough free PDI questions. Unlock PDI 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.

Topics

#Apex Testing#Test Data#@TestSetup#Unit Tests
Full PDI PracticeBrowse All PDI Questions