Salesforce-Platform-Developer Practice Test

Salesforce Spring 25 Release
237 Questions

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

A. Flow

B. Apex Class

C. User

D. Apex Trager

E. Visualforce

B.   Apex Class
C.   User
D.   Apex Trager

Explanation:

A trace flag in Salesforce is used to capture detailed logs for debugging Apex code execution. Developers configure trace flags for specific entities to monitor their execution in the Developer Console.

Why these answers are correct?

B. Apex Class ✅ Trace flags can be set on specific Apex classes to monitor code execution and identify issues within the class logic.

C. User ✅ Trace flags can be set for a specific user, capturing all Apex executions for that user session, including triggers, workflows, and Visualforce transactions.

D. Apex Trigger ✅ Since triggers execute before or after DML operations, setting a trace flag on an Apex trigger helps monitor its behavior and debug execution flow.

Reviewing incorrect choices:

A. Flow – While Flow debug logs exist, Flow execution is not captured using Apex trace flags. Debugging Flows requires activating debug mode within Flow settings.
E. Visualforce – While Apex executed within Visualforce pages can be traced, Visualforce itself does not have trace flags.

Salesforce-Platform-Developer Practice-Test - Home Previous
Page 7 out of 237 Pages