SalesforceSalesforce
PDI · Question #123
PDI Question #123: Real Exam Question with Answer & Explanation
Sign in or unlock PDI to reveal the answer and full explanation for question #123. The question stem and answer options stay visible for context.
Submitted by eva_at· Apr 18, 2026Logic and Process Automation
Question
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
Options
- AUse if (Schema, sobjectType, Contact, isUpdatable ( ) )
- BUse if (Schema , sobjectType. Contact. Field, Is_Active_c. is Updateable ( ) )
- CUse if (Schema.sObjectType.Contact.isAccessible ( ) )
- DUse if (thisContact.Owner = = UserInfo.getuserId ( ) )
Unlock PDI to see the answer
You've previewed enough free PDI questions. Unlock PDI for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Apex Security#CRUD/FLS Enforcement#Schema Class#DML Operations