nerdexam
Salesforce

PDI · Question #216

A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object, Pricing Structure c. AW Computing has

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

Submitted by chen.hong· Apr 18, 2026Testing, Debugging, and Deployment

Question

A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object, Pricing Structure c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records. Which two approaches can the developer use to ensure Pricing _Structure__c records are available when the test class is executed? Choose 2 answers

Options

  • AUse a Test Date Factory class.
  • BUse the @raTeat (seeAllData=true) annotation.
  • CUse the Test. leadtear{} method,
  • DUse without shering on the class declaration.

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#Test Data Factory#Test.loadData
Full PDI Practice