Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 7 Topic 1 Discussion

Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 7 Topic 1 Discussion

PDII Exam Topic 1 Question 7 Discussion:
Question #: 7
Topic #: 1

Business rules require a Contact ta 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?


A.

Use setSaverpoint (1) and rollback() with a try-catch block.


B.

Use the Database. Insect method with a11orNone SEL LO alee,


C.

Use the Database. Delete method if the Contact insertion fails.


D.

Disable validation rules on Contacts and set default values with a trigger.


Get Premium PDII Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.