ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 342 - Certified Platform Developer II discussion

Report
Export

A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component.

Which two lines must change in the above ode to make the Apex method able to be wired?

Choose 2 answers

A.
Add AuraEnanled(cacheabletrue) to the line 08
Answers
A.
Add AuraEnanled(cacheabletrue) to the line 08
B.
Remove private from line 09.
Answers
B.
Remove private from line 09.
C.
Add @AuraEnabled (cacheabletrue) to line 03.
Answers
C.
Add @AuraEnabled (cacheabletrue) to line 03.
D.
Add public to line 04.
Answers
D.
Add public to line 04.
Suggested answer: C, D
asked 23/09/2024
Vimal Varughese
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first