Salesforce
PDI · Question #78
A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically reporting errors. Which
Sign in or unlock PDI to reveal the answer and full explanation for question #78. The question stem and answer options stay visible for context.
Submitted by hans_de· Apr 18, 2026Logic and Process Automation
Question
A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically reporting errors. Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?
Options
- ADeactivate the trigger before the integration runs.
- BUse a try-catch block after the insert statement.
- CRemove the Apex class from the integration user's profile.
- DUse the Database method with all or None set to false
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 DML#Partial Success#Transaction Control#Error Handling