pdii question 366 discussion

View all Platform Developer II Exam here
back to salesforce forum

Question 366

A developer wrote an Apex method to update a list of Contacts and wants to make it available for use
by Lightning web components.
Which annotation should the developer add to the Apex method to achieve this?

  • A. @AuraEnabled
  • B. @RemoteAction
  • C. @RemoteAction(cacheable=true)
  • D. @AuraEnable
Answer:

D


User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
0 / 1000
Bhawna
1 year, 4 months ago

It should be A. @AuraEnabled