CCA Prep Studio
—

Task 1.5 · Domain 1: Agentic Architecture & Orchestration

Agent SDK hooks

Hooks are code that runs around tool calls. A PostToolUse hook reshapes a tool's result before the model sees it, and an interception hook inspects an outgoing call and can block it, redirecting the agent elsewhere. Use them when a rule must hold every time; use prompt instructions when an occasional miss is acceptable.

Updated 10-20-2026 · Official guide §6, Task 1.5

Key points

  • PostToolUse hooks intercept tool results for transformation before the model processes them.
  • Interception hooks examine outgoing tool calls and enforce rules, such as blocking refunds above a threshold.
  • Hooks give deterministic guarantees; prompt instructions give probabilistic compliance.
  • Normalising mixed formats (Unix timestamps, ISO 8601 strings, numeric status codes) from different MCP tools is a classic PostToolUse job.
  • A blocking hook can redirect to an alternative workflow such as human escalation instead of just failing.

Skills the exam expects

  • Implement PostToolUse hooks that normalise heterogeneous data before the agent reasons over it.
  • Implement interception hooks that block policy-violating actions (refunds over $500) and redirect to escalation.
  • Choose hooks over prompt enforcement whenever a business rule needs guaranteed compliance.

Common misconceptions

  • "Hooks are only for logging." They transform data and enforce policy.
  • "A blocking hook can only fail the call." It can hand the agent a different path.
  • "The model can be asked to convert formats itself." It can, but it will do so inconsistently and at token cost.

Watch for

Policy thresholds enforced only in the prompt, and prompts bloated with format-conversion rules that a hook should handle.

Practice task 1.5

55 practice items cover this task in CCA Prep Studio: flashcards, matching, scenario questions and explain-it-back exercises, each tracked toward your mastery score.

CCA Prep Studio is an independent study product. It is not made, endorsed or sponsored by Anthropic. Claude is a trademark of Anthropic, PBC, and is used here only to name the exam and the technology it covers. Content is written in our own words and cites the official exam guide; no exam questions are reproduced. © 2026 NovaLinQs AI, LLC.