Covers: Anthropic's current CCAR-F exam guide. The 7 December update didn't change it.
Answer rules
Fix the cause the stem names, not its symptom
Must ALWAYS hold → mechanism (hook, permissions.deny, tool_choice, schema); a preference → CLAUDE.md
Smallest change: add a part only when the problem is exactly what it solves
Keep the source value, state the doubt: no nearest enum, rescaled amount, placeholder, "refund done"
Meet BOTH goals; use info already in hand (validator error, coordinator's context)
FIRST = least-commitment step that unblocks (contain, pilot, interview), never the full build
LEAST effective = what the mechanism can't help (retry can't add missing info)
| Situation | Choose | Not |
|---|---|---|
| An example contradicts the rule | fix that example | check + retry, louder wording |
| Scenario doesn't need it | simplest design | classifier, router, worker pool, bigger model |
| Self-review bias | fresh instance | same session |
| One pass trades recall for precision | verify stage | "only high-confidence" |
| Many independent items | parallel subagents | nesting, a queue |
| Repeated prefix costs time or money | prompt caching | caching to fix behaviour |
| Transient failure (brief 503) | retry as is | retrying a non-transient error |
| Progressing run hit the turn cap | resume, higher max_turns | higher cap for a loop |
| OUTPUT cut off (even a tool call) | raise max_tokens | same for long input (chunk it) |
| Edit a result before Claude reads it | PostToolUse | PostToolUse to block |
| Measure accepted output | stratified sample, weekly | sampling to route review |
Also wrong: temperature 0 · remove a built-in so the MCP tool wins · fine-tune on corrections · sentiment or "after 3 failures" as escalation trigger · tool order sets priority · -p disables tools · "be conservative" to cut noise
One change, different answer
Dates come back as printed, not YYYY-MM-DD
| Prompt + examples agree, rare slips | code check + retry with the error |
| One example shows the printed date | fix that example |
Extraction deadline on batch pricing
| Deadline 30 h | submit every 4 h (4 h wait + 24 h = 28 h) |
| New hard deadline under 24 h | synchronous API |
Which fields reach reviewers
| Accuracy rises with the score | calibrated per-field threshold |
| Accuracy flat across scores | route on failed rules, run disagreement, doc-type history |
Agent quotes from its case facts
| ID, amount, customer's words | quote as kept |
| Order or refund status | tag tool + turn, call the tool again first |
D1 The agent loop
One tool round trip
| 1 request | tools + messages [user] |
| 2 response | stop_reason: "tool_use", content: text? + tool_use {id: "toolu_1", name, input} |
| 3 your code | runs the tool |
| 4 next request | history + assistant turn (response content unchanged) + user turn tool_result {tool_use_id: "toolu_1", content}, is_error: true if it failed |
| 5 repeat | until stop_reason: "end_turn" → show the text |
Loop symptoms
| Reply has text AND a tool call | loop on stop_reason, reply at end_turn |
pause_turn | append response unchanged, call again, no user text |
end_turn asks the customer | show it, wait; no auto "please continue" |
| Forgets answers, repeats calls | API is stateless → full history incl. every tool_use + tool_result |
| Several tool_use blocks | all results in ONE user message, by id |
| Independent lookups one per turn | prompt to request them together |
| SDK custom tools run one at a time | readOnlyHint → concurrent |
| User interrupts mid-batch | finished results + "cancelled, not run" errors, then new text |
| Tool exception ends the chat | tool_result with is_error: true, keep looping |
| How the next step is chosen | model reasons over the result, no router |
D1 Hooks
| PreToolUse | BEFORE the call: block, ask or rewrite input |
| PostToolUse | after: edit the result before Claude sees it, log, format; can't block |
| Stop | refuse to end until a check passes |
| Refund > limit, or after escalating | PreToolUse deny on process_refund, reason "escalate" |
| Approved exceptions get denied | hook checks the system of record |
| Another customer's order | allow only orders lookup_order returned for them |
| Data leaks before verification | gate EVERY disclosing tool, lookup_order too |
| Verified state across a handoff | code writes the verified ID in |
| Confirmation must be a later message | split propose / process, code-issued ID |
| Wrong unit, missing LIMIT | PreToolUse rewrites input |
| Card numbers, junk, huge results | PostToolUse masks or trims (fine on a shared server) |
| Audit every refund | PostToolUse log; slow → async |
| Format after edits | PostToolUse, matcher Edit|Write, Prettier |
| Depends on args (force push to main) | PreToolUse parses → deny or ask |
| Citations must pass before publishing | PreToolUse on the publishing tool, deny until the check passes |
| MCP hook never fires | match mcp__server__tool |
canUseTool check never runs | allowedTools pre-approved it → use PreToolUse |
| Server shared with another app | limit in the agent's hook |
| Blocked agent gives up | deny reason names the prerequisite |
D1 SDK and patterns
Hand-built file tools, sessions → Agent SDK
error_max_turns, no report → resume higher, or one tool-less request for partial findings
max_budget_usd includes subagents, checked after each response (can overshoot) · turn caps are per agent
Must end resolved or handed off → code checks after the loop
Lookup on a known input → code calls it first
Pattern
Same known steps → prompt chain + synthesis
Cause or path unknown → adaptive subtasks from what each step finds
Fixed stages, one open-ended → stages in code, that one as a loop
Chain step comes back short → code gate (vs a Grep count)
Same mistake across modules → fix one, review, use as reference
Quality decays over many files → per-file passes + consistency pass
Mechanical, repeats → tested codemod
Layered packages → base first, parallel within a layer
D1 Multi-agent (hub and spoke)
Coordinator writes needed findings into each subagent prompt; no inherited chat or shared memory
Parallel → several Task calls in ONE response
Nothing runs → Task missing from allowedTools
Subagent rigid or gives up → goals + quality criteria (breadth, recency), not steps or "be thorough"
"The sources above" → write question, scope, sources in
Same pages returned → distinct subtopic each
Effort doesn't scale → coordinator sizes it per query
Entity list unknown → discover first, then one subtask each
Retry fails the same way → new prompt with the error and partials
Ambiguous, costly run → ask one question first
One item added → research only it, re-synthesise
Slow follow-up summary → coordinator answers itself
"See above" loses results → final message holds them (path + lines, claim + URL)
Partial failure → work done + record per failed item
Subagent failed → re-delegate once, publish with gaps
Misrouting → sharper agent description
No tools list → inherits all; list only what the role needs
D2 Tools & MCP
Tool skipped or confused → richer description: what, when, inputs, outputs
Still ignored → a system-prompt line overrides it
Overlapping tools → merge (action param or flag); not few-shot
One generic free-text tool → purpose-specific tools
Fabricated order_id → description: comes from lookup_order
Call chain mirrors the API → task-level tool
Amounts → pass IDs + quantities, backend computes
Generic fetch bypasses vetting → narrow tool
Silently capped results → say truncated, total, how to narrow
Huge handbook → search tool
Errors
Failure → an error result, not an empty result or an exception. Same flag, two spellings:
| MCP server tool result | isError: true |
Messages API tool_result block | is_error: true |
Can't pick recovery → error_category, isRetryable, next step
Business refusal → isRetryable: false + friendly text
Timeout or sign-in page → error, never an empty list
Brief 503 → subagent retries, reports only persistent failures
Most pages read → result + list of unreadable ones
Mixed items → per-item outcomes
Write timed out → "outcome unknown" or idempotency key
Built-ins
Grep = CONTENTS (imports, error text) · Glob = NAMES (**/migrations/*.sql)
Huge file → Read + line range
Edit fails (no unique anchor) → Read whole, Write back
Grep floods → files_with_matches/count first
Rename → exhaustive Grep, not semantic search
Callers via aliases → Grep each, or type checker
cat/grep in Bash → PreToolUse deny naming Read/Grep/Glob
Big subsystem → find the base class, then trace implementations
MCP
Tools: model calls · resources: browsable, @-attached · prompts: /mcp__server__prompt
Agent probes blindly → content catalog as resources
Giant schema → index + one resource per table
Many tools eat context → tool search (definitions on demand)
Slow per-run index → HTTP (shared), not stdio (per run)
Server down → check init status, hold or flag the run
Vetted domains only → allowed_domains on web_search
D3 Claude Code: where it goes
Project CLAUDE.md | team rules every session, committed; reaches CI + teammates; survives compaction |
~/.claude/CLAUDE.md | personal, all repos; not CI, not team |
CLAUDE.local.md | personal, this repo, gitignored |
sub/dir/CLAUDE.md | loads when Claude reads files there |
| Managed policy CLAUDE.md | org-wide, users can't remove |
Rule with paths: | .claude/rules/*.md, loads only for matching files (by file TYPE) |
Rule without paths, or @import | loads every session (imports don't save context) |
| Project skill | .claude/skills/<name>/SKILL.md: team procedure on demand, /name |
| Personal skill | ~/.claude/skills/; own variant under a NEW name |
settings deny | hard block, e.g. Edit(./db/migrations/**) |
| MCP servers | team .mcp.json · personal ~/.claude.json · token ${ENV_VAR} |
| Needed before any file is read | no paths |
| Procedure from step 1, or per-task checklist | skill / slash command, not CLAUDE.md |
| Rules conflict | no precedence: reword |
| CLAUDE.md > ~200 lines loses rules | trim |
| Rules given only in conversation | vanish after compaction |
| 25 drifting directory copies | one path rule |
| Override a team MCP server | local scope, SAME name |
| MCP for one subagent | its mcpServers |
D3 Workflow & review
One file, clear diff → direct
Several approaches or many files → plan mode
Unsure what robust needs → Claude interviews you
Approved spec → implement from @SPEC.md, run its check
Iterating → tests first, share failures each round
UI → mockup image, screenshot + compare
Fixes interact → all in one message, exact specs
Corrected many times, bugs return → /clear, one prompt + lessons
Allow preview, ask for apply → two tools
Code review
Managed Code Review noisy → repo-root REVIEW.md
Comments on unchanged code → only changed lines
Flags intentional changes → add PR description or ticket
Re-runs → pass prior findings, report new
Cross-file bugs → agentic review that can search
D3 Reference: path rules, skills, CLI
Rule key is paths (globs: etc. ignored → loads always) · *.tsx misses nested → ** · escape [locale] (bracket class)
Path rules load on read/edit of a match (single-file cat counts)
Big SKILL.md → reference tables in own files, SKILL.md says when to read each
description | in context so Claude can pick the skill (left out with disable-model-invocation) |
disable-model-invocation: true | only typed /name runs it (deploys) |
user-invocable: false | hidden from menu, only Claude starts it |
context: fork | runs in a subagent, only result returns |
allowed-tools / disallowed-tools | pre-approve during skill (removes nothing) / remove while it runs |
paths / hooks | limit auto-load / deterministic step |
skillOverrides (settings) | visibility only; can't define a skill |
CLI / headless
Hangs at a prompt in CI → -p
Cap a run → --max-turns N --max-budget-usd X
Slow discovery → --bare --append-system-prompt-file ./CLAUDE.md
Custom prompt loses repo awareness → --append-system-prompt, not --system-prompt (replaces default)
Parse findings → --output-format json --json-schema, read structured_output; missing → fail closed
Skip-permissions ran injected curl → --permission-mode dontAsk + exact --allowedTools (Bash(npm test *), mcp__server__*)
Resume → --resume <name|id> specific · --continue most recent here
D4 Prompts & review criteria
Accurate but unwanted findings → explicit criteria: report vs skip
Inconsistent severity → criteria per level + repo examples
Examples for one category hurt another → separate passes, merge
Cross-file breaks → integration pass
Huge PR truncates → split by files
Accurate style findings bury bugs → bugs + security inline, style + naming in one summary comment · not drop the category
Category off for false positives → replay old vs new criteria, label new findings, compare precision + recall before re-enabling
Reply + internal summary in one → summary step after close
Known source quirk → state it in the prompt
Inconsistent formats → strict schema + normalisation
Few-shot for judgment, varied layouts, verbatim informal values: 2–3 varied pairs + an edge case; it copies quirks
D4 Structured output
| Must match a schema | tool with input_schema + strict: true, read tool_use; or output_config.format · not "output JSON", prefill, regex |
| Rare type slips | strict mode was off: turn on strict: true |
| Force a tool first | tool_choice {"type":"tool","name":…} that turn |
| Some tool, never text | "any" (auto allows text) |
| Several problems, or none | findings array: one issue per finding, no issues → empty array · not one finding object + a prompt rule |
| Values the pipeline knows | attach in code |
| Fabricated values for missing info | optional / nullable + "null if not stated" |
| Loader needs every key | required + nullable, no 0 defaults |
| New categories keep appearing | enum + other + detail string |
| Conflict, known winner (spec table) | precedence rule in prompt, single field |
| Conflict, no rule | flag + both values → review |
| Amendments | multiple values + source location + effective date |
| Stated vs inferred | basis field + clause text |
| Totals don't add up | stated_total + calculated_total, flag mismatch |
| Totals from clauses | extract parts, sum in code |
| Well-formed, wrong values | verbatim excerpt per field, code checks it |
Validation-retry (doc + bad output + all errors) fixes slips; info absent from input → route to a human, retries breed fabrication
D4 Message Batches API
50% off · most < 1 h, up to 24 h, then unfinished requests expire (unbilled)
custom_id per request · your tools can't run mid-request (stops at tool_use)
Worst case = wait before submission + 24 h; a batch resend needs another 24 h. More frequent submits cut the wait, not processing; splitting one submission changes nothing
New hard deadline under 24 h → synchronous API, or cancel and resend unfinished requests in time
Existing nightly batch → poll, alert, resend expired
Urgent + bulk → Messages API + batch
"Prompt too long" → chunk, resubmit only those IDs
Stage 2 needs stage 1 → two batches, joined by custom_id
One new field → batch for it alone
Code moved on → SHA in custom_id
Tuned on a handful → pilot a few hundred first
Cache misses late in batch → 1-hour TTL (default 5 min)
D5 Context & reliability
Forgets class names → summarise findings, or /compact
Many files mid-task → Explore subagent
Per-file summaries miss handoffs → delegate by question, cite files
Long exploration → scratchpad file
Middle outputs lost → key findings first + header per source
Long doc's middle missed → chunk
Constraints lost in summaries → block outside summarised history
Multi-issue chat → case-facts block (IDs, amounts, customer's words)
Kept ≠ current → re-call status before quoting; not a bigger context
Sessions
Few files changed → resume, name them
Most changed, or stale results → new session + summary, fresh calls
Compare approaches → fork_session (worktree each if both edit)
Follow-up to a subagent → resume by agent ID
Resumed run lacks hooks/subagents → pass options again
Crash → each agent exports state, coordinator loads manifest
Escalation
Asks for a person → escalate_to_human now; don't investigate first
Policy exception, policy silent, or no progress → escalate
Upset, not asking → acknowledge, offer remedy
Several issues → resolve what you can, escalate the exception
Several accounts match → ask for another identifier
Action tool fails → say what failed, offer retry or escalation; never claim done
Handoff: customer ID, root cause, amounts, IDs, actions tried, next step
Human review
Limited capacity → route low confidence, ambiguous source, failed rules
Recalibrate after a prompt change
Runs disagree → likely invention; agreement doesn't prove truth
New segment, more errors → review all; own threshold once labelled
Losses in big invoices → rank by error rate × amount
Provenance
Claim + URL, date, excerpt as separate fields end to end
Right citation ≠ faithful claim: "up to 30%" → "about 30%" passes a link check. Carry value, qualifier, unit, date unchanged
Conflicting figures → keep both + method + source
Different years → not a contradiction
Unknown date → "unknown"
Echoes of one survey → one source, not three
Coverage gaps → re-delegate until met
Exam facts from the official CCAR-F exam guide, checked November 2026.
Cert Made Easy is independent and not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic, PBC. Our practice questions are exam-style questions we write against the official exam guides (for CCAO-F, CCDV-F and CCAR-P, the guides for exams through 6 December); they are not questions from the real exam.