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

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 283 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 283
Topic #: 1
[All Certified Platform Developer II 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 Lightning web component
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
beardAnt
4 weeks, 1 day ago
Selected Answer: BC
Answer should be BC To control when the method invocation occurs (for example, in response to clicking a button), call the method imperatively. In the following scenarios, you must call an Apex method imperatively as opposed to using @wire. To call a method that isn’t annotated with cacheable=true, which includes any method that inserts, updates, or deletes data.
upvoted 1 times
...
aregas
5 months, 2 weeks ago
Selected Answer: BD
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_call_imperative In the following scenarios, you must call an Apex method imperatively as opposed to using @wire: To call a method that isn’t annotated with cacheable=true, which includes any method that inserts, updates, or deletes data. To control when the invocation occurs. To work with objects that aren’t supported by User Interface API, like Task and Event. To call a method from an ES6 module that doesn’t extend LightningElement
upvoted 1 times
...
AppleDash
1 year, 8 months ago
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_call_imperative
upvoted 4 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 ...