exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 358 discussion

Actual exam question from Salesforce's CRT-450
Question #: 358
Topic #: 1
[All CRT-450 Questions]

Refer to the code snippet below:



When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed to the end-user.

Which three considerations must the developer implement to make the fetchOpportunities method available within the Lightning web component? (Choose three.)

  • A. The method cannot mutate the result set retrieved from the database.
  • B. The method must be annotated with the @InvocableMethod annotation.
  • C. The method must specify the (cacheable=true) attribute.
  • D. The method must be annotated with the @AuraEnabled annotation.
  • E. The method must specify the (continuation=true) attribute.
Show Suggested Answer Hide Answer
Suggested Answer: ACD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
irina_735
9 months ago
Selected Answer: ACD
The wire service provisions an immutable stream of data to the component (To mutate the data, a component should make a shallow copy of the objects it wants to mutate) The @AuraEnabled annotation enables client-side and server-side access to an Apex controller method @AuraEnabled(cacheable=true) is obligatory to use @wire decorator https://developer.salesforce.com/docs/platform/lwc/guide/apex-wire-method.html https://developer.salesforce.com/docs/platform/lwc/guide/data-wire-service-about.html
upvoted 4 times
...
esabbatini
1 year ago
Selected Answer: ACE
-Invocable method is used to the flow , it does'nt matter in thi case -continuation is used to the callout , not in thi case -cache is bettere becuase it get fast the response -@aura is a must ! -the data is not mutable!
upvoted 1 times
BrucePark
10 months, 3 weeks ago
Then shouldn't it be ACD?
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...