nerdexam
SalesforceSalesforce

PDI · Question #17

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

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

Submitted by anjalisingh· Apr 18, 2026Testing, Debugging, and Deployment

Question

A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?

Options

  • AWrite a class that extends HTTPCalloutMock.
  • BWrite a class that implements the HTTPCalloutMock interface.
  • CWrite a class that implements the WebserviceMock interface.
  • DWrite a class that extends WebserviceMock

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#Callout Mocking#HTTPCalloutMock#Unit Testing
Full PDI PracticeBrowse All PDI Questions