nerdexam
Salesforce

CRT-450 · 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…

The correct answer is D. Use the Database method with all or None set to false. See the full explanation below for the reasoning.

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

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    11% (3)
  • C
    4% (1)
  • D
    82% (23)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice