Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 29 Topic 3 Discussion

Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 29 Topic 3 Discussion

PDI Exam Topic 3 Question 29 Discussion:
Question #: 29
Topic #: 3

A developer created a new after insert trigger on the Lead object that creates Task records for each Lead.

After deploying to production, an existing outside integration that inserts Lead records in batches to Salesforce is occasionally reporting total batch failures being caused by the Task insert statement. This causes the integration process in the outside system to stop, requiring a manual restart.

Which change should the developer make to allow the integration to continue when some records in a batch cause failures due to the Task

insert statement, so that manual restarts are not needed?


A.

Use the Database method with allow one set to false.


B.

Deactivate the trigger before the integration runs.


C.

Remove the Apex class from the integration user's profile.


D.

Use a try-catch block after the insert statement.


Get Premium PDI 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.