Salesforce Certified Platform Developer II — Question 249

A developer is building a complex commission calculation engine in Apex that is called from an Opportunity trigger. During QA it was reported that the calculations are incorrect.

The developer has representative test data and passing test methods in their developer sandbox.

Which three tools or techniques could the developer use to execute the code and pause it at key lines to visually inspect values of various Apex variables? (Choose three.)

Answer options

Correct answer: A, D, E

Explanation

The correct answers are A, D, and E because the Developer Console allows for execution and variable inspection, the Apex Interactive Debugger provides a real-time debugging session, and the Apex Replay Debugger allows for replaying and step-through debugging of past executions. Options B and C are not valid for this scenario; Breakpoints are a feature within the debugger tools, and Workbench does not offer direct debugging capabilities.