SalesforceSalesforce
PDI · Question #5
PDI Question #5: Real Exam Question with Answer & Explanation
Sign in or unlock PDI to reveal the answer and full explanation for question #5. The question stem and answer options stay visible for context.
Submitted by tarun92· Apr 18, 2026User Interface
Question
A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?
Options
- AAdd cuatom controller attributes to display the message.
- BInclude <apex:message> on the Visualforce page.
- CUse a try/catch with a custom exception class.
- DPerform the DML using the Database.upsert() method.
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
#Visualforce#Error Handling#Validation Rules#User Interface