A developer is creating a Lightning web component to showa 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 WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.
B. Use Security. stripInaccessible to remove fields inaccessible to the current user.
C. Use Lightning Data Service to get the collection of sales records.
D. Use Lightning Locker Service to enforce sharing rules and field-level security.
Answer: B
Latest PDI Dumps Valid Version with 191 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund