Which code modification should be made to insert the Accounts so that field-level security is respected?

code below deserializes input into a list of Accounts.

Which code modification should be made to insert the Accounts so that field-level security is respected?
A . 01: Public with sharing class AcctCreator
B . 05: If (SobjectType.Account, isCreatable())
C . 05: Accts = database.stripinaccesible (accts, Database. CREATEABLE);
D . 05: SobjectAcessDecision sd= Security,stripINaccessible(AccessType,CREATABLE,

Answer: A

Latest PDI Dumps Valid Version with 191 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
2 Comments
Inline Feedbacks
View all comments
S
S
2 years ago

Use the stripInaccessible method to enforce field- and object-level data protection. This method can be used to strip the fields and relationship fields from query and subquery results that the user can’t access. The method can also be used to remove inaccessible sObject fields before DML operations to avoid exceptions and to sanitize sObjects that have been deserialized from an untrusted source.

Daniel
Daniel
1 year ago
Reply to  S

so should it be C or D?