Salesforce Certified Platform Administrator II free question 5 / 10 · Domain 3: Auditing and Monitoring
To investigate how a record-triggered flow behaves, an administrator adds a user trace flag for a sales rep. The debug levels are set with Workflow at INFO and every other category at NONE. The rep saves an opportunity, and the flow runs. According to the log categories and levels described in the Apex Developer Guide (Summer ’22), which statement describes the flow entries that appear in this log?
- INFO is the standard level of detail for flows, so the log shows the interviews and elements and also the values assigned to variables
- The start and end of the flow interview are logged, but element execution and variable value assignments are not
- The start and end of the flow interview and the element executions are logged, but variable value assignments are not
- Flows are logged under the Apex Code category, so setting Workflow to INFO produces no flow entries at all
Show the answer and explanation
Answer: B
Why this is correct
"Working with Logs in the Developer Console" says the Workflow log category includes information for flows and processes, not only workflow rules. In its event table, the flow interview start and end events (FLOW_START_INTERVIEW_BEGIN and FLOW_START_INTERVIEW_END) are logged at INFO and above, element execution (FLOW_ELEMENT_BEGIN) at FINE and above, and variable value assignment (FLOW_VALUE_ASSIGNMENT) at FINER and above. With Workflow at INFO, what you get is the interview start and end and nothing more detailed.
Why the other options are wrong
"INFO is the standard level of detail for flows, so the log shows the interviews and elements and also the values assigned to variables" … Variable value assignments are logged from FINER, and element execution from FINE. At INFO, neither is logged.
"Flows are logged under the Apex Code category, so setting Workflow to INFO produces no flow entries at all" … The category table puts flow and process information in the Workflow category, not in Apex Code. Because Workflow is at INFO, the interview start and end do appear.
"The start and end of the flow interview and the element executions are logged, but variable value assignments are not" … Element execution (FLOW_ELEMENT_BEGIN) needs FINE or above. At INFO, elements are not logged either, so only the interview start and end remain.
Key point
Log levels run from NONE through ERROR, WARN, INFO, DEBUG, FINE, FINER, and FINEST, and each level includes the events of the levels below it. If you need to follow the values held in flow variables, raise Workflow to FINER or above. A category offers only the levels for which it has events.