Salesforce
PDII · Question #8
PDII Question #8: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #8. The question stem and answer options stay visible for context.
Question
A developer wishes to improve runtime performance of Apex calls by caching results on the client. What is the best way to implement this?
Options
- ADecorate the server-side method with @AuraEnabled(cacheable=true).
- BSet a cookie in the browser for use upon return to the page.
- CCall the setStorable() method on the action in the JavaScript client-side code.
- DDecorate the server-side method with @AuraEnabled(storable=true).
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.