CCAR-F practice › Agentic Architecture & Orchestration · Question 18 of 105
Agentic Architecture & Orchestration
A support agent pulls order data from an MCP tool that returns Unix timestamps and numeric status codes, and shipment data from another that returns ISO 8601 dates and text statuses. The agent sometimes miscalculates whether a return is within the 30-day window. What is the most effective fix?
Show answer and explanation
Answer: D — Add a PostToolUse hook that converts every timestamp and status code to one format before the agent sees it
A PostToolUse hook intercepts tool results and normalizes heterogeneous formats before the model processes them, so every comparison is made on consistent data. A prompt table (a) and asking the model to convert (b) still rely on it interpreting each format correctly every time, and checking the final answer (c) catches errors only after the agent has reasoned over raw data.
Keep going
More Agentic Architecture & Orchestration questions
- Policy requires human approval for refunds over $500. A team adds a hook that rejects…
- An agent team is deciding where to use Agent SDK hooks instead of prompt instructions…
- A CI step reviews pull requests by sending all changed files to Claude in one prompt. On…
- An engineer asks an agent to "add comprehensive tests to this legacy codebase," which…
- Which two tasks are better suited to dynamic adaptive decomposition than to a fixed…