Salesforce
CRT-450 · Question #9
CRT-450 Question #9: Real Exam Question with Answer & Explanation
Sign in or unlock CRT-450 to reveal the answer and full explanation for question #9. The question stem and answer options stay visible for context.
Question
A Lightning component has a wired property, searchResults, that stores a list of Opportunities. Which definition of the Apex method, to which the searchResults property is wired, should be used?
Options
- A@AuraEnabled(cacheable=true)
- B@AuraEnabled(cacheable=true) public List<Opportunity> search(String term)
- C@AuraEnabled(cacheable=false) public static List<Opportunity> search(String term)
- D@AuraEnabled(cacheable=false) public List<Opportunity> search(String term)
Unlock CRT-450 to see the answer
You've previewed enough free CRT-450 questions. Unlock CRT-450 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.