nerdexam
Salesforce

CRT-450 · Question #192

A developer is alerted to an issue with a custom Apex trigger that is causing records to be duplicated. What is the most appropriate debugging approach to troubleshoot the issue?

The correct answer is D. Add system.debug statements to the code to track the execution flow and identify the issue. See the full explanation below for the reasoning.

Question

A developer is alerted to an issue with a custom Apex trigger that is causing records to be duplicated. What is the most appropriate debugging approach to troubleshoot the issue?

Options

  • ADisable the trigger m production and test to see If the issue still occurs.
  • BUse the Apex Interactive Debugger to step through the code and Identify the issue.
  • CReview the Historical Event logs to Identify the source of the issue.
  • DAdd system.debug statements to the code to track the execution flow and identify the issue.

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    18% (7)
  • C
    8% (3)
  • D
    72% (28)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice