Salesforce
CRT-450 · Question #90
A developer wants to improve runtime performance of Apex calls by caching result on the client. What is the most efficient way to implement this and follow best practices?
The correct answer is C. Decorate the server-side method with @AuraEnabled (cacheable-true. See the full explanation below for the reasoning.
Question
A developer wants to improve runtime performance of Apex calls by caching result on the client. What is the most efficient way to implement this and follow best practices?
Options
- ADecorate the server-side method with @AuraEnabled (total-true).
- BCall the setStoeable () method on the action in the javaScript client-sidecode.
- CDecorate the server-side method with @AuraEnabled (cacheable-true.
- DSet a ciikie in the browser for use upon return to the page.
How the community answered
(57 responses)- A5% (3)
- B18% (10)
- C70% (40)
- D7% (4)
Community Discussion
No community discussion yet for this question.