nerdexam
SalesforceSalesforce

PDI · Question #105

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

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

Submitted by krish.m· Apr 18, 2026Testing, Debugging, and Deployment

Question

What writing an Apex class, a developer warts to make sure thai all functionality being developed Is handled as specified by the requirements. Which approach should the developer use to be sure that the Apex class is working according tospecification?

Options

  • ACreate a test class to execute the business logic and run the test in the Developer Console.
  • BInclude a savepoint and Database,rollback.
  • CInclude a try/catch block to the Apex class.
  • DRun the code in an Execute Anonymous block n the Deceloper Consider.

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#Unit Testing#Test Classes#Code Verification
Full PDI PracticeBrowse All PDI Questions