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

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

Universal Containers analyzes a Lightning web component and its Apex controller class that retrieves a list of contacts associated with an account. The code snippets are as follows:



Based on the code snippets, what change should be made to display the contacts' mailing addresses in the Lightning web component?

  • A. Add a new method in the Apex controller class to retrieve the mailing addresses separately and modify the Lightning web component to invoke this method.
  • B. Modify the SOQL query in the getAccountContacts method to include the MailingAddress field.
  • C. Modify the SOQL query in the getAccountContacts method to include the MailingAddress field and update the columns attribute in javascript file to add Mailing address fields.
  • D. Extend the lightning-datatable component in the Lightning web component to include a column for the MailingAddress field.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
beardAnt
2 weeks, 4 days ago
Selected Answer: C
Should be C https://developer.salesforce.com/docs/component-library/bundle/lightning-datatable/example
upvoted 1 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 ...