SF-PD2 • Practice Test 12
Free SF-PD2 practice test — 15 questions with explanations. Set 12. No signup required.
A developer needs to write a unit test for an Apex class that performs a callout to an external REST endpoint. The test must not make a real HTTP request and must simulate a successful response with a specific status code and body. Which approach should the developer use?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.