CCAR-F Agentic Architecture & Orchestration practice questions
27% of the CCAR-F exam. These worked examples come from free Form 1, with an explanation for every answer option.
The resolution loop's dispatcher branches on response.stop_reason. One branch executes the tool Claude asked for and sends the result back for another iteration; the other stops and returns the reply to the customer. Which pair of literal values does the dispatcher branch on?
- A
"function_call" to run the requested tool, "end_turn" to finish the turn
Pairs the right terminal value with the wrong iteration value. "function_call" is what other tool-calling APIs name this event, so the refund branch never fires and every tool request falls through to the reply.
- B
"tool_call" to run the requested tool, "complete" to finish the turn
Reads naturally and matches the vocabulary of several other vendors' loops, but neither string is emitted here, so the dispatcher matches nothing and the loop stalls on its first tool request.
- C
"tool_result" to run the requested tool, "stop" to finish the turn
"tool_result" is a real name in this API, for the block carrying a tool's output back in the next user message. It is not a stop_reason, and "stop" is not one either.
- D
"tool_use" to run the requested tool, "end_turn" to finish the turnCorrect
Correct. "tool_use" is the value Claude returns when it wants a tool executed and "end_turn" the value it returns when the turn is finished, which is exactly the two-branch split the dispatcher needs.
The principle
The agentic loop continues while stop_reason is "tool_use" and terminates when it is "end_turn". Those two literals are what the control flow switches on.
Tier-2 staff say escalated disputes arrive with only a one-line reason, so they re-interview the customer from scratch. escalate_to_human currently accepts a single free-text reason string. Which change most directly removes the rework?
- A
Grant Tier-2 direct read access to the session transcript so they can reconstruct what was already established
Removes the information gap, but shifts the reading cost onto the human: a transcript still has to be mined for the customer ID, the finding, and the proposed remedy. It restores raw data where a conclusion is needed.
- B
Extend escalate_to_human to carry the verified customer ID, root-cause analysis, and recommended actionCorrect
Correct. A structured handoff carries exactly what the receiving human needs to act — who the customer is, what was found, and what the agent recommends — without them replaying the conversation.
- C
Attach the full tool-call and tool-result history of the session to every escalation the agent files
Preserves everything the agent saw, and is useful for later debugging, but raw tool output is even denser than a transcript and buries the analysis Tier-2 needs at the top.
- D
Require the agent to draft a customer-facing apology and resolution summary before it escalates
Improves the customer's experience of the handoff, and is worth doing, but the apology text is addressed to the customer and carries none of the case facts Tier-2 is missing.
The principle
Escalation is an interface between an agent and a human who lacks the agent's context. The handoff payload should be a structured conclusion — identity, root cause, recommended action — not the raw material the conclusion came from.
lookup_order returns orderDate as a Unix epoch integer while the billing MCP server returns ISO 8601 strings. The agent has twice quoted a 1970 delivery date to a customer on a call. Which change reconciles the two representations in code?
- A
A PreToolUse hook whose updatedInput adds a canonical date-format argument to each of the two lookup calls
PreToolUse can rewrite a call before it executes, which is the right instrument when the defect is in the arguments being sent. The epoch integer is chosen by each backend as it answers, so nothing in the outgoing call decides it.
- B
A PostToolUse hook that rewrites every timestamp field in a returned result into one formatCorrect
Correct. PostToolUse runs on the result after the call returns and before the model reads it, which is the point at which a tool's own output can be reshaped in code rather than left to the model's judgment.
- C
An orderDate property typed as an ISO 8601 date string in lookup_order's own JSON input schema
A tool's input schema is a genuine constraint and does reject malformed arguments before a call goes out. It governs the arguments Claude sends rather than the payload the tool hands back, so it never sees the value at issue.
- D
A loop check that rejects any result whose orderDate is not ISO 8601 and re-issues that call
Rejecting a non-conforming result is deterministic and would keep the 1970 date away from the customer, but the backend returns the same representation every time, so the call is re-issued until the loop abandons a lookup that succeeded.
The principle
Hook phase decides what a hook can touch: PreToolUse sees the outgoing call, PostToolUse sees the returned result. Reconciling formats that two backends produce is work on the result, and a tool's input schema has no view of it.