Salesforce
PDII · Question #370
PDII Question #370: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #370. The question stem and answer options stay visible for context.
Question
Universal Containers develops a Salesforce application that requires frequent interaction with an external REST API. To avoid duplicating code and improve maintainability, how should they implement the API integration for code reuse?
Options
- AStore the API integration code as a static resource and reference it in each Apex class.
- BCreate a reusable Apex class for the API integration and invoke it from the relevant Apex classes.
- CInclude the API integration code directly in each Apex class that requires it.
- DUse a separate Apex class for each API endpoint to encapsulate the integration logic.
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII 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.