Salesforce Certified Platform Developer II — Question 69
A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page.
Which design resource configuration should be used?
Answer options
- A. <design:component label="Account FS Component"> <design:attribute name="fieldSetName" Label="Field Set Name" /> <sfdc:objects> <sfdc:object>FieldSet</sfdc:object> </sfdc:objects> </design:component>
- B. <design:component label="Account FS Component"> <design:attribute name="fieldSetName" label="Field Set Name" /> <sfdc:objects> <sfdc:object>Account</sfdc:object> </sfdc:objects> </design:component>
- C. <design:component label="Account FS Component"> <aura:attribute name="fieldSetName" label="Field Set Name" /> <sfdc:objects> <sfdc:object>FieldSet</sfdc:object> </sfdc:objects> </design:component>
- D. <design:component label="Account FS Component"> <aura:attribute name="fieldSetName" label="Field Set Name" /> <sfdc:objects> <sfdc:object>Account</sfdc:object> </sfdc:objects> </design:component>
Correct answer: B
Explanation
The correct answer, B, specifies the object as 'Account', which is necessary for the component to be used on the Account record page. Options A and C incorrectly reference 'FieldSet' instead of 'Account', making them unsuitable. Option D uses 'aura:attribute', which is not compatible with the required design resource for this scenario.