Glossary
Key terms and definitions per exam domain, crawled from the Glossary of the source guide. Each entry carries a concise definition, the exam context, and a link to the lesson that covers it.
Domain 1 — Agents and Workflows (14.7%)
Section titled “Domain 1 — Agents and Workflows (14.7%)”Quick-lookup definitions for the 14.7% exam domain. Each entry includes a concise definition and exam context. Follow the lesson links to dive deeper.
Augmented LLM
Section titled “Augmented LLM”A single model call enhanced with retrieval, tools and memory. The basic building block of the taxonomy, and the right answer more often than its position at the bottom suggests: most problems need nothing more.
Exam context: Distractors inflate a multi-call coded pipeline into an “augmented LLM” or shrink it into one. Call count is the tell: an augmented LLM is one enhanced call.
See also: 1.1 Agent Architecture
Workflow
Section titled “Workflow”A system where LLM calls and tools are orchestrated through predefined code paths. The developer wrote the control flow. The model executes inside it, which is what makes runs predictable, testable and cheaper. Claude Code’s dynamic workflows (as of September 2026) apply the same idea to multi-agent work: a script Claude writes decides what runs next and holds the intermediate results, so Claude’s context holds only the final answer.
Exam context: A stem naming fixed, repeating, auditable steps keys the workflow, however capable the model in each step. A hand-coded chain is a workflow no matter how many model calls it contains.
See also: 1.1 Agent Architecture
A system in which the model directs its own process and tool usage, deciding each next step from environment feedback until the goal is met. Flexibility is the product. The price is latency, token spend, a wider error surface and a guardrail burden.
Exam context: An agent is justified when the path genuinely cannot be scripted: unknown step count, decisions dependent on intermediate findings. The extra spend must buy something a workflow could not deliver.
See also: 1.1 Agent Architecture
Context Isolation
Section titled “Context Isolation”The property that a subagent’s context window starts fresh, with no parent conversation. Constraint and payoff at once: nothing reaches the worker except the delegation prompt, and nothing bulky returns to the lead except the worker’s final message. As of September 2026 the one exception is a Claude Code fork, which inherits the whole conversation. Fork mode is off in the Agent SDK and -p runs unless you turn it on.
Exam context: The most-tested fact in the domain. Designs that assume workers see the orchestrator’s conversation, or each other’s findings when nothing passes them on, are broken by construction; the fix is always a fuller brief, never a respawn or a bigger model. Named subagents and agent teammates can message each other, but only through that explicit channel.
See also: 1.1 Agent Architecture
Delegation Prompt
Section titled “Delegation Prompt”The brief a subagent is spawned with: the only channel from parent to worker. A production brief carries an explicit objective, an output format, tool guidance, task boundaries, and every convention or decision the worker must honour.
Exam context: Multi-agent failures trace to the orchestrator first. Overlapping scopes produce duplicated sections, an unassigned topic produces a gap, and both are decomposition faults fixed in the briefs.
See also: 1.1 Agent Architecture
Agent Loop
Section titled “Agent Loop”The cycle every harness wraps: send the prompt with tool definitions; if the response requests tools, execute them, append the results, call again; stop when the model responds without tool calls or a cap trips. The raw Messages API imposes no loop semantics of its own.
Exam context: The loop’s normal exit is a response containing no tool-use requests. There is no API-enforced iteration cap and no termination token. Limits exist only where the harness configures them.
See also: 1.2 Agent Construction with Claude
One round trip inside the agent loop: the model produces output including tool calls, the harness executes them, and the results feed back. The unit max_turns counts.
Exam context: Distractors redefine a turn as a token count, a session count or a subagent count. It is a tool-use round trip, nothing else.
See also: 1.2 Agent Construction with Claude
max_turns
Section titled “max_turns”The Claude Agent SDK option (maxTurns in TypeScript) capping tool-use round trips in a run. It defaults to no limit, and hitting it ends the run with the error_max_turns result subtype.
Exam context: The exact name is keyed. Invented-but-plausible near-misses (max_iterations, turn_cap) are the distractors, and a tripped cap is a configuration event, not a model failure.
See also: 1.2 Agent Construction with Claude
max_budget_usd
Section titled “max_budget_usd”The Claude Agent SDK option (maxBudgetUsd in TypeScript) stopping a query when estimated spend reaches the set dollar value. Cumulative across the run, subagent spend included. The docs call it a good default for production agents.
Exam context: Context isolation does not mean cost isolation: subagent requests count toward total_cost_usd, spawns fail at the cap, and the run ends with error_max_budget_usd.
See also: 1.2 Agent Construction with Claude
ResultMessage
Section titled “ResultMessage”The final message of an Agent SDK run. Its subtype names the outcome: success, error_max_turns, error_max_budget_usd or error_during_execution (the docs list a fifth, error_max_structured_output_retries, as of August 2026). Every subtype carries total_cost_usd, num_turns and session_id. The result text is present only on success.
Exam context: Code that reads result without checking the subtype gets nothing useful on error runs. The documented recovery from a limit subtype is resuming the session with a raised cap, tightening the brief, or splitting the work.
See also: 1.2 Agent Construction with Claude
Harness
Section titled “Harness”The code around the loop that production requires: turn caps, spend budgets, retries, tool-result validation, state persistence, observability. Execution guarantees live here; model behaviour lives in the prompt.
Exam context: The tested judgement is which side of the line a concern sits on. Prompted retries and prompted frugality are instructions the model may not follow; only the harness enforces.
See also: 1.2 Agent Construction with Claude
PreToolUse Hook
Section titled “PreToolUse Hook”Code the harness runs before a requested tool call executes. It receives the tool name and input, and a deny permission decision blocks the call, with the reason returned to the model as the tool result.
Exam context: Prompts request, hooks enforce. The hook executes deterministically in the application process regardless of what the model was persuaded to attempt, which is what makes it a guardrail rather than guidance.
See also: 1.2 Agent Construction with Claude
Claude Managed Agents
Section titled “Claude Managed Agents”Anthropic’s hosted agent product, distinct from the Agent SDK: Anthropic runs the agent harness and the sandbox behind a REST API, providing stateful server-side sessions with minimal operational burden. In beta as of August 2026 (header managed-agents-2026-04-01), and the sandbox can be Anthropic-managed or self-hosted for data residency. As of September 2026, a self-hosted sandbox still sends tool inputs and outputs to Anthropic’s control plane, and a session can be pinned to one agent version. Scheduled deployments run an agent on a cron schedule, and a coordinator agent delegates one level only, to a roster of at most 20 unique agents.
Exam context: Not “the SDK hosted for you”. Items test who operates the harness in each deployment model: self-hosting keeps control and burden; Managed Agents trades control for minimal operations.
See also: 1.2 Agent Construction with Claude
Prompt Chaining
Section titled “Prompt Chaining”The workflow pattern that decomposes a task into a fixed sequence where each call processes the previous output, optionally with programmatic gates between steps.
Exam context: A gate is a one-way pass/fail checkpoint that stops bad output propagating; it never feeds critique back. A stem with a fixed sequence and checkpoints keys chaining, not evaluator-optimizer.
See also: 1.3 Agent Patterns and Frameworks
Routing
Section titled “Routing”The workflow pattern that classifies an input and dispatches it to a specialised follow-up: a different prompt, tool set or model per category.
Exam context: The cue is distinct input categories deserving distinct treatment. The tempting distractor is one do-everything handler, or chaining, which fits one decomposable task rather than a stream of different ones.
See also: 1.3 Agent Patterns and Frameworks
Parallelization
Section titled “Parallelization”The workflow pattern that runs LLM work simultaneously, in two forms: sectioning, where independent subtasks run side by side, and voting, where the same task runs several times for diverse or confident answers.
Exam context: Sectioning requires subtasks known and independent up front. Voting aggregates independent attempts in code, with no information flowing between them. It never converges on anything.
See also: 1.3 Agent Patterns and Frameworks
Orchestrator-Workers
Section titled “Orchestrator-Workers”The workflow pattern where a central model breaks the task down at runtime and delegates to workers. The pattern behind subagent architectures; its signature is that the subtasks are not known in advance.
Exam context: Sectioning’s favourite distractor and vice versa. The dividing line is who decides the subtasks and when: enumerable up front means sectioning; discovered at runtime by the model means orchestrator-workers.
See also: 1.3 Agent Patterns and Frameworks
Evaluator-Optimizer
Section titled “Evaluator-Optimizer”The workflow pattern pairing a generator with an evaluator that scores output against explicit criteria and feeds the critique back until the result passes, usually under a hard round cap.
Exam context: Keyed by explicit criteria plus iterative, critique-driven refinement. Voting is the adjacent distractor (no feedback between attempts) and the gate is the other (pass/fail without regeneration).
See also: 1.3 Agent Patterns and Frameworks
Memory Tool
Section titled “Memory Tool”Anthropic’s cross-session persistence mechanism, generally available on the Messages API as tool type memory_20250818. Claude gets create, read, update and delete operations over files in a /memories directory that the application executes client-side. The application’s handler carries the safeguards: it must reject paths outside /memories, and the docs suggest capping how much a view returns, with view_range for the rest.
Exam context: An agent remembers nothing between sessions unless the design adds a mechanism. Distractors rely on automatic recall, longer conversations or bigger windows; the keyed answer persists state explicitly.
See also: 1.3 Agent Patterns and Frameworks
Context Rot
Section titled “Context Rot”The degradation of recall as a context window’s token count grows, named in Anthropic’s context-engineering guidance. The reason long-running agents need a design answer rather than a bigger window.
Exam context: The documented answers are compaction (the Agent SDK performs it automatically), structured note-taking, and sub-agent architectures. On the Messages API, as of September 2026, compaction comes in on-demand and token-threshold forms, and the docs recommend on-demand wherever it is available. Domain 1 keys the design move; the window-management technique detail belongs to Domain 6.
See also: 1.3 Agent Patterns and Frameworks
LangGraph
Section titled “LangGraph”A low-level orchestration framework and runtime for long-running, stateful agents, from LangChain Inc but usable without LangChain. Control flow is modelled explicitly as a graph: deterministic and model-driven steps mixed, durable resumable execution, inspectable state.
Exam context: Keyed by needs that lead with graphs, statefulness and inspection. Recommending it for typed output validation is the classic identity swap.
See also: 1.3 Agent Patterns and Frameworks
Pydantic AI
Section titled “Pydantic AI”The typed Python agent SDK from the Pydantic team: give the agent an output type and every run comes back validated against it.
Exam context: Keyed by schema-validated, typed outputs in Python. Graph-shaped control flow is LangGraph’s identity, not this one’s, and TypeScript is not its home.
See also: 1.3 Agent Patterns and Frameworks
Strands Agents
Section titled “Strands Agents”An open-source agent SDK for Python and TypeScript, built from production systems inside Amazon, taking a model-driven approach: the model drives the loop and orchestration code stays minimal.
Exam context: Keyed by a model-driven loop with minimal orchestration, often with an AWS-ecosystem cue in the stem. The identity swap to watch: schema-validated outputs are Pydantic AI’s ground, not Strands’.
See also: 1.3 Agent Patterns and Frameworks
Domain 2 — Applications and Integration (33.1%)
Section titled “Domain 2 — Applications and Integration (33.1%)”Quick-lookup definitions for the 33.1% exam domain. Each entry includes a concise definition and exam context. Follow the lesson links to dive deeper.
Business Requirement
Section titled “Business Requirement”The top of the derivation chain: why the system exists, stated as an outcome. Structurally recognisable by what it lacks: no system behaviour, no platform property, however prominently it sits in the specification.
Exam context: “Reduce”, “grow” and “halve” are business-layer verbs. Distractors promote an outcome to functional because it is the project’s main deliverable; the deliverable status changes nothing.
See also: 2.1 Understanding Requirements
Functional Requirement
Section titled “Functional Requirement”A statement of what the system does: an observable behaviour a test could verify, derived from a business requirement. “Extract genre and rights metadata and route the submission to the matching editor queue” is the shape.
Exam context: Behaviour is functional even when it reads operationally. The demotion distractor reclassifies a genuine behaviour as a constraint; the promotion distractor does the reverse to a measurable target.
See also: 2.1 Understanding Requirements
Non-Functional Requirement
Section titled “Non-Functional Requirement”A quality of or constraint on behaviour: latency, throughput, availability, data residency, cost ceilings, isolation. The classification test is the kind of promise made, never the presence of a number.
Exam context: The exam’s favourite trap promotes the most specific, measurable statement in the stem to functional precisely because it is specific and measurable. Precision does not change the promise.
See also: 2.1 Understanding Requirements
Infrastructure Requirement
Section titled “Infrastructure Requirement”What the platform must provide so the behaviour holds under real load, derived from functional requirements against the proposed architecture. Peak token throughput inside a documented limit, residency for stored data, a caching layer’s prefix obligations.
Exam context: Derived against an architecture, never in a vacuum: realtime makes time-to-first-token bind, batch swaps it for the completion window. The harder item derives the requirement a proposal implies but never states.
See also: 2.1 Understanding Requirements
Rate-Limit Classes (RPM, ITPM, OTPM)
Section titled “Rate-Limit Classes (RPM, ITPM, OTPM)”The API’s enforced capacity classes: requests, input tokens and output tokens per minute, set per model class. The anthropic-ratelimit-* response headers report the limit, remaining allowance and reset time continuously, and cached tokens do not count toward ITPM on most models.
Exam context: Requirement inputs with documented, queryable numbers, not implementation details for later. Sizing peak load without consulting them is the capacity-by-optimism anti-pattern.
See also: 2.1 Understanding Requirements
Cutover
Section titled “Cutover”The one-time act of swapping a pilot or legacy arrangement for the production flow: the signature deliverable of the implementation and deployment phase.
Exam context: Phase-placement items sit cutover next to the standing dashboard and reward knowing that cutover happens once (implementation) while monitoring recurs (operations). “Governs how production starts operating” does not move it.
See also: 2.2 Systems Life Cycle
Operations and Maintenance
Section titled “Operations and Maintenance”The recurring phase: standing dashboards, error triage, prompt fixes riding the release loop, and the plan for moving off a deprecated model. For an LLM application the load is structural, because prompt changes ship in hours and the model moves on someone else’s clock.
Exam context: Deployment-as-finish-line is the posture behind most wrong answers. A prompt fix after go-live is maintenance, gated by evals, not development.
See also: 2.2 Systems Life Cycle
Model Lifecycle (Active, Legacy, Deprecated, Retired)
Section titled “Model Lifecycle (Active, Legacy, Deprecated, Retired)”Anthropic’s documented states for a model. Deprecated still serves requests but has a named replacement and a retirement date; retired fails every request. Publicly released models get at least 60 days’ notice, announced on the deprecations page and by email.
Exam context: The dates bind Anthropic-operated platforms; Amazon Bedrock and Google Cloud set their own schedules, so one application on two surfaces can face two deadlines. Read the stem for the platform.
See also: 2.2 Systems Life Cycle
Retirement (Phase)
Section titled “Retirement (Phase)”The final life cycle phase: switching the system off and disposing of its data. Data disposition is part of the phase, not an afterthought. Turning the servers off is not the whole job.
Exam context: Decommissioning a superseded pilot is retirement, not operational housekeeping, and the disposition of its logs and stored personal data belongs in the plan.
See also: 2.2 Systems Life Cycle
Stateless API
Section titled “Stateless API”The Messages API holds no conversation. Your application resends the transcript it wants the model to see, every turn; sending only the newest user message means the model answers without the history.
Exam context: “The assistant forgets what was said two turns ago” keys the missing transcript, not a model defect, a context-window overflow or a session setting.
See also: 2.3 Claude API Mechanics
stop_reason
Section titled “stop_reason”The response field naming why generation ended: end_turn, max_tokens, stop_sequence, tool_use, pause_turn, refusal or model_context_window_exceeded. Reading it is the difference between diagnosing a truncation and blaming the model for it.
Exam context: Each value has a distinct fix, and distractors pair a wrong value with a plausible remedy. Output exactly at the cap plus a mid-sentence cut is the max_tokens signature.
See also: 2.3 Claude API Mechanics
tool_use / tool_result
Section titled “tool_use / tool_result”The wire shape of a tool call: the model stops with stop_reason tool_use and emits a tool_use block (id, name, parsed input); the caller executes the client tool and continues with a user turn carrying a tool_result block whose tool_use_id matches.
Exam context: The caller, never Anthropic, executes client tools; server tools such as web search are the documented exception. The matching id and the user-turn placement are keyed facts.
See also: 2.3 Claude API Mechanics
tool_choice
Section titled “tool_choice”The parameter steering the tool decision. Documented values: auto, any, tool (forcing a named tool) and none.
Current state (checked 29 September 2026): Claude Opus 5.5, Sonnet 5.5, Fable 5.1 and Mythos 5.1 reject any and tool with a 400 error, and manual extended thinking rejects both on any model. For those, the documented route is auto with strict tool use.
Exam context: A fifth invented value is the house distractor. Forcing one specific tool for one request is tool_choice type tool with the name, nothing else.
See also: 2.3 Claude API Mechanics
Streaming Events
Section titled “Streaming Events”With stream: true, server-sent events arrive in documented order: message_start, then per content block a content_block_start, one or more content_block_delta events and a content_block_stop, then message_delta and message_stop, with ping possible throughout. Tool arguments arrive as input_json_delta fragments, parsed at content_block_stop.
Exam context: Errors can arrive mid-stream after the 200, so consumers handle failure at the request and inside the stream. Streaming moves time-to-first-token, not total cost or generation time.
See also: 2.3 Claude API Mechanics
cache_control
Section titled “cache_control”The marker (type ephemeral) that turns a prompt prefix into a cache entry. A later request hits only on a 100% identical prefix, evaluated tools → system → messages, so stable content goes first and volatile content last. Invalidation cascades downward; entries live 5 minutes by default (refreshed on use) or an hour with ttl "1h".
Exam context: Prompts below the per-model minimum cacheable length are silently not cached: zeroes in the usage cache fields, no error. Pricing and when caching pays are Domain 5; making the hit happen is here.
See also: 2.3 Claude API Mechanics
Message Batches API
Section titled “Message Batches API”Asynchronous processing: up to 100,000 requests or 256 MB per batch at a 50% discount. Results land when every request finishes or at 24 hours, whichever comes first; unfinished requests expire unbilled, and per-request results (succeeded, errored, canceled, expired) stream from a results_url that lives 29 days.
Exam context: Most batches finish inside an hour, but that is typical behaviour, not a guarantee. A hard deadline inside the completion window keys realtime with bounded concurrency.
See also: 2.3 Claude API Mechanics
Bounded Concurrency
Section titled “Bounded Concurrency”The keyed fan-out pattern: a worker pool or semaphore keeping enough requests in flight to use the documented RPM, ITPM and OTPM headroom and no more, with jittered exponential backoff honouring retry-after on top. The semaphore bounds simultaneous in-flight requests.
Exam context: Bracketed by two failure modes: the serial loop that wastes the limit and the unbounded fan-out that turns the run into a 429 storm. Lowering max_tokens is not a lever: OTPM counts tokens actually generated.
See also: 2.4 Software Engineering Foundations
Jittered Exponential Backoff
Section titled “Jittered Exponential Backoff”Retry waits that double per attempt with a random offset added, honouring any retry-after the server sends. The jitter stops a fleet of workers that failed together from retrying together.
Exam context: The SDKs already retry transient failures (connection errors, 429s, 5xx) twice by default, so a hand-rolled loop without max_retries=0 multiplies attempts: three application tries become nine requests.
See also: 2.4 Software Engineering Foundations
Idempotency
Section titled “Idempotency”The property that repeating a request leaves the system in the same state. Reads have it for free; creates need thought (an idempotency key or a server-side duplicate check) before a timeout-and-retry can be safe.
Exam context: A client that times out cannot know whether the server acted. The double-booking after a retried POST keys the missing idempotency design, not the network.
See also: 2.4 Software Engineering Foundations
Prompts as Source Code
Section titled “Prompts as Source Code”The discipline that prompts, output schemas, eval sets, CLAUDE.md files and settings are behaviour-bearing artefacts: they live in the repository, change through branches and review, ride CI with the eval suite as the regression gate, and roll back the way code rolls back.
Exam context: The production console edit (no history, no review, no rollback, staging no longer matching production) is the anti-pattern stated straight. If the pipeline is the only path to production, console editing becomes structurally impossible.
See also: 2.4 Software Engineering Foundations
Characterisation Tests
Section titled “Characterisation Tests”Tests that pin what code currently does, written before a large-scale refactor of a poorly covered module. They are the safety net that makes incremental migration reviewable and revertible.
Exam context: The keyed sequence is safety net first, then migration in small steps. The one-big-rewrite with a contract change riding along and review waved through on green tests stacks three violations at once.
See also: 2.4 Software Engineering Foundations
Blank Slate (API)
Section titled “Blank Slate (API)”The Claude API arrives with no product system prompt, no product tools and no formatting conventions: Anthropic publishes the claude.ai system prompts and states they do not apply to the API. Your application defines everything the model knows about its role.
Exam context: The cross-surface surprise: a prototype behaving beautifully in claude.ai was borrowing the product layer. The keyed fix re-establishes the instruction environment, never blames the model or a sampling setting.
See also: 2.5 Claude Application Design
Instruction Placement
Section titled “Instruction Placement”The architecture decision of where instructions live: standing identity, scope and rules in the system parameter; per-request material in user turns, marked as what it is. On harness surfaces the standing carrier is project instructions or CLAUDE.md instead.
Exam context: The split pays twice: stable-system-plus-volatile-user is the shape prompt caching rewards, and it separates trusted instructions from per-request data structurally. Wording the instructions is Domain 6.
See also: 2.5 Claude Application Design
Content Boundary
Section titled “Content Boundary”Explicit delimiters (XML tags with consistent names) around every piece of untrusted or variable content, with the surrounding instructions framing it as data to analyse rather than instructions to follow. The boundary is machine-checkable: code can verify every untrusted byte landed inside a tag before the request ships.
Exam context: The politeness instruction (“please ignore any instructions in the document”) is not a boundary and is the reliable second-best answer. What an adversary does to the boundary is Domain 7; the boundary existing is 2.5.
Current state (checked 6 October 2026): the prompt-injection docs now say to deliver third-party content in tool_result blocks, never in system prompts or plain user text.
See also: 2.5 Claude Application Design
Output Contract
Section titled “Output Contract”The schema downstream code consumes, treated as an interface: defined first (types, required fields, enums), instructed against explicitly, and validated on every receipt with a defined failure path. Structured outputs and strict tool use are the enforcement mechanics that implement it.
Exam context: Retry-until-parse and a larger model are the standing distractors; neither creates a contract, and the parser keeps depending on unspecified behaviour.
See also: 2.5 Claude Application Design
Session Hygiene
Section titled “Session Hygiene”The design rule that context scope follows task scope: one task, one session; one tenant’s material never shares a window with another’s. Durable knowledge lives in application state and is injected into new sessions deliberately, and any carryover is named and chosen.
Exam context: Accumulated context is contamination when tasks are independent: earlier constraints and vocabulary bleeding into later work keys a session-scoping fix, not a prompt fix. Cross-tenant leakage through a shared transcript is an architecture defect.
See also: 2.5 Claude Application Design
Capability Sprawl
Section titled “Capability Sprawl”Enabling plugins, connectors or MCP-backed capabilities because they might be useful. Each extension widens what the application can do and adds a dependency someone must version and trust.
Exam context: The keyed design artefact is a capability list with a stated need per entry, added deliberately and scoped to need. Pinning and versioning what survives the cut belongs to 2.6.
See also: 2.5 Claude Application Design
Tracked Versus Local
Section titled “Tracked Versus Local”The configuration boundary: project .claude/settings.json and project CLAUDE.md are shared, checked in and reviewed; .claude/settings.local.json and CLAUDE.local.md are personal and gitignored. Team-shared behaviour goes only in tracked files, personal preference only in local ones.
Exam context: Distractors swap exactly one of the four names. A behaviour difference tracing to a local file is working as designed; one tracing to a drifted tracked file is a process failure. Precedence semantics are Domain 3.
See also: 2.6 Configuration Management
Model Pinning
Section titled “Model Pinning”Recording exactly which model identifier each environment runs, knowing what it resolves to. Dated IDs are fixed releases; from the 4.6 generation dateless IDs are pinned snapshots too; pre-4.6 aliases genuinely move. Partner platforms re-spell the same snapshot (anthropic. prefix on Bedrock; @date suffix on Google Cloud for dated pre-4.6 snapshots, first-party format there for current-generation IDs).
Exam context: Migrations are deliberate and ordered: eval the candidate first, flip the pin through review, audit usage for stragglers. Flipping production first because the clock is ticking inverts the keyed sequence.
See also: 2.6 Configuration Management
Environment Parity
Section titled “Environment Parity”Each environment running a known, recorded configuration (prompt versions, model identifier, settings revision, plugin versions), so “staging passed” is evidence about production because the two are provably comparable.
Exam context: The classic failures are the production hot-fix never backported and environments silently targeting different model identifiers, both invisible until an incident because nothing records the difference. Fix the drift, then install the record-keeping.
See also: 2.6 Configuration Management
Plugin Pinning
Section titled “Plugin Pinning”Dependency treatment for plugins, connectors and MCP-backed capabilities: an explicit manifest, pinned versions, per-environment records, and upgrades arriving as reviewed changes run against the eval suite.
Exam context: An unpinned plugin floating on latest is an unreviewed behaviour change on someone else’s schedule: the keyed diagnosis when two environments installed “whatever was current at build time”.
See also: 2.6 Configuration Management
Secrets Hygiene
Section titled “Secrets Hygiene”API keys never live in versioned files. The documented patterns are credential helpers (apiKeyHelper generates tokens on demand) and runtime environment variables; a committed key lives in history long after the file is cleaned.
Exam context: Encrypting the key in place and gitignoring the shared settings file other configuration still needs are the distractor mitigations. Adversarial handling of a leaked secret is Domain 7; do-not-commit-it is stated here.
See also: 2.6 Configuration Management
Domain 3 — Claude Code (3.1%)
Section titled “Domain 3 — Claude Code (3.1%)”Quick-lookup definitions for the 3.1% exam domain. Each entry includes a concise definition and exam context. Follow the lesson links to dive deeper.
CLAUDE.md
Section titled “CLAUDE.md”The instruction file you write for Claude Code: conventions, build commands, house rules. Four scopes exist, and every discovered file is added to context rather than replacing what came before.
Exam context: Content, not configuration. It shapes behaviour and enforces nothing, which is why a prohibition that must hold belongs in a deny rule instead.
See also: 3.1 Claude Code Operation
CLAUDE.md Hierarchy
Section titled “CLAUDE.md Hierarchy”The four scopes, broadest first: managed policy, user ~/.claude/CLAUDE.md, project ./CLAUDE.md or ./.claude/CLAUDE.md, and local ./CLAUDE.local.md. Claude Code walks up the directory tree from the working directory and loads every level it finds.
Exam context: Discovered files concatenate, ordered broadest to most specific, so a nearer file is simply read last. Reading the hierarchy as a precedence chain is the domain’s signature error; settings are the surface with the real chain. To stop a file loading at all, claudeMdExcludes skips CLAUDE.md and rules files by path or glob from any settings file (September 2026), managed policy files excepted. From v2.1.277 an AGENTS.md loads by default only when no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md exists in the working directory or above; Project instructions set to claude-md-and-agents-md in /config loads both.
See also: 3.1 Claude Code Operation
CLAUDE.local.md
Section titled “CLAUDE.local.md”Personal project instructions, kept out of version control. It sits at the most specific end of the memory hierarchy and is read after its sibling CLAUDE.md at the same level.
Exam context: The pair to .claude/settings.local.json, and easy to swap under time pressure. This one carries prose for one person on one machine; the other carries configuration. It also counts as a CLAUDE.md file, so adding one to a repository that relies on AGENTS.md switches AGENTS.md off unless Project instructions is set to claude-md-and-agents-md.
See also: 3.1 Claude Code Operation
Managed Policy File
Section titled “Managed Policy File”The organisation-wide CLAUDE.md deployed by IT: /Library/Application Support/ClaudeCode/CLAUDE.md on macOS, /etc/claude-code/CLAUDE.md on Linux and WSL, C:\Program Files\ClaudeCode\CLAUDE.md on Windows. Individual settings cannot exclude it.
Exam context: The broadest memory scope, and the parallel to managed settings at the top of the settings chain. Both are the answer when something must reach every engineer regardless of local configuration, with this one still context and the settings file still enforcement.
See also: 3.1 Claude Code Operation
@path Import
Section titled “@path Import”The syntax that pulls another file’s content into a CLAUDE.md from anywhere in it. Relative paths resolve against the file containing the import, imports expand at launch, and recursion is capped at a maximum depth of four hops.
Exam context: The hop cap and the resolution base are both keyed. Imports extend a file you already load; they play no part in discovering ancestor CLAUDE.md files, which the upward walk finds on its own.
See also: 3.1 Claude Code Operation
Repository Initialization (/init)
Section titled “Repository Initialization (/init)”The built-in command that analyses a codebase and generates a starting CLAUDE.md of build commands, test instructions and conventions.
Exam context: Where a CLAUDE.md already exists it suggests improvements rather than overwriting. Distractors have it silently replacing the file, or generating settings.json, which it does not touch.
See also: 3.1 Claude Code Operation
/context
Section titled “/context”The built-in command that reports what is consuming the context window, listing loaded instruction files under Memory files.
Exam context: It reports and frees nothing. When a stem asks how to confirm which files a session actually loaded, this is the mechanism; when it asks how to free space, the answer is /compact.
See also: 3.1 Claude Code Operation
Auto Memory (Agent Memory)
Section titled “Auto Memory (Agent Memory)”The notes Claude keeps for itself at ~/.claude/projects/<project>/memory/. A MEMORY.md index loads at the start of every conversation, capped at its first 200 lines or 25KB, with topic files read on demand. On by default, per repository, shared across worktrees, machine-local.
Exam context: CLAUDE.md is what you write for Claude; auto memory is what Claude writes for itself. Machine-local is the tested property: a clean clone starts with none of it. autoMemoryEnabled: false in a project’s settings switches it off for that repository; the /memory toggle, which writes your user settings, and CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 switch it off across all your projects.
See also: 3.1 Claude Code Operation
Standing constraints as markdown files under .claude/rules/ (project) and ~/.claude/rules/ (user). A project rule with no paths field loads at launch with the same priority as .claude/CLAUDE.md, and paths frontmatter scopes a rule to matching files instead. User rules load before project rules, but neither set overrides the other: where they conflict, Claude may follow either.
Exam context: The guide’s Rules component spans two mechanisms of unequal force: these instruction files, which are context, and the permissions rules in settings.json, which the client enforces.
See also: 3.1 Claude Code Operation
A packaged procedure: a directory holding a SKILL.md with YAML frontmatter and markdown instructions, personal in ~/.claude/skills/<name>/ or project in .claude/skills/<name>/, plus managed settings and plugins. Claude invokes one when its description matches the task, or you type /skill-name.
Exam context: The body loads only when used, so a long procedure costs nothing until invoked. Name collisions across scopes resolve enterprise over personal over project, the inverse of settings precedence, which is exactly what the distractors exploit. skillOverrides in settings (September 2026) changes a skill’s visibility without editing it: user-invocable-only hides it from Claude but keeps /name, name-only drops its description, off hides it everywhere.
See also: 3.1 Claude Code Operation
Custom Command
Section titled “Custom Command”A project- or user-defined invocable. A file at .claude/commands/<name>.md creates /name, and custom commands have merged into skills: a skill at .claude/skills/<name>/SKILL.md creates the same /name with more capability.
Exam context: Existing command files keep working, and the skill wins a name clash. Arguments arrive through $ARGUMENTS, with $0 and $1 indexing individual positions.
See also: 3.1 Claude Code Operation
Subagent Definition
Section titled “Subagent Definition”A markdown file in .claude/agents/ (project) or ~/.claude/agents/ (user) with name and description required in frontmatter and tools, model and memory optional. The body is the subagent’s system prompt.
Exam context: Each runs in its own context window and only its final result returns to the main conversation, which is why the definition has to be self-contained. Name clashes follow the settings direction (September 2026): managed, then --agents JSON, then .claude/agents/, then ~/.claude/agents/, then plugins. A definition’s model outranks CLAUDE_CODE_SUBAGENT_MODEL unless CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1 is also set. Its permissionMode is ignored while the main session is in acceptEdits, auto or bypassPermissions, so a subagent that must never edit needs its editing tools left out of tools.
See also: 3.1 Claude Code Operation
settings.json
Section titled “settings.json”Claude Code’s configuration file: permissions, hooks wiring, env, model selection and operational toggles. .claude/settings.json is the checked-in team baseline.
Exam context: Configuration, not prose. A stem describing instructions or conventions is pointing at CLAUDE.md; a stem describing what Claude may and may not do is pointing here. It also carries outputStyle, statusLine, sandbox, and extraKnownMarketplaces with enabledPlugins for sharing plugins. A cloned repository cannot grant itself capability (September 2026): its permissions.allow rules, additionalDirectories and .mcp.json approvals such as enabledMcpjsonServers wait for someone to accept the workspace trust dialog, while deny and ask rules apply regardless.
See also: 3.1 Claude Code Operation
settings.local.json
Section titled “settings.local.json”Personal per-project configuration at .claude/settings.local.json, auto-gitignored: Claude Code adds **/.claude/settings.local.json to your global git excludes file.
Exam context: It outranks the checked-in project file, which is the whole point of it. Gitignored means excluded from version control, not from loading, and the distractor that says otherwise turns up in every second settings item.
See also: 3.1 Claude Code Operation
Settings Precedence
Section titled “Settings Precedence”The chain, highest to lowest: managed settings, command line arguments, .claude/settings.local.json, .claude/settings.json, ~/.claude/settings.json.
Exam context: Local beats project beats user for a single value such as model. Being checked in confers no rank, and user settings sit at the bottom rather than the top however personal the preference feels. List settings such as permissions.allow merge across files instead (September 2026), so a local file can add a rule but never remove a shared one. Want a prompt back for a command the team allows? Add an ask rule, because rules are checked deny, then ask, then allow.
See also: 3.1 Claude Code Operation
permissions.deny Rule
Section titled “permissions.deny Rule”A settings entry naming a tool and pattern that Claude Code refuses to run, such as Bash(git push *) or Read(./.env).
Exam context: Enforced by the client whatever the model decides, and binding in every permission mode including bypassPermissions. When a stem says a file or command must never be touched, this is the keyed answer and a CLAUDE.md sentence is the distractor.
See also: 3.1 Claude Code Operation
Permission Mode
Section titled “Permission Mode”The axis controlling how much Claude Code does without asking: default (labelled Manual, alias manual), acceptEdits, plan, auto, dontAsk and bypassPermissions. Shift+Tab cycles modes mid-session; permissions.defaultMode sets the starting point. In .claude/settings.json or .claude/settings.local.json (September 2026), an auto value does not take effect and the built-in default applies. Nor does bypassPermissions, which starts the session in Manual. From v2.1.283 the built-in default for interactive terminal and VS Code sessions is auto on every plan and provider; claude -p starts in Manual.
Exam context: The guide’s auto-mode feature, and the config values are exact. Choose by isolation and reversibility, not by how much waiting the engineer will tolerate.
See also: 3.1 Claude Code Operation
acceptEdits
Section titled “acceptEdits”The mode that auto-approves file edits and the common filesystem commands mkdir, touch, rm, rmdir, mv, cp and sed inside the working directory (September 2026).
Exam context: The right answer for iterating on code you will read in a diff afterwards. It approves edits, not arbitrary shell commands, which is the line distractors blur.
See also: 3.1 Claude Code Operation
The mode in which Claude reads and explores while edits stay blocked until you approve the plan. Approving switches the session into an editing mode.
Exam context: Keyed by unfamiliar code and by a stem wanting a proposal before any change lands. It gates everything in the repository, so it is the wrong tool for protecting one specific path.
See also: 3.1 Claude Code Operation
dontAsk
Section titled “dontAsk”The mode that auto-denies anything that would have prompted, running only pre-approved tools and the read-only command set.
Exam context: The CI answer: a session that must never wait for input and must never quietly widen its own reach. It needs an explicit allow list to get anything done, which is what makes it auditable. Where an unattended run’s commands cannot be listed in advance, --permission-mode auto has the classifier vet each one instead.
See also: 3.1 Claude Code Operation
bypassPermissions
Section titled “bypassPermissions”The mode that runs everything without checks, documented for isolated containers and VMs only. --dangerously-skip-permissions is its flag form.
Exam context: Two rules survive it: deny rules still block, and allow rules stop mattering entirely. A resume never brings it back, and a bypassPermissions value in .claude/settings.json or .claude/settings.local.json does not take effect (September 2026). Set it at launch, or in user, --settings or managed settings.
See also: 3.1 Claude Code Operation
Session Transcript
Section titled “Session Transcript”The JSONL file at ~/.claude/projects/<project>/<session-id>.jsonl that Claude Code writes continuously as a conversation runs.
Exam context: Sessions persist whatever you do, so “the conversation is gone” is never the keyed answer. Re-entry is claude --continue for the most recent session in the directory, claude --resume for the picker or a named ID, and /resume from inside a session. As of September 2026 only a terminal resume by --continue, ID or unique name restores the permission mode, and not for bypassPermissions or plan, among a few narrower cases. The picker and /resume leave the stored mode behind, a claude -p resume starts where a new -p run would, and launch flags such as --add-dir and --mcp-config must be passed again. /branch, or --fork-session on a resume, copies the conversation into a new session and leaves the original intact.
See also: 3.1 Claude Code Operation
/clear
Section titled “/clear”The in-session command that starts a conversation with empty context, for work unrelated to what came before.
Exam context: The old conversation stays on disk and reopens through /resume. Reaching for it mid-task to free space is the anti-pattern the exam dramatises, because the session then knows nothing about the task it is still working on.
See also: 3.1 Claude Code Operation
/compact
Section titled “/compact”The in-session command that replaces the conversation history with a summary, optionally focused by instructions you pass it.
Exam context: The move when the same task continues and the window is filling. Compaction keeps the thread; clearing drops it. Distractors offer /context as a third option, but reporting usage frees nothing.
See also: 3.1 Claude Code Operation
Headless Mode (claude -p)
Section titled “Headless Mode (claude -p)”Non-interactive Claude Code: prompt in, result out, no human at the terminal. Piped stdin is capped at 10MB, and the exit code is 0 on success so scripts can branch.
Exam context: A -p run starts in Manual on every plan, so scripted work states its own autonomy with --permission-mode and --allowedTools. Its sessions stay out of the interactive picker and a plain claude --continue but still resume by ID, and claude -p --continue includes them. The claim that Claude Code needs a terminal is a distractor, not a fact. It never shows the workspace trust dialog (September 2026), so in a folder nobody has trusted it ignores project permissions.allow rules yet still runs settings-file hooks and connects .mcp.json servers, unless --bare or --setting-sources user keeps them out.
See also: 3.1 Claude Code Operation
stream-json
Section titled “stream-json”The output format emitting newline-delimited JSON events as a run progresses, carrying a system/init event of session metadata and ending with a result message.
Exam context: Token deltas need this format plus --verbose and --include-partial-messages. Its siblings are text, the default, and json, the single payload carrying result, session_id, cost and usage. Invented flags such as --stream are the standing distractor. Subagent messages carry parent_tool_use_id, with null for the main conversation; --forward-subagent-text adds each subagent’s text and thinking to its tool calls (September 2026).
See also: 3.1 Claude Code Operation
--bare
Section titled “--bare”The flag that skips auto-discovery of hooks, skills, custom commands, subagents, installed plugins, MCP servers, auto memory and CLAUDE.md, so a bare run gets what it needs by flag, such as --agents or --mcp-config.
Exam context: Dated current state, September 2026: the docs recommend it for scripted and SDK calls and expect it to become the default for -p. The reasoning to carry into an item is reproducibility, since nothing in a developer’s home directory can then change what a pipeline runs.
See also: 3.1 Claude Code Operation
Domain 4 — Eval, Testing, and Debugging (2.6%)
Section titled “Domain 4 — Eval, Testing, and Debugging (2.6%)”Quick-lookup definitions for the 2.6% exam domain. Each entry includes a concise definition and exam context. Follow the lesson links to dive deeper.
Integration Layer
Section titled “Integration Layer”Everything between your code and a valid response: authentication, request construction, size and schema validity, rate limiting, transport, timeouts, stream assembly, and your own parsing of what came back.
Exam context: One half of the isolation the sub-skill is named for. A 4xx or 5xx carrying an error body names this layer, and the fixes here have nothing in common with the fixes for bad content.
See also: 4.1 Debugging and Error Handling
Model Output
Section titled “Model Output”Everything that goes wrong after a well-formed request has been answered with HTTP 200: content that is wrong, incomplete, off-format or fabricated.
Exam context: The other half. A 200 whose content you dislike is the prompt or the model speaking, and no retry schedule reaches it.
See also: 4.1 Debugging and Error Handling
Problem-Origin Isolation
Section titled “Problem-Origin Isolation”Deciding which layer failed before choosing a fix. The guide’s own phrase, and the first move in every diagnosis item.
Exam context: Evidence settles it, not intuition. Retrieval-backed systems get a third question first: was the material assembled into the context window correct? A better prompt over the wrong documents produces a more confident wrong answer.
See also: 4.1 Debugging and Error Handling
Request ID
Section titled “Request ID”The identifier on every API response, arriving as the request-id header and exposed as _request_id on Python and TypeScript response objects. It also appears in error bodies.
Exam context: Load-bearing, because it is the only key shared between your logs and Anthropic support. Log it on successes as well as failures; other headers come back through with_raw_response or .withResponse().
See also: 4.1 Debugging and Error Handling
error.type
Section titled “error.type”The string inside the nested error object that names the fault. Every error body carries a top-level type of error, a nested object with a type and a message, and a request_id.
Exam context: The documented strings are invalid_request_error, authentication_error, billing_error, permission_error, not_found_error, conflict_error, request_too_large, rate_limit_error, api_error, timeout_error and overloaded_error. A plausible-sounding alternative is a distractor by construction.
See also: 4.1 Debugging and Error Handling
Deterministic Fault
Section titled “Deterministic Fault”A failure that is a property of the request you sent: 400, 401, 402, 403, 404 and 413. The identical request fails identically however many times you send it.
Exam context: The tell in the stem is “fails immediately, every time, at any hour”. Retrying spends money and latency to reproduce the same failure, so the recovery changes the request, the credential or the payload. One 400 is not about the request at all: as of September 2026 a spend limit you set on the organisation or a workspace also returns 400 invalid_request_error (the Claude Code workspace can return a 429 instead), and the fix is raising or removing the limit.
See also: 4.1 Debugging and Error Handling
Transient Fault
Section titled “Transient Fault”A failure that is a property of the moment: 429, 500, 504, 529 and raw connection failures. The retryable class. 409 conflict_error is the edge case: the SDKs retry it, but the docs say to resolve the conflict first, so it is fix-then-retry rather than moment-shaped. Two members of the class are exceptions. A 504 that clusters on the longest requests needs streaming (or batching), because the errors page points long-running requests at streaming and every retry starts the generation again from the beginning. And the 429 a tier’s monthly spend cap returns (September 2026) has no retry-after and carries error.details.error_code enforced_spend_limit_reached. No retry clears it until access resumes.
Exam context: The tell is intermittency, usually clustered under load. This is the only class a backoff schedule can clear. The SDKs retry this set plus 408 and 409.
See also: 4.1 Debugging and Error Handling
request_too_large
Section titled “request_too_large”The 413 returned when a payload exceeds the endpoint ceiling. Dated current state (August 2026): 32 MB for the Messages and Token Counting APIs, 256 MB for the Batch API, 500 MB for the Files API. On the direct Claude API, Cloudflare returns it before the request reaches the API servers.
Exam context: Deterministic, so the recovery is a smaller payload or an endpoint with a larger maximum. The documented SDK exception table names no class for it, so it is read off status_code.
See also: 4.1 Debugging and Error Handling
rate_limit_error
Section titled “rate_limit_error”The 429, describing which limit was exceeded and carrying retry-after alongside the anthropic-ratelimit-* observability headers. As of September 2026 it is also what the tier’s monthly spend cap returns, with no retry-after and error.details.error_code set to enforced_spend_limit_reached.
Exam context: The transient fault with the richest evidence attached, and the one candidates most often answer with either too little (retry immediately) or too much (a model change). The headers are already in the response your handler threw away. Check error_code before backing off: the spend-cap 429 keeps failing, SDK retries included, until access resumes.
See also: 4.1 Debugging and Error Handling
retry-after
Section titled “retry-after”The response header giving “the number of seconds to wait until you can retry the request. Earlier retries will fail.”
Exam context: Authoritative, so a fixed schedule that ignores it is wrong however carefully it was tuned. The SDKs honour it by default when they retry. The spend-cap 429 comes without it (September 2026), and no retry clears that one until access resumes.
See also: 4.1 Debugging and Error Handling
Acceleration Limit
Section titled “Acceleration Limit”The rate limit that fires on a sharp organisation-wide increase in usage rather than on steady volume. Limits use a token bucket, so capacity replenishes continuously and a short burst can trip a ceiling the per-minute average never approaches.
Exam context: Keyed by a stem where 429s appear right after a rollout or a backlog flush. The documented fix is ramping traffic gradually, which is the one case where retrying harder makes the symptom worse.
See also: 4.1 Debugging and Error Handling
overloaded_error
Section titled “overloaded_error”The 529: the API is temporarily over capacity. Transient, and the type most often quoted in the mid-stream error frame.
Exam context: It is the error type a candidate meets twice, once as a status code and once inside the docs’ example event: error frame on a response that already returned 200.
See also: 4.1 Debugging and Error Handling
Typed Exception Hierarchy
Section titled “Typed Exception Hierarchy”The SDK classes: 400 BadRequestError, 401 AuthenticationError, 403 PermissionDeniedError, 404 NotFoundError, 409 ConflictError, 422 UnprocessableEntityError, 429 RateLimitError, 500 and above InternalServerError, and APIConnectionError for transport, all descending from APIError.
Exam context: The docs say to catch these rather than string-matching error messages, handling the most specific classes first. The published table names nothing for 402 or 413, so those come off status_code.
See also: 4.1 Debugging and Error Handling, 2.3 Claude API Mechanics
APIStatusError
Section titled “APIStatusError”Python’s catch-all for any non-200 status that has no more specific class. TypeScript throws APIConnectionTimeoutError where Python raises APITimeoutError.
Exam context: RateLimitError descends from it, so an except APIStatusError branch placed above the 429 branch swallows every rate limit silently and the backoff never fires. Ordering is the defect, not the classes.
See also: 4.1 Debugging and Error Handling
max_retries / maxRetries
Section titled “max_retries / maxRetries”The client setting governing how often the SDK repeats a transient failure. The default is two, with exponential backoff, honouring retry-after when present.
Exam context: It governs the retryable set only: connection errors, 408, 409, 429 and 500 and above. Raising it does nothing for a deterministic fault or for the spend-cap 429, which the SDKs retry anyway and which keeps failing until access resumes. Setting it to zero is how you take ownership of your own schedule.
See also: 4.1 Debugging and Error Handling
Exponential Backoff with Jitter
Section titled “Exponential Backoff with Jitter”The recovery for transient faults: wait longer after each attempt, cap the wait and the attempt count, randomise each wait, and honour retry-after where the response carries it.
Exam context: Jitter is not decoration. Synchronised retries from a flushed backlog re-create the burst that caused the 429, which is why “retry three times immediately” is the anti-pattern rather than a simplification.
See also: 4.1 Debugging and Error Handling
stop_reason
Section titled “stop_reason”The field on a successful response saying why generation ended: end_turn, max_tokens, stop_sequence, tool_use, pause_turn, refusal or model_context_window_exceeded.
Exam context: The domain’s sharpest diagnostic, because it converts a vague symptom into a class on a call that reported no failure at all. Logging it costs one line and settles most truncation arguments. Even end_turn can hide a fault (September 2026): an empty reply, two or three tokens with no content, often follows text added after tool_result blocks, so send tool results on their own.
See also: 4.1 Debugging and Error Handling
max_tokens (stop reason)
Section titled “max_tokens (stop reason)”The value meaning the response hit the cap set in the request, so it is truncated. If it cut a tool_use block in half, retry with a higher cap.
Exam context: A configuration fault with a configuration fix, and the standing trap is answering it with a sterner prompt or a larger model. Neither touches the arithmetic.
See also: 4.1 Debugging and Error Handling
refusal
Section titled “refusal”The stop reason meaning safety classifiers declined, arriving as “a normal HTTP 200 response, not an error”, with stop_details naming the policy category.
Exam context: The cleanest proof that a 200 is not proof of success. It never reaches an error handler, and a different model is the documented retry, never the same one again. As of September 2026 the routes are server-side fallback (the fallbacks parameter, in beta), the SDK refusal-fallback middleware, or your own retry. Discard any partial output.
See also: 4.1 Debugging and Error Handling
model_context_window_exceeded
Section titled “model_context_window_exceeded”The stop reason meaning the response filled the model’s context window rather than your max_tokens. Treat the response as truncated.
Exam context: The neighbour of max_tokens, and the discriminator between them is which budget ran out. Raising the cap changes nothing here; context budgeting is our reading of the remedy rather than a documented one.
See also: 4.1 Debugging and Error Handling, 6.1 Context Engineering
pause_turn
Section titled “pause_turn”The stop reason meaning the server-side sampling loop reached its iteration limit while executing server tools such as web search, ten per request by default (August 2026). Continue by sending the response back as-is with the same tools, and cap the continuations, since a continued turn can pause again. It never appears on a response that leaves a client tool_use block waiting on you, which is the discriminator between the two.
Exam context: A pause, not a failure and not a truncation. Distractors treat it as an error worth retrying from scratch, which discards the work already done.
See also: 4.1 Debugging and Error Handling
message_delta
Section titled “message_delta”The streaming event that carries stop_reason. It is null in message_start and appears in no other event.
Exam context: A streaming client that never reads this event is blind to truncation by construction, which is how a capped response gets reported upstream as a short but successful answer.
See also: 4.1 Debugging and Error Handling
Mid-Stream Error Frame
Section titled “Mid-Stream Error Frame”An event: error frame arriving inside a stream that already returned 200, carrying a body such as overloaded_error. The docs warn that here “error handling doesn’t follow these standard mechanisms”.
Exam context: A try/except around the call catches connection and status failures only. Handling belongs on the stream, and unknown event types are ignored on purpose because new ones may be added.
See also: 4.1 Debugging and Error Handling
tool_result with is_error
Section titled “tool_result with is_error”The block returned to Claude after a tool runs, carrying tool_use_id, content and is_error set to true “if the tool execution resulted in an error”.
Exam context: The content matters as much as the flag: “Instead of generic errors like failed, include what went wrong and what Claude should try next.” Server-tool errors are handled transparently by the API, so you never set is_error for those.
See also: 4.1 Debugging and Error Handling, 8.1 Tool Implementation
Constrained Decoding
Section titled “Constrained Decoding”The structural recovery for format failures. output_config.format with a json_schema guarantees schema-compliant responses through constrained decoding; strict: true on a tool definition guarantees schema validation on tool names and inputs, which is a different object.
Exam context: An unsupported JSON Schema feature returns “a 400 error with details”, which is itself the discriminator between a schema defect and a model defect. Dated current state (August 2026): output_format has moved to output_config.format and beta headers are no longer required.
See also: 4.1 Debugging and Error Handling, 6.3 Output Handling
The record a failure can be reproduced from without the original operator: request id, the exact request sent including the assembled context, the raw response, stop_reason, usage, every tool call with its inputs and results, and the retry history.
Exam context: If a failure cannot be reproduced from the logs, the logging is the first defect to fix. A template plus a note of the inputs is a reconstruction, and reconstructions are where the original defect hides.
See also: 4.1 Debugging and Error Handling
First Divergence
Section titled “First Divergence”The earliest step in a multi-step run where the trace departs from what you expected. The step to diagnose.
Exam context: Later steps are consequences. An agent that fabricated a figure at step nine after a tool returned an empty string at step three has a tool-contract defect, and debugging step nine fixes the wrong thing with great confidence.
See also: 4.1 Debugging and Error Handling
Silent Stale Fallback
Section titled “Silent Stale Fallback”Serving the previous run’s output, a cached answer or an empty result when retries are exhausted, without surfacing that the live call failed.
Exam context: It converts a visible outage into an invisible one: the system keeps answering, nobody is paged, and someone downstream trusts it. Exhausted retries should degrade explicitly or fail loudly.
See also: 4.1 Debugging and Error Handling
Idempotency
Section titled “Idempotency”Repeating an operation leaves the same result as performing it once. The question a recovery design answers before it decides how many attempts to allow.
Exam context: A retry that re-executes a side-effecting tool call is a bug, not a recovery. Deciding what is safe to repeat comes before deciding how often to repeat it.
See also: 4.1 Debugging and Error Handling
Regression Case
Section titled “Regression Case”A failing input promoted into a permanent test set, so the same defect is caught the next time rather than rediscovered.
Exam context: Our engineering practice rather than a documented Anthropic rule, and worth flagging as such. What the docs do say is to design evals that mirror the real task distribution, factor in edge cases, automate the grading, and use a different model to grade than the one that produced the output.
See also: 4.1 Debugging and Error Handling
Domain 5 — Model Selection and Optimisation (16.8%)
Section titled “Domain 5 — Model Selection and Optimisation (16.8%)”Quick-lookup definitions for the 16.8% exam domain. Each entry includes a concise definition and exam context. Follow the lesson links to dive deeper.
Autoregressive Generation
Section titled “Autoregressive Generation”The mechanism underneath every Claude response: the model emits one token at a time, each conditioned on the whole sequence so far, its own output included. Anthropic’s glossary describes the pretraining objective as predicting “the next word, given the previous context of text in the document”.
Exam context: Three consequences get keyed. Generation is serial, so response time scales with output length. There is no lookahead and no revision, so a contract stated before the task beats a correction bolted on after. And each token conditions the next, so an early wrong turn compounds instead of self-correcting.
See also: 5.1 LLM Fundamentals
A unit of the model vocabulary rather than of human text. Tokens “can correspond to words, subwords, characters, or even bytes (in the case of Unicode)”, so code, JSON, tables and non-English text tokenise quite differently from English prose.
Exam context: Don’t rely on a tokens-per-word ratio. The documentation set carries two that disagree with each other, roughly 3.5 characters per token in the glossary and roughly 4 characters or 0.75 words in the pricing FAQ, and that disagreement is itself the argument for measuring.
See also: 5.1 LLM Fundamentals
Tokenizer
Section titled “Tokenizer”The component that turns text into the tokens a given model actually consumes. It is a property of the model, not of the text, which is why the same words can cost different amounts on different models.
Exam context: As of August 2026, Claude 4.7 and later models use a newer tokenizer producing approximately 30 per cent more tokens for the same input. So a count carried across a migration is wrong twice over: once for the cost model, once for the window headroom. Recount, every time you change models.
See also: 5.1 LLM Fundamentals
Token Counting Endpoint
Section titled “Token Counting Endpoint”POST /v1/messages/count_tokens, which accepts the same structured inputs as a real message, system prompt, tools, images and PDFs included, and returns a single input_tokens field. It is free, has rate limits independent of message creation, and does not apply caching logic.
Exam context: It prices a request shape before you send it, and its answer is explicitly “an estimate”. It returns the count under the tokenizer of the model you pass, so the model argument is load-bearing rather than incidental. Options claiming that counting costs money or returns a guaranteed figure are wrong on both counts.
See also: 5.1 LLM Fundamentals
Context Window
Section titled “Context Window”Everything the model can reference when generating, the response included. The system prompt, every message with its tool results, images and documents, the tool definitions and the generated output with its thinking all compete for the same space.
Exam context: Caching creates no headroom, because “prompt caching changes what you pay for those tokens, not whether they count”. Bigger is not automatically better either, since recall degrades as token counts grow. Both corollaries are routinely got backwards in distractors.
See also: 5.1 LLM Fundamentals
model_context_window_exceeded
Section titled “model_context_window_exceeded”The stop_reason returned when a request was accepted but generation ran into the window limit. It arises on Claude 4.5 and newer when input tokens plus max_tokens exceed the window; earlier models return a validation error before generation instead.
Exam context: The discriminator against the other overflow branch is whether the input alone is too big. Input alone over the window is a 400 invalid_request_error before any generation, on every model. Both are budget arithmetic with budget fixes, and neither is a prompt fault. Silent first-in-first-out truncation of old messages is chat-interface behaviour, not API behaviour.
See also: 5.1 LLM Fundamentals
Temperature
Section titled “Temperature”The sampling parameter that widens or narrows the distribution the next token is drawn from. Lower values produce “more conservative and deterministic outputs that stick to the most probable phrasing and answers”, where deterministic is meant comparatively.
Exam context: As of August 2026 it is deprecated alongside top_p and top_k, returning a 400 on a non-default value on Claude 4.7 and later, with the recommended replacement “Omit and use prompting to guide model behavior”. The docs are not internally consistent here, since the reducing-latency page still suggests experimenting with it, so treat the deprecations table and the Thinking page as the authority.
See also: 5.1 LLM Fundamentals
Non-Determinism
Section titled “Non-Determinism”The property that identical inputs can produce different outputs across API calls. Stated first-party and without qualification: “Even with temperature set to 0, the results will not be fully deterministic”, on Anthropic’s own inference service and through third-party cloud providers alike.
Exam context: The most durable claim in the domain, because it describes the service rather than a release. Temperature zero buys consistency, not reproducibility. Any option promising byte-identical output for identical input is wrong, and the keyed fix is always a demonstrated format, an explicit output contract and validation at the boundary.
See also: 5.1 LLM Fundamentals
Adaptive Thinking
Section titled “Adaptive Thinking”The delegation form of reasoning control, set with thinking: {type: "adaptive"}, which lets Claude “decide when and how deeply to think based on the request”. As of 14 October 2026 it is already on with no configuration needed on Claude Opus 5.5, Opus 5, Sonnet 5.5, Sonnet 5, Haiku 5.5, Fable 5.1, Fable 5 and the Mythos models. On those models display defaults to "omitted", so thinking blocks come back with an empty thinking field until you set display: "summarized".
Exam context: Support was not uniform when the guide was written, which is exactly why it names it in the 5.3 scope. Claude Haiku 4.5, the fastest model then, rejects it and carries the older extended thinking form instead. As of 14 October 2026 every current model has it, Claude Haiku 5.5 included, and Haiku 4.5 is a legacy model. A design needing self-regulated reasoning depth rules out any model without it, Haiku 4.5 among them, on capability before cost enters the argument. To see the reasoning, read the thinking blocks: on Claude Fable 5.1, Opus 5.5, Opus 5, Sonnet 5.5 and Fable 5, asking for it in the response text can be refused with stop_details.category: "reasoning_extraction", a category billed even when the refusal arrives before any output.
See also: 5.1 LLM Fundamentals
Effort
Section titled “Effort”The parameter set through output_config, with levels low, medium, high, xhigh and max, trading intelligence for latency and cost inside a single model. The default depends on the model: as of 14 October 2026, “Most Claude models default to high effort”, while “Claude Opus 5.5 and Claude Haiku 5.5 default to medium”, and setting it to the model’s default behaves exactly as omitting it.
Exam context: The workhorse and the first lever to try, because it “applies to every output token”, so “it works whether or not thinking is enabled”, and it covers tool calls too, so “Lower effort also means fewer and terser tool calls” rather than merely shorter prose. It is “a behavioral signal, not a strict token budget”, and documentation states that tuning it is often a better lever than switching models.
See also: 5.1 LLM Fundamentals
Fast Mode
Section titled “Fast Mode”A research-preview inference configuration, opted into with speed: "fast" and the fast-mode-2026-02-01 beta header, which “runs the same model with a faster inference configuration. There is no change to intelligence or capabilities.”
Exam context: The only one of the four model options that does not trade quality. Its gain is in output tokens per second, “not time to first token (TTFT)”, so it tells on long streamed answers and barely registers on short ones. As of September 2026 it covers Claude Opus 5.5, Opus 5 and Opus 4.8 on the Claude API only, at premium pricing, and switching between fast and standard speed invalidates the prompt cache.
See also: 5.1 LLM Fundamentals
Multi-Shot Prompting
Section titled “Multi-Shot Prompting”Supplying several worked input-output pairs alongside the instruction. The guide’s vocabulary runs zero-shot, single-shot and multi-shot; the current documentation calls the same family “few-shot or multishot prompting”.
Exam context: Examples are “one of the most reliable ways to steer Claude’s output format, tone, and structure”, and the quality tests are named: relevant, diverse, structured in <example> tags, three to five for best results. Diversity is the underrated one, because a set sharing an incidental property teaches that property. Reach for examples on a failure of form or of boundary, never on a failure of budget or of fact.
See also: 5.1 LLM Fundamentals
Client SDK
Section titled “Client SDK”Anthropic’s typed client libraries, shipped for Python, TypeScript, C#, Go, Java, PHP and Ruby alongside the ant CLI. Each “provides idiomatic interfaces, type safety, and built-in support for streaming, retries, and error handling”, over the same public HTTP endpoint a raw request hits.
Exam context: The half items are actually written on is what it does not change. No SDK-only models, no cheaper tokens, no higher or waived rate limits, no uptime guarantee, no immunity from an error class. The exam-safe formulation: the SDK changes the ergonomics of calling the API and nothing about the API itself.
See also: 5.2 Technical Fundamentals
Request ID
Section titled “Request ID”The identifier on every response, arriving as the request-id header and exposed by the SDKs as _request_id, “so that you can quickly log failing requests and report them back to Anthropic”. It also appears inside error bodies.
Exam context: The only key shared between your logs and Anthropic support, which is why the keyed practice is logging it on successes as well as failures. Finding it during an incident is too late.
See also: 5.2 Technical Fundamentals
Typed Exception Hierarchy
Section titled “Typed Exception Hierarchy”The SDK classes mapped from HTTP status: BadRequestError (400), AuthenticationError (401), PermissionDeniedError (403), NotFoundError (404), ConflictError (409), UnprocessableEntityError (422), RateLimitError (429), InternalServerError (500 and above), and APIConnectionError for transport failures.
Exam context: Catch most-specific-first and branch on the class, never on the message text, which is not a contract and changes without notice. Branching on substrings of an error message is a recurring wrong answer.
See also: 5.2 Technical Fundamentals
max_retries
Section titled “max_retries”The SDK setting governing automatic retry. The default is 2, “with a short exponential backoff”, covering connection errors, 408, 409, 429 and 500 and above. The default timeout is 10 minutes, and requests that time out are themselves retried twice.
Exam context: Retries and timeout compose, so worst-case wall clock is roughly the timeout multiplied by the attempt count. A loop stacked on top of the defaults multiplies attempts, re-sends deterministic failures that will never succeed, and pushes a rate-limited endpoint further into the limit. Set it at one layer and let the other decide whether to degrade, queue or fail loudly. The retried set is not the same as the transient set: as of September 2026 a usage tier’s spend-cap 429 (no retry-after, an error_code of enforced_spend_limit_reached) is retried too, and keeps failing until access resumes.
See also: 5.2 Technical Fundamentals
Server-Sent Events
Section titled “Server-Sent Events”The transport the Messages API streams over, enabled with "stream": true. It runs on ordinary HTTP, needs no protocol upgrade, and is deliberately one-directional: MDN notes “you can’t send events from a client to a server”.
Exam context: One-way is exactly right for a response, because the client has nothing to say mid-generation. Streaming is also sometimes obligatory rather than optional, but the trigger is expected duration rather than any published max_tokens figure: the Python SDK “will throw a ValueError if a non-streaming request is expected to take longer than approximately 10 minutes”, because some networks drop idle connections. Passing stream=True or overriding timeout disables that check.
See also: 5.2 Technical Fundamentals
WebSocket
Section titled “WebSocket”A persistent two-way channel, which MDN describes as making it “possible to open a two-way interactive communication session between the user’s browser and a server”. It belongs between your own client and your own server.
Exam context: The reliable item shape is the right transport at the wrong layer. No documented Anthropic API surface accepts a websocket connection from a client, so proposing one to Anthropic is wrong at the protocol level rather than merely suboptimal. The reverse also gets tested: a websocket in your front end gives you no streaming from the API, and streaming from the API needs no websocket in your front end.
See also: 5.2 Technical Fundamentals
Mid-Stream Error Frame
Section titled “Mid-Stream Error Frame”An error delivered inside an already-successful stream, such as an overloaded_error during periods of high usage, arriving as an event: error frame after the 200 that opened the connection.
Exam context: A 200 opens a stream rather than completing it. Error handling wrapped around the call but not around the iteration never sees this, and the symptom is a silently truncated answer with no exception raised.
See also: 5.2 Technical Fundamentals
Connection Pool
Section titled “Connection Pool”The reusable set of HTTP connections owned by a client instance. Anthropic’s guidance is to use the SDK’s default HTTP client classes precisely so “the SDK’s default configuration (such as timeouts and connection limits) is preserved”.
Exam context: Construct one client at startup and reuse it. A client built inside every request handler discards the pool on every call, paying a fresh TLS handshake and multiplying open sockets. The defect only shows under concurrency, presenting as latency that grows with traffic and connection errors that look like an upstream problem, which is exactly the symptom set a stem will describe.
See also: 5.2 Technical Fundamentals
Cost and Capability Ordering
Section titled “Cost and Capability Ordering”The stated ranking of the current line-up. As of 14 October 2026: “From lowest to highest cost and capability, the current models are Claude Haiku 5.5, Claude Sonnet 5.5, Claude Opus 5.5, and Claude Fable 5.1 (the frontier model)”. A month earlier the same sentence began with Claude Haiku 4.5 and Claude Sonnet 5. Comparative latency runs the other way.
Exam context: The ordering is durable; the identifiers, prices and line-up are dated and belong on the quick reference. The consequence worth carrying: quality, latency and cost are not independent axes, so moving up the ordering buys capability and spends both money and time.
See also: 5.3 Model Selection and Trade-offs
Cost per Completed Task
Section titled “Cost per Completed Task”The documented unit of model comparison, in place of price per token: “A more capable model finishes a task with less work: fewer turns, less searching, less re-reading of its own context, and less backtracking.”
Exam context: Paired with the sampling rule, “Price the tail of your workload, not the median”. On the typical task every model looks similar and the cheapest looks best; the bill is decided by the tasks the cheaper model fails, because a failed task bills its tokens, then the retry, then the downstream cost. “The ranking flips by workload, and no price list tells you which way.”
See also: 5.3 Model Selection and Trade-offs
Efficiency-First Strategy
Section titled “Efficiency-First Strategy”Starting with the fastest tier, testing thoroughly, and upgrading “only if necessary for specific capability gaps”. Documented home ground: initial prototyping, tight latency requirements, cost-sensitive implementations and high-volume straightforward tasks.
Exam context: Not a default, and neither is its opposite. The stated constraint in the stem picks one, and an answer that applies either strategy as dogma is wrong regardless of direction.
See also: 5.3 Model Selection and Trade-offs
Capability-First Strategy
Section titled “Capability-First Strategy”Starting with “the strongest starting point for your task”, optimising the prompt for it, then considering “increasing efficiency by lowering effort or downgrading models over time”. Documented home ground: complex reasoning, “tasks requiring nuanced understanding”, and applications where accuracy outweighs cost.
Exam context: The starting point is not automatically the most capable model. As of September 2026 the page starts on Claude Opus 5.5 and moves to the frontier Claude Fable 5.1 only if evals at xhigh or max effort still fall short. Note where the optimisation goes, into effort before tier. An effort sweep on the model you are already running competes directly with a tier change, and documentation states that tuning effort is often the better lever.
See also: 5.3 Model Selection and Trade-offs
Evaluation Set
Section titled “Evaluation Set”The small suite of cases with explicit pass checks that converts an opinion about a model into a decision. Documentation calls it “the most important step in the process”, to be run “with your actual prompts and data”.
Exam context: The gate for both selection and migration. A benchmark table or a price cut is not a gate, because published numbers are measured on somebody else’s tasks. Pass checks are boolean rather than ratings, because that is what makes cost per completed task computable.
See also: 5.3 Model Selection and Trade-offs
Pinned Snapshot
Section titled “Pinned Snapshot”What every Claude model ID is. Dated IDs are fixed to a release, and from the 4.6 generation the dateless format is also a pinned snapshot rather than an evergreen pointer.
Exam context: Pinning means the snapshot you are on does not change underneath you, which is what makes a planned migration possible. It says nothing at all about how a different snapshot behaves, which is the entire reason a migration needs an eval. Recording what each identifier resolves to per environment is 2.6; deciding what to pin is here.
See also: 5.3 Model Selection and Trade-offs
Model Lifecycle States
Section titled “Model Lifecycle States”The four documented states. Active: “fully supported and recommended for use”. Legacy: “will no longer receive updates and may be deprecated in the future”. Deprecated: “still functional but no longer recommended”, with a recommended replacement and an assigned retirement date. Retired: “no longer available for use. Requests to retired models will fail.”
Exam context: Legacy is not Deprecated and Deprecated is not Retired. Distractors trade on exactly those confusions. Anthropic provides “at least 60 days’ notice before model retirement for publicly released models”, which is a planning window rather than a reprieve. A retirement date is a deadline on your roadmap.
See also: 5.3 Model Selection and Trade-offs
Breaking Behaviour Change
Section titled “Breaking Behaviour Change”The guide’s own phrase for what arrives with a new model release. Behaviour shifts in named ways, including default response length, how literally instructions are read, tool-calling tendency and readiness to delegate. Interface changes break code outright, and cost changes arrive even when nothing breaks.
Exam context: Interface changes fail loudly: manual thinking with budget_tokens, assistant prefill and non-default sampling parameters all return a 400 on the newest models. The expensive ones fail quietly, because a prompt written to compensate for an older model is followed literally by a newer one. Swapping the model string and carrying everything else across unchanged is the shape of that quiet failure.
See also: 5.3 Model Selection and Trade-offs
usage Object
Section titled “usage Object”The billing record on every response, carrying input_tokens, cache_creation_input_tokens, cache_read_input_tokens and output_tokens, plus details including output_tokens_details.thinking_tokens. A cost model prices those counts at their own rates (cache writes at the 5-minute or 1-hour multiplier), summed across the task’s requests.
Exam context: input_tokens does not mean all of the input. It counts the tokens after the last cache breakpoint, so on a cached request the real input volume is the sum of all three input fields. Read it alone on a heavily cached workload and the prompt looks as though it shrank. On a stream, the counts on message_delta are cumulative and are read rather than summed.
See also: 5.4 Cost and Token Management
Cache Write and Cache Read
Section titled “Cache Write and Cache Read”The two asymmetric halves of caching economics. As of September 2026, a 5-minute write costs 1.25x base input price, a 1-hour write 2x, and a read or refresh 0.1x on most models (0.05x on Claude Opus 5.5, 0.025x on Claude Fable 5.1 and Mythos 5.1). “A cache hit costs 10% of the standard input price, which means caching pays off after one cache read for the 5-minute duration (1.25x write), or after two cache reads for the 1-hour duration (2x write).”
Exam context: Key on the shape rather than the figures. A write costs more than not caching, so a single-use prefix loses money outright, and describing caching as pure saving with no write cost is a distractor. Choosing the longer lifetime is an economic decision rather than a configuration one, because a miss re-sends the whole prefix at full price and writes it again.
See also: 5.4 Cost and Token Management
Minimum Cacheable Length
Section titled “Minimum Cacheable Length”The per-model token floor below which a prompt “is processed without caching”. As of 14 October 2026 it runs from 512 tokens on the newest models (Claude Fable 5.1, Mythos 5.1, Opus 5.5, Opus 5, Sonnet 5.5, Fable 5, Mythos 5 and Haiku 5.5) up to 4,096 on Claude Opus 4.6, Opus 4.5 and Haiku 4.5.
Exam context: The failure is silent. A prefix under the minimum returns no error at all, so there is nothing for a handler to swallow and nothing in the logs to notice. It is the reason “large” is one of the four conditions rather than a nicety.
See also: 5.4 Cost and Token Management
Cache Lifetime
Section titled “Cache Lifetime”How long an entry stays valid, five minutes by default or one hour at the higher write price. The clock is “measured from the start of the request that writes or reads the cache entry, not from response end”, and the entry “is refreshed at no additional cost each time cached content is used”.
Exam context: Generation time counts against the window, so a response that streams for several minutes has eaten most of the shorter lifetime before the next request begins. A bursty arrival pattern is where the choice between the two durations stops being configuration and becomes arithmetic.
See also: 5.4 Cost and Token Management
Cache Check-Pointing
Section titled “Cache Check-Pointing”The guide’s own phrase for deciding where the breakpoint sits when the prefix grows every turn. The settled transcript is the stable part and the new turn is the volatile part, so the breakpoint belongs at that boundary and has to advance as the boundary moves.
Exam context: Two limits shape explicit designs: at most four breakpoints per request, and a twenty-block lookback window from each one. A conversation growing further past the last write than that lookback will miss, and the fix is a second breakpoint placed closer and from the start. A checkpoint placed before volatile content is wasted, because that content invalidates everything after it on every request.
See also: 5.4 Cost and Token Management
Usage and Cost API
Section titled “Usage and Cost API”The organisation-level aggregate. /v1/organizations/usage_report/messages tracks uncached input, cached input, cache creation and output tokens in buckets of a minute, an hour or a day, groupable “by API key, workspace, model, service tier, context window, data residency, or speed”, and /v1/organizations/cost_report returns cost breakdowns in USD.
Exam context: Third of the three instruments, and options offering one for another’s job are wrong by construction. It needs an Admin API key rather than a standard one, is “unavailable for individual accounts”, surfaces data within about five minutes, and supports polling once a minute. Measuring a change against a monthly invoice is the distractor, because an invoice cannot separate two changes or a traffic fluctuation from either.
See also: 5.4 Cost and Token Management
Batch Processing
Section titled “Batch Processing”Asynchronous request processing at “a 50% discount on both input and output tokens”, with results available when the batch completes or after 24 hours, whichever comes first.
Exam context: A free win, but only for work nobody is waiting on. The discount is paid for in delivery time, so routing an interactive service through it trades a real requirement for a saving. That trade is a recurring wrong answer.
See also: 5.4 Cost and Token Management
max_tokens
Section titled “max_tokens”The per-response output cap. As of September 2026: “A task budget saves money, because the model sees it. max_tokens is a safety cap: lowering it cut cost per attempt without lowering cost per solved task.” It “caps a single response, invisibly to the model, so lowering it does not make the model economize. The turns that needed the room are discarded and still billed.”
Exam context: The most reliable distractor in the sub-skill, and it is wrong on the mechanism rather than on the arithmetic. In Anthropic’s internal measurement a tight cap cut off a large share of attempts, and very few of those still passed. Attempts got cheaper and fewer tasks got solved, so cost per solved task barely moved. The correct handling inverts the instinct: set it high enough that nothing is cut off, and “treat stop_reason: max_tokens as a failure”. Take the saving from a lever the model can see, such as effort or a task budget. A task budget is a beta that shows the model a running token countdown for the whole agentic loop; it is advisory, so max_tokens stays the hard ceiling.
See also: 5.4 Cost and Token Management
Token Hygiene
Section titled “Token Hygiene”The plain send-less lever: pruning stale tool output, retrieving fewer and better passages, dropping dead transcript and right-sizing images. Documented as a free win, one that cuts spend without touching quality.
Exam context: Second only to caching by measurement. In Anthropic’s triage-agent run it took an 83 per cent saving to 88 per cent. It sits alongside a prompt audit against the model you actually run, which removes instructions written for an older model that a newer one now follows literally.
See also: 5.4 Cost and Token Management
Domain 6 — Prompt and Context Engineering (11%)
Section titled “Domain 6 — Prompt and Context Engineering (11%)”Quick-lookup definitions for the 11% exam domain. Each entry includes a concise definition and exam context. Follow the lesson links to dive deeper.
Context Engineering
Section titled “Context Engineering”The set of strategies for curating and maintaining the optimal set of tokens during inference. Prompt engineering asks what the instructions say; context engineering asks what is in the window at all, including everything an agentic run put there on its own.
Exam context: The tested decisions are curation decisions, and they are tested on long agentic runs, because that is where a window fills without anyone deciding it should. One of them is just-in-time loading (Anthropic’s engineering guidance, as of September 2026): the agent keeps lightweight identifiers such as file paths, stored queries and links, and loads the data through tools when the task needs it rather than having everything pasted in up front.
See also: 6.1 Context Engineering
The volumetric fault: full API payloads, whole file contents and complete search results accumulating in the window long after their useful content was extracted. Symptoms are cost and latency climbing per step, ending in a request that no longer fits.
Exam context: Rising cost, latency and request size describe bloat and nothing else. The keyed fixes are pruning spent tool output, compacting the settled transcript, and isolating the sprawling step.
See also: 6.1 Context Engineering
The behavioural fault: standing rules stated once, now sitting hundreds of turns back, and no longer honoured. Formats vary, a rule gets skipped, an established fact gets contradicted, while token counts stay flat.
Exam context: Half the sub-skill turns on separating this from bloat. An item describes one or the other, never both, and offering a pruning answer for wandering behaviour is the classic mismatch.
See also: 6.1 Context Engineering
Attention Budget
Section titled “Attention Budget”Anthropic’s framing for why length degrades quality rather than merely costing more. Models draw on a finite budget when parsing large volumes of context, every new token depletes it, and recall accuracy falls as the volume grows.
Exam context: This is why a larger context window is the standing distractor in every degradation item. It moves the ceiling and leaves recall exactly where it was.
See also: 6.1 Context Engineering
Context Editing
Section titled “Context Editing”The Messages API implementation of tool output pruning, a beta behind the header context-management-2025-06-27. Clearing happens server-side before the prompt reaches Claude, so the client keeps its full unmodified history.
Exam context: Distractors describe client-side bookkeeping or silent deletion. Neither is the mechanism: nothing is dropped without a placeholder, and nothing is asked of your stored history.
See also: 6.1 Context Engineering
clear_tool_uses_20250919
Section titled “clear_tool_uses_20250919”The context-editing strategy that clears spent tool uses and results. Its parameters are trigger (default 100,000 input tokens), keep (default 3 tool uses), clear_at_least, exclude_tools and clear_tool_inputs (default false).
Exam context: The defaults are keyed facts, and so is the direction of clear_tool_inputs: the call’s arguments stay unless you opt in to clearing them, which is what lets Claude still see what it asked for.
See also: 6.1 Context Engineering
clear_at_least
Section titled “clear_at_least”The minimum number of tokens a clearing pass must reclaim before it runs at all.
Exam context: Its reason for existing is the tested part. Clearing invalidates the cached prefix from the clearing point, so a pass that reclaims a trivial amount costs a cache write and saves nothing.
See also: 6.1 Context Engineering
exclude_tools
Section titled “exclude_tools”The context-editing parameter naming tools whose uses and results are never cleared.
Exam context: The escape hatch for a result still cited later in the run. A design that clears a result the agent must keep quoting is fixed here, not by turning clearing off.
See also: 6.1 Context Engineering
applied_edits
Section titled “applied_edits”The context_management.applied_edits field on the response, reporting what clearing actually did, with cleared_tool_uses and cleared_input_tokens per edit.
Exam context: The only honest record of what was removed, and the pair of numbers worth logging per step. The token-counting endpoint previews the same effect, returning original_input_tokens beside the post-clearing count.
See also: 6.1 Context Engineering
Compaction
Section titled “Compaction”Replacing the settled portion of a transcript with a structured summary so the conversation can continue rather than end. As of September 2026 it comes in two beta forms. On demand (header compact-2026-09-04): your code sends the conversation with the top-level compaction parameter, gets back one compaction block, and swaps it in first in messages in place of the messages it summarises. At a token threshold (header compact-2026-01-12): a compact_20260112 edit in context_management has the API summarise inside an ordinary request once input tokens reach the trigger (minimum 50,000, default 150,000). The docs say to use on-demand compaction wherever it is available, and the compaction parameter cannot be sent with context_management.
Exam context: Compaction is not lossless and not reversible. The pre-compaction history is not archived anywhere retrievable, so anything the summary omitted is gone from the conversation for good, documents and images in the summarised turns included. A model with context awareness (Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 and Claude Haiku 4.5, as of September 2026) may start wrapping up as the window fills unless the prompt says the harness compacts.
See also: 6.1 Context Engineering
Compaction Block
Section titled “Compaction Block”The content block of type compaction carrying the summary. With threshold compaction you append the response to your messages as usual, and on the next request the API ignores every content block before it. With on-demand compaction your code puts the block first in messages and removes the messages it summarises.
Exam context: The mechanism behind the trap. An option claiming the original conversation is preserved and merely re-sent in shortened form inverts what the block does. An option that appends an on-demand block after the newest turn gets the swap backwards: the block goes first.
See also: 6.1 Context Engineering
Preservation Contract
Section titled “Preservation Contract”The written statement of what a compaction summary must carry: decisions and their reasons, established facts and sources, constraints and prohibitions still binding, open questions, and the state of unfinished work. Raw payloads already reduced to facts and superseded attempts get dropped.
Exam context: In both forms of compaction a custom instructions string replaces the default summarisation prompt entirely rather than extending it, so anything the default kept is no longer asked for unless a narrow instruction names it. The failure surfaces as a contradiction many steps later.
See also: 6.1 Context Engineering
usage.iterations
Section titled “usage.iterations”The per-iteration usage breakdown on a compacting run. The compaction pass is billed as its own iteration and appears here; the top-level input_tokens and output_tokens exclude it, and on an on-demand compaction request they read zero.
Exam context: A cost model reading only the top-level counts undercounts every run that compacted. Summing the iterations is the correct arithmetic.
See also: 6.1 Context Engineering
Context Isolation
Section titled “Context Isolation”Running work in a separate window so it never enters the main conversation. A subagent’s intermediate tool calls and results stay inside it and only its final message returns to the parent.
Exam context: The saving is that the exploration never arrives, not that it gets summarised afterwards. The documented line: use a subagent when the task produces verbose output the main context does not need, when tool restrictions must be enforced, or when the work is self-contained and can return a summary; stay in the main conversation when the task needs frequent back-and-forth, when multiple phases share significant context, when the change is quick and targeted, or when latency matters.
See also: 6.1 Context Engineering
Delegation Handover
Section titled “Delegation Handover”The two-directional contract of an isolated run: everything the worker needs goes into the invoking prompt, and the return shape is specified as precisely as the inputs. A subagent context starts fresh with no parent conversation, receiving its own system prompt and the Agent tool’s prompt string, and no parent history, tool results or system prompt.
Exam context: Options claiming a subagent picks the standing constraints up from the conversation, or inherits the parent’s system prompt, describe an impossible mechanism.
See also: 6.1 Context Engineering
Memory Tool
Section titled “Memory Tool”Anthropic’s cross-session persistence mechanism, generally available on the Messages API with no beta header, declared as a single tools entry of type memory_20250818. Claude issues view, create, str_replace, insert, delete and rename commands against paths under /memories, and your application executes them client-side.
Exam context: The alternative to replaying a transcript so the model remembers. It is also what preserves information that must survive a summarisation, which is why memory writes come before the compaction fires rather than after it.
See also: 6.1 Context Engineering
Document-First Ordering
Section titled “Document-First Ordering”Placing long inputs near the top of the prompt, above the query, instructions and examples. Documented for inputs over about 20k tokens, with queries at the end improving response quality by up to 30 percent in tests on complex multi-document inputs.
Exam context: The reading-order intuition points the wrong way, which is what makes question-first a convincing distractor. Wrapping each document in its own tags with source metadata, and asking for quotes before the task, are the two refinements that travel with the rule.
See also: 6.1 Context Engineering
System Field
Section titled “System Field”The top-level system parameter, carrying durable material: who Claude is in this application, standing rules, tone, scope limits, refusal boundaries. It sits ahead of every message, so it is present on every turn however long the conversation runs.
Exam context: The keyed answer to drift. Emphasis, capitalisation and repetition are the distractors, because none of them changes where the rule sits relative to the turn it must govern.
See also: 6.2 Prompt Engineering
Mid-Conversation System Message
Section titled “Mid-Conversation System Message”A message with role system appended to messages at the point a new instruction becomes relevant. Generally available with no beta header. As of September 2026 it works on Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Opus 5.5, Claude Opus 5, Claude Opus 4.8 and Claude Sonnet 5.5. Not available on Claude Sonnet 5, where the top-level system field is used instead.
Exam context: It keeps operator priority without editing the top-level field, so the earlier turns stay byte-identical and the cached prefix still hits. Its placement rules are examinable on their own, and every violation returns a 400. A turn-scoped variant (beta, clear_at set to "next_user_message") renders only until a later user message exists, then stays in the array at no token cost, which suits a per-turn reminder in a tool loop.
See also: 6.2 Prompt Engineering
System Precedence
Section titled “System Precedence”The rule that a user message is treated as coming from the end user while a system message is treated as coming from you, the application operator, and that system instructions win when the two conflict. Later system messages take precedence over earlier ones and over the top-level field for the turns that follow.
Exam context: Authority is what makes the role worth using. It is also why untrusted content must never be placed there: system content is treated as operator instruction and followed.
See also: 6.2 Prompt Engineering
Instruction Surface
Section titled “Instruction Surface”Any place an instruction can live: the system prompt, a tool description, a schema’s field descriptions, or a CLAUDE.md file. The choice is mechanical: put the instruction on the surface guaranteed to be present at the moment it must apply.
Exam context: A rule stated on three surfaces in three slightly different wordings is a defect, not redundancy. It is a conflict resolved at run time, and a precedence clause makes it survivable rather than removing it.
See also: 6.2 Prompt Engineering
Instruction Clarity
Section titled “Instruction Clarity”A technical property, tested by showing the prompt to a colleague with minimal context. Say what to do rather than what to avoid, give the motivation so the model generalises, decompose compound instructions into ordered steps, and state audience, format and length explicitly.
Exam context: Restating the same vague rule more forcefully is the distractor, and so is moving it to another surface. Placement fixes a rule that drifts; it does nothing for one that was never precise enough to follow. As of September 2026 the docs also describe how current models read wording. Claude Sonnet 5 and Claude Opus 4.8 take scope literally, so state it. “Can you suggest” gets suggestions, so ask for the change or set a default to act. Post-tool summaries may be skipped unless you ask for them. The prompt’s own style leaks into the output. And emphatic wording such as “CRITICAL: You MUST” can make Claude Opus 4.5 and Claude Opus 4.6 over-trigger.
See also: 6.2 Prompt Engineering
Few-Shot Examples
Section titled “Few-Shot Examples”Worked input and output pairs in the prompt, the most reliable way to steer output format, tone and structure. The current recommendation is three to five, each relevant, diverse and structured, wrapped in example tags with multiple examples inside an examples wrapper.
Exam context: More is not better. Inconsistent examples teach inconsistency, examples of the wrong shape outrank your description, and an undelimited example is indistinguishable from the live task.
See also: 6.2 Prompt Engineering
max_tokens
Section titled “max_tokens”A hard cap on generation. Reaching it truncates the response mid-sentence and reports stop_reason of max_tokens; in a tool-use turn it can leave an incomplete tool_use block.
Exam context: Never a brevity control. Responses that stop mid-sentence are a cap, not a model ignoring an instruction, and the fix is to raise the ceiling and put the length in the prompt with a worked example.
See also: 6.2 Prompt Engineering
Prefill
Section titled “Prefill”Providing a partial assistant message for Claude to continue from. No longer supported on the last assistant turn from Claude 4.6 models and Claude Mythos Preview onward; such requests return a 400.
Exam context: Still the most tempting wrong answer for a format problem, because it was the standard technique for years. The documented replacements are structured outputs for format and a direct system-prompt instruction for preamble suppression.
See also: 6.2 Prompt Engineering
Sampling Controls
Section titled “Sampling Controls”temperature, top_p and top_k. Any non-default value on Claude Opus 4.7 or later returns a 400. As of September 2026 the Python SDK (v1.0 and later) no longer defines the fields, so passing one raises a TypeError before the request is sent.
Exam context: Wrong on mechanism first and unavailable second. Sampling never governed format, focus or caution, so the reasoning that rules the option out predates its removal.
See also: 6.2 Prompt Engineering
JSON-Encoding
Section titled “JSON-Encoding”Wrapping a third-party string in a JSON object rather than concatenating it into free-form text. JSON escaping provides unambiguous delimiters between the untrusted payload and the surrounding structure, so an attacker cannot close a quote or tag to break out into an instruction context.
Exam context: Stripping characters is the distractor: it destroys content the sender meant and still misses whatever class you did not think of. Encoding makes the content structurally incapable of ending the block it sits in.
See also: 6.2 Prompt Engineering
tool_result Routing
Section titled “tool_result Routing”Delivering third-party content inside tool_result blocks rather than in system prompts or plain user text.
Exam context: The corollary is the part people miss. Content in a tool result is treated as untrusted data and may be ignored or flagged, so your own instructions do not belong there either. They go in the user turn that follows, or in a mid-conversation system message.
See also: 6.2 Prompt Engineering
Evaluation Set
Section titled “Evaluation Set”A fixed set of real inputs, including the edge cases that actually bite, scored the same way every run. The docs put building one ahead of any prompt technique.
Exam context: The set is a variable too. Adding cases mid-experiment makes every earlier score incomparable, whichever direction the number moved, and the recovery is to re-score on the original set and re-baseline afterwards.
See also: 6.2 Prompt Engineering
Attribution
Section titled “Attribution”Knowing which change moved the score, which requires exactly one variable moving per run.
Exam context: Asking the model which of your changes helped is not evidence; it has no privileged access to why its own distribution shifted. Where a change targets a rare failure, sample the same case repeatedly, because one pass through a non-deterministic system cannot tell a fix from luck. A model move counts as a change too: as of September 2026, verification steps carried over to Claude Opus 5 cause over-verification, so remove them rather than reword them, then re-score.
See also: 6.2 Prompt Engineering
Structured Outputs
Section titled “Structured Outputs”Constraining the response to a JSON schema through output_config.format with type json_schema. Structured outputs guarantee schema-compliant responses through constrained decoding, so on a completed response malformed JSON and missing required fields stop being a class of bug you handle (a refusal or a max_tokens cut can still break the schema; check stop_reason).
Exam context: The parameter has moved from output_format to output_config.format and beta headers are no longer required. As of September 2026 output_format is deprecated and returns a 400 unless the structured-outputs-2025-11-13 header is sent, though the Python parse() helper still takes a Pydantic model under that name. The first request with a new schema pays grammar-compilation latency, compiled grammars cache for 24 hours from last use, and changing the format invalidates the prompt cache for that thread. Required properties come first in the output, then optional ones.
See also: 6.3 Output Handling
Strict Tool Use
Section titled “Strict Tool Use”Applying the same constrained decoding to tool names and tool inputs by setting strict to true on a tool definition. The right choice when the structured value is an action’s arguments rather than the response itself, and usable in the same request as a JSON schema.
Exam context: Distractors treat it as an alternative that also enforces ranges and lengths. It enforces the same subset, which excludes both. As of September 2026 strict schemas share request-wide complexity limits (20 strict tools, 24 optional parameters, 16 union-typed parameters), and a grammar that is still too large returns a 400.
See also: 6.3 Output Handling
Supported Schema Subset
Section titled “Supported Schema Subset”What constrained decoding can express. Unsupported: minimum, maximum, multipleOf, minLength, maxLength, recursive schemas, complex types within enums, external $ref, and array constraints beyond minItems of 0 or 1. additionalProperties must be set to false.
Exam context: The gaps are exactly where validation still lives, and adding an unsupported keyword to the schema is rejected rather than enforced. A schema can guarantee a field is a number; it cannot guarantee the number is plausible.
See also: 6.3 Output Handling
Validation Layer
Section titled “Validation Layer”The code that runs on every response and answers “is this right?”: structural checks, range and plausibility, cross-field consistency, and referential checks against the system that issues an identifier.
Exam context: Structured outputs remove the parse-failure class on a completed response and nothing else, so adopting them and deleting the validator is the standing trap. Current state (checked 6 October 2026): the structured outputs docs list cases where the output may not match the schema, among them a refusal and a max_tokens cut, so check stop_reason before parsing. On failure the layer raises, with the raw body and request id attached; substituting a default converts a loud failure into a quiet wrong record. Compare enum values case-insensitively: as of September 2026 the capitalisation of enum and const values is not guaranteed.
See also: 6.3 Output Handling
Referential Check
Section titled “Referential Check”Verifying that an identifier names a real thing, by looking it up in the system that issues it.
Exam context: The only check that catches a confidently invented identifier, because a fabricated reference is formatted indistinguishably from a real one. Self-assessed confidence fields and second calls asking the model to check its own work consult nothing external.
See also: 6.3 Output Handling
stop_reason
Section titled “stop_reason”The response field naming why generation ended: end_turn, max_tokens, stop_sequence, tool_use, pause_turn, refusal or model_context_window_exceeded, plus compaction on a compaction request. Read before the payload, never after.
Exam context: Both max_tokens and model_context_window_exceeded mean the response is truncated, and truncated output can be syntactically valid up to the cut. A clean parse and an HTTP 200 prove nothing on their own.
See also: 6.3 Output Handling
Refusal
Section titled “Refusal”Claude declining to produce the response. It arrives as stop_reason of refusal on a normal HTTP 200, with a stop_details object naming the policy category.
Exam context: The one failure that never looks like one to status-code branching, so retry logic keyed to HTTP errors cannot address it. An integration that treats it as an empty success writes nothing and reports nothing.
See also: 6.3 Output Handling
Informed Retry
Section titled “Informed Retry”Re-asking with the specific validation errors attached: which field was missing, which value fell outside its range, which two fields disagreed. Capped at a small, explicit number of attempts.
Exam context: An identical retry samples the same distribution and fails the same way indefinitely, and an uncapped loop on a systematic failure is a cost incident. Repeated failure on the same field is a defect in the schema, the prompt or the validator rather than bad luck.
See also: 6.3 Output Handling
Best-of-N Verification
Section titled “Best-of-N Verification”Running the same prompt several times and treating disagreement between the runs as a fabrication signal.
Exam context: One of the documented hallucination controls, alongside permission to decline in fixed wording and quote grounding before the task. All of them reduce the rate; none removes the need to check anything with a real-world referent against the system that issues it. For supplied documents, the Citations feature is stronger than prompting for quotes, because the API extracts cited_text itself. As of September 2026, enabling it alongside output_config.format returns a 400.
See also: 6.3 Output Handling
Domain 7 — Security and Safety (8.1%)
Section titled “Domain 7 — Security and Safety (8.1%)”Quick-lookup definitions for the 8.1% exam domain. Each entry includes a concise definition and exam context. Follow the lesson links to dive deeper.
Prompt Injection
Section titled “Prompt Injection”Text that reaches the context as data and is read as instruction. Claude receives one context: system prompt, turns, tool definitions and tool results. All of it is text, so nothing structural separates your commands from a supplied document’s sentences.
Exam context: A property of how these systems work, not a defect awaiting a patch. No release note will retire it. Every keyed answer in this space is structural: separation, least privilege, a deterministic gate, or a check on the outbound path.
See also: 7.1 AI Application Security
Direct Prompt Injection
Section titled “Direct Prompt Injection”The threat model where the user of your application is the adversary, crafting input intended to bypass your guardrails. Jailbreaks sit in the same class.
Exam context: Mitigations sit on the input path: a harmlessness screen before the main call, input validation, a system prompt stating boundaries and how to refuse, and a policy for repeat offenders. Offering these for a payload that arrived inside fetched content is the standing distractor.
See also: 7.1 AI Application Security
Indirect Prompt Injection
Section titled “Indirect Prompt Injection”The threat model where the user is trusted and the adversary is whoever influenced content Claude reads on their behalf: an inbound email body, a fetched page, OCR text, a tool result.
Exam context: The class that matters in agentic applications, because the attacker never touches your interface and the payload arrives through a channel your users already trust. The controls that hold sit on the tool surface and the outbound path.
See also: 7.1 AI Application Security
tool_result Block
Section titled “tool_result Block”The content block third-party text belongs in. Claude is trained to treat instructions appearing inside tool results with appropriate scepticism, which is why current guidance puts untrusted content there and never in a system prompt or a plain user text block.
Exam context: Current docs have moved past wrapping everything in XML tags, and the placement rule is keyed. Its inverse is keyed just as often: your own instructions must not go inside a tool result, or Claude may ignore them or flag them as an injection attempt.
See also: 7.1 AI Application Security
JSON-Encoded Untrusted Content
Section titled “JSON-Encoded Untrusted Content”Serialising a third-party string rather than concatenating it into free-form text. Escaping supplies unambiguous delimiters, so an attacker cannot close a quote or a tag to break out into an instruction context.
Exam context: The reason is the answer. Distractors offer delimiters that an attacker can close, or claim the encoding is about parsing convenience rather than about denying a break-out.
See also: 7.1 AI Application Security
Harmlessness Screen
Section titled “Harmlessness Screen”A lightweight model call that classifies content before the main call runs, with the verdict constrained by structured outputs to a parseable value rather than prose. The docs name Claude Haiku 5.5 for it. Its safety classifiers can decline the screen itself, so the docs treat a stop_reason: "refusal" on the screening call as a harmful verdict.
Exam context: A check with an enforcement point, because the application decides whether the content reaches the model. But it is still a model, so it is probabilistic and it misses. That is why it composes with deterministic controls rather than replacing them.
See also: 7.1 AI Application Security
Least Privilege
Section titled “Least Privilege”Cutting what a successful injection could reach: the smallest tool surface and the narrowest credential scope that still does the job.
Exam context: Three moves, not interchangeable. Remove the tool, so there is no decision left to influence. Scope the tool, so matching calls are denied in every permission mode. Narrow the credential, so the query never had the reach.
See also: 7.1 AI Application Security, 7.2 Guardrails and Safe Deployment
Bare-Name Deny Rule
Section titled “Bare-Name Deny Rule”A deny entry naming a tool with no pattern, such as disallowed_tools=["Bash"]. It removes the tool definition from the request, so Claude does not see the tool and cannot attempt it.
Exam context: The strongest form of least privilege over a tool surface, and the reason removal beats denial. Its adjacent distractor is an allow list, which does not constrain bypassPermissions.
See also: 7.2 Guardrails and Safe Deployment
Scoped Deny Rule
Section titled “Scoped Deny Rule”A deny entry carrying a pattern, such as disallowed_tools=["Bash(rm *)"]. The tool stays available and matching calls are denied in every permission mode, bypassPermissions included.
Exam context: An enforceable boundary rather than a preference, which is what separates it from a system-prompt sentence describing the same restriction.
See also: 7.2 Guardrails and Safe Deployment
Permission Evaluation Order
Section titled “Permission Evaluation Order”The published sequence a tool call runs through: hooks, then deny rules, then ask rules, then the permission mode, then allow rules, then the canUseTool callback.
Exam context: Knowing the order is what tells you whether your check runs at all. A call approved at any earlier step skips canUseTool entirely, so a security check written there is silently bypassed for that tool; for a check that must run on every call, use a PreToolUse hook.
See also: 7.1 AI Application Security, 7.3 Claude Hooks
Prompt Leak
Section titled “Prompt Leak”The escape of anything in the context through the response: the system prompt, internal identifiers, another tenant’s rows, a retrieved document the caller was never entitled to see.
Exam context: The documented ordering is monitoring first, then output screening and post-processing, and leak-resistant prompt engineering last, because it adds complexity to the model’s main task. The durable fix is not putting the value in the context at all. Prefilling the assistant turn is not supported on Claude 4.6 and later, so it is unavailable as a control.
See also: 7.1 AI Application Security
Zero Data Retention
Section titled “Zero Data Retention”An arrangement under which Anthropic does not store customer prompts or responses at rest after the API response is returned.
Exam context: Enabled per organisation by arrangement, never extending automatically to a sibling organisation on the same account. It excludes Console usage, Managed Agents sessions, consumer plans and features such as code execution, and it does not override retention of a trust-and-safety-flagged session for up to two years.
See also: 7.1 AI Application Security
Covered Models
Section titled “Covered Models”Models that require 30-day retention and are therefore not available under a zero data retention arrangement.
Exam context: The exception that breaks an assumed-blanket ZDR posture. Retained data is never used for model training without express permission, which is a separate promise from retention itself.
See also: 7.1 AI Application Security
PII Minimisation
Section titled “PII Minimisation”Keeping data the task does not need out of the context window: redacting or tokenising where a raw value adds nothing. A summariser rarely needs a full account number to do its job.
Exam context: The control that holds is the one that stops the data existing in that place. Your own request-and-response log is a complete second copy of everything the model saw, usually with wider access and longer retention, so redaction belongs at the write.
See also: 7.1 AI Application Security
Confused Deputy
Section titled “Confused Deputy”An agent holding a credential broader than the person it acts for, so any text that can steer it has borrowed the wider authority.
Exam context: A record-lookup tool authenticated with a service account that can read every tenant’s data is an authorisation defect, not a prompting one. The keyed fix authorises per the end user’s entitlements at the point of use, which makes the model’s persuadability irrelevant.
See also: 7.1 AI Application Security
Authorisation
Section titled “Authorisation”What a caller may do, resolved per action rather than once at the door. Distinct from authentication, which establishes who the caller is, and from integrity, which covers whether the data and the action are what they claim to be.
Exam context: Multi-tenant isolation follows from authorisation, never from a system-prompt sentence naming the tenant. Retrieve-every-row-then-filter is a defect wearing a control’s clothes: the data reached the context, so one persuaded response leaks it.
See also: 7.1 AI Application Security, 7.4 Identity, Secrets, and Key Management
Guardrail
Section titled “Guardrail”A check with an enforcement point. Three questions settle whether something qualifies: what does it inspect, where does the code run, and what happens when it fires.
Exam context: If the answer to the third is that the model reads something and decides, it is a behaviour shaper. A log records after the fact and a dashboard alerts a human who may be asleep; both are worth having and neither is what the word is doing in an exam item.
See also: 7.2 Guardrails and Safe Deployment
Guardrail Layering
Section titled “Guardrail Layering”Running independent checks at different points so a payload that defeats one still meets another that cannot see the same way. The four layers are input checks, the system prompt and training, tool-level controls, and output checks.
Exam context: Layers are not interchangeable, because each fails differently: a stricter output check cannot see what an input screen would have caught before the draft was written. The favourite wrong answer throughout the sub-skill is a safety strategy made of one layer.
See also: 7.2 Guardrails and Safe Deployment
Behaviour Shaper
Section titled “Behaviour Shaper”A control that influences what the model does without enforcing anything: a system-prompt rule, a contributor-guide section, a stated policy on untrusted content.
Exam context: Genuinely worth having, and genuinely recommended. Still the wrong answer when the question asks which control stops something, because two options can describe the same check and differ entirely in what they do when they fire.
See also: 7.2 Guardrails and Safe Deployment
Usage Policy
Section titled “Usage Policy”Anthropic’s governing content policy, in three parts: Universal Usage Standards, High-risk Use Case Requirements, and Additional Use Case Guidelines. “Acceptable Use Policy” survives only as the URL slug and an alias.
Exam context: The third part names consumer-facing chatbots and agents, products serving minors, agentic use cases and software listed in Anthropic’s directories, so a team shipping an agent is reading about its own product rather than somebody else’s. Its chatbot rule applies whether or not a High-risk AI Recommendation is involved: every consumer-facing chatbot or AI agent that communicates directly with external users must tell them they are interacting with AI rather than a human, at a minimum at the beginning of each chat session or in the product interface.
See also: 7.2 Guardrails and Safe Deployment
High-risk AI Recommendation
Section titled “High-risk AI Recommendation”The Usage Policy’s term for a recommendation in one of eleven High-risk Areas: legal, medical, finance, credit, insurance, housing, employment, education and credentials, healthcare access, public benefits and services, and legal status and adjudication. Two controls attach. A qualified person with the authority to change the recommendation must meaningfully review it before it is delivered as advice or used to implement a decision. The person who receives the advice, or who is the subject of the decision, must be clearly told that AI was used to produce it.
Exam context: No amount of engineering discharges the obligation, and the distractor is there precisely because it is technically sound. The exam tests whether you notice that a scenario has landed inside a High-risk Area at all.
See also: 7.2 Guardrails and Safe Deployment
Fail Closed
Section titled “Fail Closed”Refusing or holding a consequential action when the check that guards it cannot run: a classifier that times out, an inconclusive validation, an approval service that does not answer.
Exam context: The availability instinct is inverted here. Proceeding converts the check into a suggestion that any dependency failure removes, and whoever can cause the failure gets the unguarded path for free. Retrying is fine; ending the retry chain at the model is not.
See also: 7.2 Guardrails and Safe Deployment
dontAsk
Section titled “dontAsk”The Agent SDK permission mode that denies any call that would otherwise prompt, rather than prompting for it. Calls your allow rules pre-approve, and calls that need no approval in default mode, still run. The mode-level expression of failing closed, and the right shape for a headless agent with nobody to prompt.
Exam context: Its Claude Code counterpart is fail-closed matching: in Manual mode (config value default), unmatched commands require approval by default. As of September 2026, Manual is not the starting mode for interactive sessions, which start in auto mode from v2.1.283. Both are named instances of the same principle rather than separate facts.
See also: 7.2 Guardrails and Safe Deployment
Red-Teaming
Section titled “Red-Teaming”Testing your own agent before deployment with documents and tool outputs that deliberately carry injection attempts, then confirming both that Claude ignores them and that your screening and confirmation steps catch the rest.
Exam context: Part of the control set rather than operations beside it. The docs treat analysis of outputs as an input to refining prompts, validation and filtering, so a well-built deployment with no observation is a wrong answer, not merely an under-instrumented one.
See also: 7.2 Guardrails and Safe Deployment
Your own code, wired to a named point in the agent’s lifecycle, that inspects what is about to happen and can allow, modify or block it. The documented framing: hooks give deterministic control, so certain actions always happen rather than relying on the model to choose to run them.
Exam context: When a team has told the model three times not to do something and it has done it anyway, the fix is not a fourth telling. It is a check the model does not participate in. That distinction is the whole sub-skill.
See also: 7.3 Claude Hooks
PreToolUse
Section titled “PreToolUse”The pre-execution inspection point: the hook event that fires before a requested tool call runs, receiving the tool name and its input.
Exam context: Prevention lives here. A PostToolUse hook that logs every removal is a real control for accountability and a fully-stated, plausible distractor, and it runs after the destructive call has already executed.
See also: 7.3 Claude Hooks
Exit Code 2
Section titled “Exit Code 2”The blocking signal from a command hook. The reason printed on stderr reaches Claude. Exit 0 means no objection, which is not approval, and any other non-zero exit with plain-text or empty stdout is a non-blocking error that lets the action proceed, unless the hook sets onFailure: "block".
Exam context: The keyed fact in the sub-skill. A gate that exits 1 on failure has quietly disabled itself and will keep reporting a hook error while the tool call runs. On blocking-capable events, exit 2 wins even over a printed permissionDecision of allow.
See also: 7.3 Claude Hooks
permissionDecision
Section titled “permissionDecision”The JSON alternative to an exit code: hookSpecificOutput carrying allow, deny, ask or defer, with a permissionDecisionReason. As of September 2026, defer is honoured only in a non-interactive -p run, which exits with the call preserved so the calling application can resume it later. Where several hooks return different decisions, the precedence is deny, then defer, then ask, then allow.
Exam context: Over-claiming its reach fails in both directions. A hook deny binds even in bypassPermissions mode, because hooks run first; a hook returning allow does not clear a matching deny or ask rule. Hooks tighten restrictions, they do not loosen them.
See also: 7.3 Claude Hooks
Command Hook
Section titled “Command Hook”The hook type that runs a shell command you wrote, reading the event’s JSON on stdin. One of five types, of which command, http and mcp_tool run code you control. The prompt type is a single-turn model evaluation and the agent type is multi-turn verification with tool access, both documented as being for decisions requiring judgement rather than deterministic rules, with agent hooks still experimental.
Exam context: Wiring a prompt or agent hook to a destructive path hands the decision back to a model, which is exactly the discretion the sub-skill exists to remove. Where the rule is a boundary, use command.
See also: 7.3 Claude Hooks
Sandbox
Section titled “Sandbox”OS-level enforcement that blocks every process from reaching a path. The answer where a rule cannot reach, because path-based deny rules do not apply to a subprocess that opens files itself.
Exam context: One of the honest limits a single hook cannot cover, alongside disableAllHooks, for which the answer is managed settings, since only those keep managed hooks running when a lower-scope file turns them off.
See also: 7.3 Claude Hooks
Static API Key
Section titled “Static API Key”An sk-ant-api... secret sent as a bearer token in the Authorization header, which every client SDK reads from ANTHROPIC_API_KEY. As of September 2026 the x-api-key header is legacy but still supported. Each key is a personal key, a service account key or a legacy workspace key. Documented hygiene: store it in a secrets manager, rotate periodically, and disable or delete any key suspected of having leaked.
Exam context: Anything shipped to a client is public, so the key never belongs in a bundle, a binary, source control, a log line or the prompt. Minification and encoding are transformations the code reverses on every start. Obfuscation is not secrecy.
See also: 7.4 Identity, Secrets, and Key Management
Key Expiration
Section titled “Key Expiration”A lifetime chosen when a key is created, from presets of 3 hours, 1 day, 7 days or 30 days, a custom duration, or Never. It is set at creation and cannot be changed afterwards; an expired key returns 401 authentication_error and cannot be reactivated.
Exam context: The docs are blunt about its rank: it limits the lifetime of a leaked credential and is no substitute for secret hygiene. Because it cannot be changed after creation, it is not something you can apply to a key already in the wild.
See also: 7.4 Identity, Secrets, and Key Management
Workload Identity Federation
Section titled “Workload Identity Federation”The structural alternative to a distributed key: the workload exchanges an identity token from an IdP you already trust at POST /v1/oauth/token for a short-lived Claude token, which the SDK refreshes automatically. There is no sk-ant-api... string to mint, distribute or rotate.
Exam context: The documented caveat is the examinable half. The trust chain is only as strong as the identity provider’s configuration, and a long-lived secret one hop upstream still undermines it. The federation rule carries the least-privilege decisions: its match conditions decide which workloads may mint a token, and its oauth_scope is a ceiling, so a workload that only calls Claude gets workspace:inference rather than workspace:developer.
See also: 7.4 Identity, Secrets, and Key Management
App Attest
Section titled “App Attest”The dated exception to the no-key-on-a-client rule: a genuine, attested installation of a registered iOS or macOS app can call the Claude API with no back end, on tokens scoped to your workspace that expire after one hour and authorise only Messages API calls.
Exam context: An attestation mechanism for native apps, not a licence to put a key in a web page. A browser bundle remains the wrong architecture, and the backend boundary is still what buys you user authentication, per-request authorisation and per-user quota.
See also: 7.4 Identity, Secrets, and Key Management
Exposure Playbook
Section titled “Exposure Playbook”The order to run when a key leaks: kill the credential, remove it from wherever it leaked, fix the design that put it there, then review the access logs.
Exam context: The sequence is the examinable part, because every wrong answer is a real step performed in the wrong order. One test settles it. If the exposed credential is still valid when the answer ends, the answer is wrong. Programmatically, step one is an Admin API status update: inactive disables the key reversibly, and archived deletes it for good.
See also: 7.4 Identity, Secrets, and Key Management
Level Verification
Section titled “Level Verification”Re-checking entitlement per action at the point of use, rather than inheriting the answer a session got when it opened. Where an agent acts on somebody’s behalf, its tool calls carry that person’s authority rather than a service account’s.
Exam context: A session that authenticated an hour ago tells you nothing about whether this particular elevated operation is permitted. Approval flows belong in the same bracket: who may authorise the action, and how the decision is recorded.
See also: 7.4 Identity, Secrets, and Key Management
Attribution
Section titled “Attribution”The property that makes an anomaly investigable: every line of spend resolving to a named caller. Usage and cost reporting runs per key and per workspace, so keys scoped by project or environment supply the identity an alert needs.
Exam context: A key with no attribution cannot be investigated. If three services share one credential, an anomalous spike names none of them, and the first fix is a distinct key per service rather than a better alert. Throttling caps the bill without supplying an identity that was never issued.
See also: 7.4 Identity, Secrets, and Key Management
Admin API
Section titled “Admin API”The organisation-management surface, taking an Admin API key, an org:admin OAuth token, or a personal or service account key that is not scoped to one workspace. It lists keys with their status, workspace and expires_at, and changes a key’s status to inactive or archived.
Exam context: A revocation and audit surface rather than a provisioning one: you create API keys in the Claude Console, and the Admin API can only read, rename and change the status of existing keys. It is also where the offboarding trap lives: removing a leaver archives their personal keys, while service account keys and legacy workspace keys keep working, so a production service belongs on a service account key.
See also: 7.4 Identity, Secrets, and Key Management
Domain 8 — Tools and MCPs (10.6%)
Section titled “Domain 8 — Tools and MCPs (10.6%)”Quick-lookup definitions for the 10.6% exam domain. Each entry includes a concise definition and exam context. Follow the lesson links to dive deeper.
Tool Definition
Section titled “Tool Definition”The object you put in the tools array: a name, a description, an input_schema, and optionally properties such as strict, input_examples, defer_loading, cache_control and allowed_callers. Together the first three are everything the model sees when it decides whether to call the tool.
Exam context: The model cannot read your handler, your docstring or your API contract. Every selection failure is therefore a failure of the name, the description or the schema, which is why the answer to “the model chose wrong” is almost never the model.
See also: 8.1 Tool Implementation
Tool Description
Section titled “Tool Description”The prose field carrying what the tool does, when it should and should not be used, what each parameter means, and the caveats including what the tool does not return. The docs call detailed descriptions “by far the most important factor in tool performance” and set a floor of three to four sentences, more for complex tools.
Exam context: The failure mode is a description that paraphrases the name, because it adds no information the name did not already carry. When a stem describes the wrong tool being chosen, the rewrite is the answer and every option about models, sampling or extra layers is a distractor.
See also: 8.1 Tool Implementation
Disambiguation
Section titled “Disambiguation”The sentence in each of two confusable descriptions that names the sibling tool and says which case belongs to which. Written in both directions, never inferred by the model.
Exam context: The when-not-to-use clause is the half candidates omit and the half the exam keys. Two tools over adjacent parts of the same system will be chosen inconsistently until each description states the boundary explicitly.
See also: 8.1 Tool Implementation
Routing Tool
Section titled “Routing Tool”A third tool added to decide which of two confusable tools to call. It is the move a real developer proposes in a real standup, which is what makes it a strong distractor.
Exam context: It adds a layer instead of removing the cause. The router draws the same distinction from the same uninformative descriptions, the model must now also decide whether to call the router, and a turn is spent arriving back at the original ambiguity. Indirection cannot supply information a description is missing.
See also: 8.1 Tool Implementation
Consolidation
Section titled “Consolidation”The documented remedy for a sprawling tool surface: group related operations behind a single tool taking an action-style parameter rather than shipping create_pr, review_pr and merge_pr separately. Fewer, more capable tools reduce selection ambiguity.
Exam context: Consolidation fixes sprawl; rewriting descriptions fixes overlap. Both are recommended somewhere in the docs, so the wrong one of the pair is the strongest distractor an item can offer. Count the near-duplicates in the stem before choosing.
See also: 8.1 Tool Implementation
Tool Sprawl
Section titled “Tool Sprawl”One tool per API endpoint, so eleven endpoints become eleven tools, several of them thin wrappers over adjacent operations. Accuracy falls as the surface grows, because every near-duplicate adds a selection decision and every definition costs context on every request.
Exam context: Anthropic’s engineering guidance is explicit that more tools do not always lead to better outcomes. A few thoughtful tools targeting specific high-impact workflows beat wrapping every endpoint.
See also: 8.1 Tool Implementation
Namespacing
Section titled “Namespacing”Prefixing tool names with the service or resource they belong to, github_list_prs rather than list_prs, so boundaries stay obvious as the library grows. The docs call it especially important once tool search is in play.
Exam context: A legibility property, not a remedy for near-duplicates. Prefixing thirty-eight endpoint wrappers leaves thirty-eight selection decisions; consolidation is what removes them. It also settles clashes between MCP servers: as of September 2026 the specification scopes tool-name uniqueness to a single server, so a client aggregating several servers should prefix each tool with a server identifier, not with the self-reported serverInfo name, which is not guaranteed to be unique.
See also: 8.1 Tool Implementation
input_schema
Section titled “input_schema”The JSON Schema declaring a tool’s expected parameters. Unlike the description it is enforced rather than suggested: closed sets belong in enum, mandatory fields in required, and units and formats in the per-property description.
Exam context: A schema that permits nonsense will receive nonsense, and the handler spends its life defending against inputs the schema could have refused. When the logs show four spellings of the same value, the enum is the direct fix.
See also: 8.1 Tool Implementation
input_examples
Section titled “input_examples”An optional array of example input objects attached to a tool definition. Each example is validated against the tool’s own input_schema, so an invalid one returns a 400 rather than silently misleading the model. Roughly 20 to 50 tokens for a simple example, 100 to 200 for a complex nested object.
Exam context: It earns its place on tools with nested objects, optional parameters or format-sensitive fields, and nowhere else. It is unavailable on server tools and on the computer use and browser use toolsets, and it never substitutes for the description.
See also: 8.1 Tool Implementation
strict
Section titled “strict”A tool-definition property guaranteeing that the tool names and inputs Claude sends match your schema exactly, which removes the missing-parameter class of failure at source instead of catching it in the handler. Available on all tools except mcp_toolset and the two client toolsets.
Exam context: It constrains the shape of a call the model has already decided to make. It supplies no information about which tool to call, so it is a distractor on any selection item, and it does not validate what a tool returns.
See also: 8.1 Tool Implementation
defer_loading
Section titled “defer_loading”A tool-definition property excluding the definition from the initial system prompt and expanding it inline when the tool search tool returns a tool_reference for it. Configurable per tool on an MCP toolset, and per member inside configs on a client toolset.
Exam context: The honest escape hatch for a genuinely large surface, not a substitute for consolidation when the surface is large because it is full of near-duplicates. Deferred definitions sit outside the cached prefix, so cache breakpoints belong on a tool that is not deferred. Each deferred tool costs a search step before Claude can call it, so the tool search docs advise keeping your three to five most frequently used tools non-deferred.
See also: 8.1 Tool Implementation
tool_result
Section titled “tool_result”The content block returned to the model for a client tool call, carrying the tool_use_id it answers and the content the loop continues from. Its optional is_error flag is what distinguishes a failure from a result. Its content can include search_result blocks with a source and title you supply, which Claude cites like web search results once citations are enabled (they are off by default).
Exam context: Server tools need none: the API executes them internally and their result arrives in the same assistant turn. Returning one for a server tool, or writing a handler for it, is a design error rather than a configuration one.
See also: 8.1 Tool Implementation
is_error
Section titled “is_error”The flag on a tool_result marking the call as failed. Paired with a body saying what went wrong and what Claude should try next, it is what lets the model act on a failure instead of inventing around it.
Exam context: The most consequential item in the sub-skill. When a stem asks what stops the fabrication, the answer is what the result says on failure. Longer timeouts and bounded retries change how often the failure happens, never what the model receives when it does.
See also: 8.1 Tool Implementation
Silent Empty Return
Section titled “Silent Empty Return”Catching a timeout or an upstream failure in the handler and returning an empty string, an empty list or the last known good value so the loop keeps moving.
Exam context: It hands the model a well-formed result asserting that nothing went wrong and that there is nothing there, which makes a plausible invented answer the most probable continuation. Stale data is worse still: confidently wrong, current-looking, and leaving no trace that anything failed.
See also: 8.1 Tool Implementation
Instructive Error Message
Section titled “Instructive Error Message”The documented shape of an error body: what went wrong and what Claude should try next, for example “Rate limit exceeded. Retry after 60 seconds”, instead of a generic failed.
Exam context: An unactionable result is the documented cause of repeated identical calls and stalls: the model has nothing to change between attempts. On genuinely invalid tool calls Claude retries two to three times with corrections before apologising, so the endless-identical-retry story is not a documented mechanism.
See also: 8.1 Tool Implementation
Client Tool
Section titled “Client Tool”A tool your code executes. The model emits a tool_use block, your process runs the function under your credentials inside your network, and you return a tool_result. Anthropic’s infrastructure never executes it.
Exam context: This is why a client tool can reach a database on a private subnet and a server tool cannot. Anthropic ships client tools of its own, whose schema it defines and whose execution is still yours.
See also: 8.1 Tool Implementation, 8.3 Agentic Customisation
Server Tool
Section titled “Server Tool”A tool Anthropic executes. The call appears as a server_tool_use block whose id carries the srvtoolu_ prefix, the API runs it internally, and its result arrives in the same assistant turn paired by tool_use_id.
Exam context: You do not respond with a tool_result and you do not handle is_error for it. It also runs in the platform’s environment, so it cannot reach an address that resolves only inside your network.
See also: 8.1 Tool Implementation, 8.3 Agentic Customisation
Anthropic-Provided
Section titled “Anthropic-Provided”The claim that Anthropic defines a tool, which is not the claim that Anthropic runs it. The Tool reference splits Anthropic-provided tools into server tools executing on Anthropic’s infrastructure and client tools whose schema Anthropic defines and whose execution is your application’s.
Exam context: Reading “built-in” as “runs on Anthropic’s servers” is a named trap. Answer from the capability boundary first. Where a tool runs only matters when the question says so. Don’t assume a location it leaves out, and don’t rely on today’s list of built-in tools, because it changes between releases.
See also: 8.1 Tool Implementation, 8.3 Agentic Customisation
Tool Dispatch
Section titled “Tool Dispatch”The harness layer that receives a tool-use request, resolves the name to a handler, validates the input, applies the operation’s policy, executes under a timeout, logs the call and formats the result the loop continues from.
Exam context: Putting validation, permissions, timeouts and logging at the dispatch point rather than inside every handler is what keeps a tool function a plain function you can unit-test with no model anywhere near it. One place enforces the policy for every tool. Execution order is decided here too: the API does not prescribe an order for one turn’s tool_use blocks, so run independent read-only calls in parallel and calls with side effects one at a time, and return an is_error result for any call you skipped.
See also: 8.1 Tool Implementation
Approval Band
Section titled “Approval Band”The classification deciding whether an operation runs automatically, asks for confirmation, or waits for a second party. Read-only and reversible operations run automatically; consequential ones warrant confirmation; the genuinely dangerous warrant a gate a second party has to pass. Unknown tools are never automatic.
Exam context: The classification is a design decision made once, when the tool set is designed, and expressed in the tool surface. An option relying on an operator noticing what the assistant proposes is not a control. Nor is a band taken from a server’s own MCP annotations: as of September 2026 hints such as readOnlyHint are not guaranteed to describe the tool faithfully, and clients must treat them as untrusted unless the server is trusted. Enforcing the gate is Domain 7’s material.
See also: 8.1 Tool Implementation
High-Signal Result
Section titled “High-Signal Result”A tool response carrying only the fields the next decision needs, identified by semantic stable identifiers such as slugs or UUIDs rather than opaque internal references.
Exam context: Passing the whole upstream payload through spends context on fields no decision depends on and buries the two or three that do, which degrades every step after it in a long session. Truncating the match list and compressing the same payload are both distractors: neither removes the fields nobody needed. When the waste is many calls and bulky intermediate results, programmatic tool calling (generally available as of September 2026) lets Claude call the tool from code in the code execution container, via allowed_callers, so the intermediate results never enter its context.
See also: 8.1 Tool Implementation
Model Context Protocol
Section titled “Model Context Protocol”An open protocol for exposing a capability once and connecting to it from any compliant client, in place of a hand-written integration re-implemented inside every application that needs the same underlying system. Current specification revision 2026-07-28 as of September 2026: a stateless revision with no initialize handshake, a mandatory server/discover request, opt-in change notifications through subscriptions/listen, and Roots, Sampling and Logging deprecated.
Exam context: The consequence the exam keys is maintenance and reuse, not capability. A custom tool can do the same job for one application; that is not what a stem naming several applications and independent maintenance is asking.
See also: 8.2 MCP Server Development
MCP Host
Section titled “MCP Host”In the specification’s words, “The AI application that coordinates and manages one or multiple MCP clients”. Your Claude application is the host.
Exam context: The host creates one client per server, so a host connected to four servers runs four clients, each holding its own dedicated connection. Role-swap distractors put the host on the wrapper side or delete it from the architecture entirely.
See also: 8.2 MCP Server Development
MCP Client
Section titled “MCP Client”“A component that maintains a connection to an MCP server and obtains context from an MCP server for the MCP host to use.” It lives inside the host, one per connected server.
Exam context: Your application sits on the client side of the connection and the thing wrapping your internal system is the server. Getting the direction backwards is the whole content of one recurring item shape.
See also: 8.2 MCP Server Development
MCP Server
Section titled “MCP Server”“A program that provides context to MCP clients.” It exposes tools, resources and prompts over the protocol.
Exam context: Local and remote describe where a server runs, not what it is: the same program is an MCP server whether it runs as a child process on one laptop or as a service several teams reach over the network. Options denying that are flat statements of fact that happen to be false.
See also: 8.2 MCP Server Development
MCP Tool
Section titled “MCP Tool”The model-controlled primitive: functions the LLM can actively call, deciding when to use them based on user requests. Protocol methods tools/list and tools/call.
Exam context: The tools an MCP server exposes are ordinary tools and answer to everything in 8.1. Being reachable over a protocol changes nothing about what a good description or a good error result looks like. Under the 2026-07-28 revision a tool can declare an outputSchema, with results in structuredContent that the client should validate, and state across calls travels as an explicit handle passed as an ordinary argument, because protocol-level sessions are gone.
See also: 8.2 MCP Server Development
MCP Resource
Section titled “MCP Resource”The application-controlled primitive: passive read-only data sources providing information for context, such as file contents, database schemas or API documentation. Each carries a URI, either fixed like records://schema/batch or a parameterised template like records://batch/{batch_id}. Methods resources/list, resources/templates/list and resources/read. Under the 2026-07-28 revision these results carry required caching hints: ttlMs for freshness, and cacheScope, where private keeps a per-user read inside one authorisation context.
Exam context: Where a schema or a reference dataset is exposed as a tool, the model fetches it at unpredictable moments and sometimes not at all, because the decision was handed to the wrong party. Passive reference data belongs on a resource the application reads by URI.
See also: 8.2 MCP Server Development
MCP Prompt
Section titled “MCP Prompt”The user-controlled primitive: pre-built instruction templates telling the model to work with specific tools and resources, “user-controlled, requiring explicit invocation rather than automatic triggering”. Applications typically surface them as slash commands. Methods prompts/list and prompts/get.
Exam context: When a stem contains a template people want to pull into a session deliberately, the tool-shaped option is the near-miss and the prompt is the answer. Making it a tool hands the decision to the model, which is the opposite of what the person starting the job wanted.
See also: 8.2 MCP Server Development
stdio Transport
Section titled “stdio Transport”The transport using standard input and output streams for direct process communication between local processes on the same machine, with no network overhead. Local servers on stdio typically serve a single client. The server must not write anything to stdout that is not a valid MCP message, so logging goes to stderr or a file; a stray print() corrupts the stream.
Exam context: One developer wrapping a local command line is single-user and local, which is the topology stdio fits. Proposing it for a capability three teams must share means one copy per machine, which is exactly the drift MCP was adopted to remove.
See also: 8.2 MCP Server Development
Streamable HTTP Transport
Section titled “Streamable HTTP Transport”The transport using HTTP POST for client-to-server messages with optional Server-Sent Events for streaming. It enables remote server communication and supports standard HTTP authentication including bearer tokens, API keys and custom headers, with OAuth recommended for obtaining tokens. Remote servers on it typically serve many clients.
Exam context: Choosing it is a decision to run a service: a version, an owner, an availability expectation, an authentication story and a list of who may connect. Don’t rely on a transport name; this part of the specification has already moved once, and the topology rule is what is stable.
See also: 8.2 MCP Server Development
MCP Connector
Section titled “MCP Connector”Anthropic’s feature for connecting to remote MCP servers directly from the Messages API without a separate MCP client. The request carries an mcp_servers array plus an mcp_toolset entry in tools, and calls return as mcp_tool_use and mcp_tool_result blocks.
Exam context: Two documented limitations decide items. Only tool calls of the MCP feature set are currently supported, so prompts and resources need a client-side connection of your own, and the server must be publicly exposed over HTTP, so local stdio servers cannot be connected directly. As of September 2026 it is a beta, not available on Amazon Bedrock or Google Cloud, and the mcp-client-2026-09-15 beta header can pin a server’s tool list for the length of a conversation.
See also: 8.2 MCP Server Development
Built-In Tool
Section titled “Built-In Tool”A capability Anthropic provides, where the platform defines the schema and, for the server-executed ones, runs the tool for you. No code to write, no handler to maintain, no deployment. As of September 2026 the list includes the browser use tool, a client toolset your application runs against its own browser, chosen when a task stays inside webpages and means acting on them.
Exam context: The cheapest correct answer when it fits and the fastest wrong answer when it does not. The guide’s own rationale states that built-in tools “do not automatically reach arbitrary internal APIs”, which disposes of every option claiming a platform fetch or search capability can reach an internal service.
See also: 8.3 Agentic Customisation
Custom Tool
Section titled “Custom Tool”A function you define and your code executes. It can reach anything your code can reach, runs under your credentials inside your network, and you own it entirely, which is both the benefit and the cost.
Exam context: Right when one application needs the capability, one team owns it, and nothing else is in prospect: simpler, with no deployment story. Against an MCP server the deciding facts are reuse and ownership, never capability, because both can do the same job for one application.
See also: 8.3 Agentic Customisation
Agent Skill
Section titled “Agent Skill”Packaged procedural knowledge: a SKILL.md file with YAML frontmatter, optionally bundled with reference files and executable scripts, which Claude loads when relevant. The load-bearing point is what that does not mean: a Skill changes how Claude does something it can already do, and grants no new capability to call.
Exam context: Instructions are not access. On the Claude API a Skill runs in a sandboxed container with no network access and no runtime package installation, so a Skill genuinely cannot fetch your records however precisely it documents them.
See also: 8.3 Agentic Customisation
Progressive Disclosure
Section titled “Progressive Disclosure”The three-level loading model that makes Skills cheap to install. Metadata, the name and description, is always loaded at roughly 100 tokens per Skill. The SKILL.md body loads only when the Skill is triggered, under 5k tokens. Bundled resources cost nothing until accessed, with scripts run through bash so only their output enters context.
Exam context: An installed but untriggered Skill costs about a hundred tokens, which reframes the comparison: not Skill against tool, but a Skill against carrying several pages of conventions on every request including the four jobs in five that never touch them.
See also: 8.3 Agentic Customisation
Skill Description
Section titled “Skill Description”The description field in a Skill’s YAML frontmatter, and the thing Claude matches a request against when deciding whether to trigger the Skill. It must say both what the Skill does and when to use it. Non-empty, at most 1024 characters, no XML tags.
Exam context: A description saying only what the Skill contains will sit there unused, which is the commonest reason a shipped Skill never fires. The companion name field is at most 64 characters, lowercase letters, numbers and hyphens only, with the reserved words “anthropic” and “claude” forbidden.
See also: 8.3 Agentic Customisation
Cross-Surface Availability
Section titled “Cross-Surface Availability”The rule that custom Skills do not sync between Claude’s surfaces. A Skill uploaded to claude.ai must be uploaded separately to the API, an API Skill is not available on claude.ai, and Claude Code Skills are filesystem-based and separate from both.
Exam context: Sharing scope differs too: claude.ai Skills are individual to each user, API Skills are workspace-wide, and Claude Code Skills are personal or project-based. A Skill confirmed working on one surface and missing on another is this rule, not a propagation delay.
See also: 8.3 Agentic Customisation
Second Consumer
Section titled “Second Consumer”The single sharpest signal in a stem choosing between a custom tool and an MCP server: another application or surface, actual or imminent, needing the same capability. The other signals are a demand for maintenance independent of any one application, and a system whose owning team should own its integration.
Exam context: Moving a capability from a custom tool to an MCP server is a relocation of the same implementation behind a protocol, not a rewrite, so “we would have to rebuild it” is a false objection when a distractor raises it.
See also: 8.3 Agentic Customisation
Decision Sequence
Section titled “Decision Sequence”The four questions this sub-skill is really testing, in order. Does the platform already provide this? Does the model need to do something in a system, or to know how to do something it can already do? If it is a tool, will more than one application need it and does another team own the underlying system? If it is knowledge, is it procedural and only occasionally relevant?
Exam context: The sharpest items list three or four requirements in one stem and ask for an assignment. A candidate who runs the sequence per requirement gets them all; an option assigning every requirement to the same mechanism is almost always wrong on that uniformity alone.
See also: 8.3 Agentic Customisation
Fine-Tuning
Section titled “Fine-Tuning”A genuine technique aimed at the wrong class of problem in this sub-skill. It changes how a model behaves across a distribution of inputs.
Exam context: It grants access to no system and keeps no procedure current when the procedure changes next quarter. When a stem is about where information lives or what the model can call, fine-tuning answers neither question, and it is expensive and slow besides.
See also: 8.3 Agentic Customisation