Exam Plat-Dev-301 Topic 1 Question 71 Discussion

Actual exam question for Salesforce's Plat-Dev-301 exam
Question #: 71
Topic #: 1
A developer is building a Lightning web component that retrieves data from Salesforce and assigns it to the record property.

What must be done in the component to get the data from Salesforce? A)

B) C)

Suggested Answer: A Vote an answer

Option A is the correct answer. The @wire decorator is used in conjunction with getRecord from lightning/uiRecordApi to retrieve a record from Salesforce. The syntax @wire(getRecord, { recordId: '$recordId', fields: '$fields' }) sets up a reactive property, which means it will automatically rerun whenever the recordId or fields property changes.
Get Record Data

by Mortimer at Jul 01, 2026, 01:11 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
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.

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어