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 344 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 344
Topic #: 1
[All Certified Platform Developer II Questions]

A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of AccountWrappers and is called imperatively from a JavaScript event handler.



Which two changes should the developer make so the Apex method functions correctly? (Choose two.)

  • A. Add @AuraEnabled to line 09.
  • B. Add @AuraEnabled to line 03.
  • C. Add @AuraEnabled to lines 11 and 12.
  • D. Add @AuraEnabled to line 01.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
M4JK3LSON
11 months ago
Selected Answer: B
BC, Apex method which is ready to use by Aura or LWC have to be @AuraEnabled method decorades and all of fields includewd in returned wrapper type
upvoted 1 times
...
Genki_Sugisaki
1 year, 8 months ago
Do you need to choose two B is right too
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 ...