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.
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)- A2% (1)
- B3% (2)
- C95% (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.
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.
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.
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.
Trace flags can be configured for individual Apex triggers, enabling granular control over log collection when specific database events fire the trigger.
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
Community Discussion
No community discussion yet for this question.