SF-PD2 • Practice Test 8
Free SF-PD2 practice test — 10 questions with explanations. Set 8. No signup required.
A developer needs to write an Apex test class for a service that makes a callout to an external REST API. The test must simulate different HTTP response codes, including 200, 404, and 500. Which approach should the developer use to ensure the test covers all scenarios without making actual callouts?
Choose an answer to begin — your selection is scored in the full session.
10 questions · instant feedback and full explanations after every question.