Salesforce
CRT-450 · Question #106
Refer to the code snippet below: When a Lightning web component is rendered, a list of apportunities that match certain criteria shopuld be retrievved from the database and displayed to the end…
The correct answer is A. The method must specify the (cacheable-trun) attribute D. The method cannot mutate the result set retrieved from the database. E. The method must be annotated with the AureEnabled annolation. See the full explanation below for the reasoning.
Question
Refer to the code snippet below:
When a Lightning web component is rendered, a list of apportunities that match certain criteria shopuld be retrievved from the database and displayed to the end user. Which three Considerations must the developer implement to make the method available within the Lightning web component? Choose 3 answer
Options
- AThe method must specify the (cacheable-trun) attribute
- BThe method must specify the (continuation-true) attribute
- CThe method must be annotaled with true Invocablemethod annolation
- DThe method cannot mutate the result set retrieved from the database.
- EThe method must be annotated with the AureEnabled annolation
How the community answered
(47 responses)- A70% (33)
- B9% (4)
- C21% (10)
Community Discussion
No community discussion yet for this question.