Exam4Training

In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access?

Given the following code snippet, that is part of a custom controller for a Visualforce page:

In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers
A . Use if (Schema, sobjectType, Contact, isUpdatable ( ) )
B. Use if (Schema , sobjectType. Contact. Field, Is_Active_c. is Updateable ( ) )
C. Use if (Schema.sObjectType.Contact.isAccessible ( ) )
D. Use if (thisContact.Owner = = UserInfo.getuserId ( ) )

Answer: A,B

Latest PDI Dumps Valid Version with 191 Q&As

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

Exit mobile version