A developer is creating a Lightning web component to show a list of sales records. The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field. How should this be enforced so that the component works for both users without showing any errors? A. Use Lightning Data Service to get the collection of sales records. B. use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component. C. Use Lightning Locker Service to enforce sharing rules and field-level security. D. Use Security.stripInaccessible to remove fields inaccessible to the current user. Â Suggested Answer: D Community Answer: D This question is in CRT-450 Salesforce Certified Platform Developer I Exam For getting Salesforce Certified Platform Developer I Disclaimers: The website is not related to, affiliated with, endorsed or authorized by Salesforce. Trademarks, certification & product names are used for reference only and belong to Salesforce. The website does not contain actual questions and answers from Salesforce's Certification Exams.
Please login or Register to submit your answer