nerdexam
Salesforce

PDII · Question #411

PDII Question #411: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #411. The question stem and answer options stay visible for context.

Question

Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?

Options

  • AUse the Database.Delete method if the Contact insertion fails.
  • BUse the Database.Insert method with allOrNone set to False.
  • CDisable Validation rules on Contacts and set default values with a Trigger.
  • DUse setSavePoint() and rollback() with a try/catch block.

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII 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.

Full PDII Practice