pdi question 284 discussion

View all Platform Developer I Exam here
back to salesforce forum

Question 284

A developer migrated functionality from JavaScript Remoting to a Lightning web component and
existing getOpportunities method to provide data.

  • A. The method must be decorated with (cacheable=true).
  • B. The method must be decorated with @AuraEnabied.
  • C. The method must return a JSON Object.
  • D. The method must return a String of a serialized JSON Array.
Answer:

A


User Votes:
A 2 votes
50%
B 2 votes
50%
C 1 votes
50%
D
50%
Discussions
0 / 1000
Soukoum
1 year ago

Answer is A