nerdexam
Salesforce

PDII · Question #404

PDII Question #404: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #404. The question stem and answer options stay visible for context.

Question

An Apex trigger creates an Order__c record every time an Opportunity is won by a Sales Rep. Recently the trigger is creating two orders. What is the optimal method for a developer to troubleshoot this?

Options

  • ASet up debug logging for every Sales Rep, then monitor the logs for errors and exceptions.
  • BTurn off all Workflow Rules, then turn them on one at time to see which one causes the error.
  • CAdd system.debug() statements to the code and use the Developer Console logs to trace the
  • DRun the Apex Test Classes for the Apex trigger to ensure the code still has sufficient code

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII 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.

Full PDII Practice