nerdexam
Salesforce

PDI · Question #21

For which three items can a trace flag be configured? Choose 3 answers

The correct answer is C. Apex Class D. Apex Trigger E. User. Trace flags enable detailed logging for debugging purposes and can be configured for specific Apex classes, Apex triggers, or an entire user's execution context.

Submitted by brentm· Apr 18, 2026Testing, Debugging, and Deployment

Question

For which three items can a trace flag be configured? Choose 3 answers

Options

  • AProcess Builder
  • BVisualforce
  • CApex Class
  • DApex Trigger
  • EUser

How the community answered

(65 responses)
  • A
    2% (1)
  • B
    3% (2)
  • C
    95% (62)

Why each option

Trace flags enable detailed logging for debugging purposes and can be configured for specific Apex classes, Apex triggers, or an entire user's execution context.

AProcess Builder

Process Builder is a declarative automation tool, and while its execution can generate debug logs, trace flags are configured for the underlying code or the user executing it, not directly on the Process Builder definition itself.

BVisualforce

Visualforce is a page framework; trace flags are not configured directly on Visualforce pages, but rather on the Apex controllers or extensions that back them, or the user interacting with them.

CApex ClassCorrect

Trace flags allow developers to set logging levels for specific Apex classes, which is essential for capturing detailed debug information during the execution of business logic.

DApex TriggerCorrect

Trace flags can be configured for individual Apex triggers, enabling granular control over log collection when specific database events fire the trigger.

EUserCorrect

A trace flag can be applied to a specific user, ensuring that all code executed by that user, across different contexts, generates debug logs for comprehensive troubleshooting.

Concept tested: Debugging with Trace Flags Configuration

Source: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_debug_log_trace_flags.htm

Topics

#Trace Flags#Debugging#Apex#Monitoring

Community Discussion

No community discussion yet for this question.

Full PDI Practice