SF-PD2 Testing, Debugging, and Deployment Practice Question
A developer wants to inspect private variable states and trace execution paths of a complex trigger framework during a sandbox debugging session. Which tool should the developer use to capture this diagnostic information?
⚠ Common exam trap
Candidates often confuse setup audit trails or general logging tools with the Developer Console, failing to recognize that the Log Inspector is specifically engineered for real-time transaction debugging.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Salesforce Developer Console Log Inspector
The Developer Console includes a powerful execution log inspector and perspective layout specifically designed for tracing Apex transactions. Debug logs record database queries, heap allocations, and method entries, enabling developers to isolate root causes of unexpected runtime behaviors efficiently during active troubleshooting sessions.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Salesforce Setup Audit Trail
Why it's wrong here
The Setup Audit Trail tracks administrative configuration changes made within an organization over time, such as profile updates or sharing rule modifications. It does not capture runtime execution details, variable values, or method call stacks generated by running Apex code.
- ✓
Salesforce Developer Console Log Inspector
Why this is correct
The Log Inspector provides detailed hierarchical views of execution logs, heap sizes, and database events. It allows developers to step through checkpoints and analyze memory usage, making it the primary built-in utility for deep Apex debugging.
- ✗
Salesforce Event Monitoring Analytics
Why it's wrong here
Event Monitoring Analytics reports user activity and security events from EventLogFile data, not runtime variable states or execution paths. It is tempting because it provides diagnostic insight into org behaviour, but that insight is retrospective and user-focused; a sandbox debugging session requires the Apex Debugger's interactive breakpoints and variable inspection.
- ✗
Salesforce Optimizer Report
Why it's wrong here
Salesforce Optimizer Report analyses org configuration and usage to recommend improvements; it cannot capture variable states or trace trigger execution. It is tempting as a diagnostic tool, but it targets org-wide health and adoption metrics, whereas interactive debugging of private variables and execution paths needs the Apex Debugger.
About these practice questions
One of 226 original SF-PD2 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Salesforce exam blueprint
This SF-PD2 practice question is part of Courseiva's free Salesforce certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SF-PD2 exam.