New Year Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmasmnth

A developer created a Lightning web component for the Account record page that displays the...

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.

Java

01:

02: public class ContactFetcher {

03:

04: static List getRecentContacts(Id accountId) {

05: List contacts = getFiveMostRecent(accountId);

06: return contacts;

07: }

08: private static List getFiveMostRecent(Id accountId) {

10: //...implementation...

11: }

12: }

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

A.

Add public to line 04.

B.

Add @AuraEnabled(cacheable=true) to line 08.

C.

Remove private from line 09.

D.

Add @AuraEnabled(cacheable=true) to line 03.

Salesforce PDII Summary

  • Vendor: Salesforce
  • Product: PDII
  • Update on: Dec 26, 2025
  • Questions: 161
Price: $52.5  $149.99
Buy Now PDII PDF + Testing Engine Pack

Payments We Accept

Your purchase with ExamsVCE is safe and fast. Your products will be available for immediate download after your payment has been received.
The ExamsVCE website is protected by 256-bit SSL from McAfee, the leader in online security.

examsvce payment method