Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 357 discussion

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

Which two scenarios require an Apex method to be called imperatively from a Lightning web component? (Choose two.)

  • A. Calling a method that makes a web service callout
  • B. Calling a method that is not annotated with cacheable=true
  • C. Calling a method with the click of a button
  • D. Calling a method that is external to the main controller for the Lighting web component
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
irina_735
1 year, 2 months ago
Selected Answer: BC
В - To call a method that isn’t annotated with cacheable=true https://developer.salesforce.com/docs/platform/lwc/guide/apex-call-imperative.html С - because you can`t call @wire metods when you want it, for example when click a button
upvoted 1 times
irina_735
1 year, 1 month ago
as for C : "Call Apex Methods Imperatively. To control when the method invocation occurs (for example, in response to clicking a button), call the method imperatively." https://developer.salesforce.com/docs/platform/lwc/guide/apex-call-imperative.html
upvoted 1 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 ...