Salesforce Platform Developer I (legacy) — Question 194
Which three statements are true regarding trace flags? (Choose three.)
Answer options
- A. Setting trace flags automatically cause debug logs to be generated.
- B. Logging levels override trace flags.
- C. Trace flags override logging levels.
- D. If active trace flags are not set, Apex tests execute with default logging levels.
- E. Trace flags can be set in the Developer Console, Setup, or using the Tooling API.
Correct answer: C, D, E
Explanation
The correct answer is C, D, E because trace flags indeed take precedence over logging levels, meaning they can alter how logs are generated. When no active trace flags are present, Apex tests default to standard logging levels. Option A is incorrect as setting trace flags does not automatically result in debug log generation, and option B is false since trace flags do not get overridden by logging levels.