Salesforce Certified Platform Developer II — Question 159
Which three approaches should a developer implement to obtain the best performance for data retrieval when building a Lightning web component? (Choose three.)
Answer options
- A. Use (Cacheable=true) whenever possible.
- B. Use the Lightning Data Service.
- C. Use layoutTypes: [‘Full’] to display a set of fields.
- D. Use lazy load for occasionally accessed data.
- E. Use getRecordUi to obtain metadata.
Correct answer: A, B, E
Explanation
The correct answers A, B, and E focus on improving performance through caching, utilizing the built-in service for data handling, and efficiently retrieving metadata. Options C and D do not primarily enhance data retrieval performance; C is more about layout presentation, while D pertains to data access timing rather than retrieval efficiency.