Claude Certified Architect – Foundations (CCAR-F) cheat sheet

The CCAR-F exam guide on one page: the rule that picks each answer, and the trap behind the wrong ones.

By Craig Li, Ph.D

Claude Certified Architect – ProfessionalUpdated

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)

SituationChooseNot
An example contradicts the rulefix that examplecheck + retry, louder wording
Scenario doesn't need itsimplest designclassifier, router, worker pool, bigger model
Self-review biasfresh instancesame session
One pass trades recall for precisionverify stage"only high-confidence"
Many independent itemsparallel subagentsnesting, a queue
Repeated prefix costs time or moneyprompt cachingcaching to fix behaviour
Transient failure (brief 503)retry as isretrying a non-transient error
Progressing run hit the turn capresume, higher max_turnshigher cap for a loop
OUTPUT cut off (even a tool call)raise max_tokenssame for long input (chunk it)
Edit a result before Claude reads itPostToolUsePostToolUse to block
Measure accepted outputstratified sample, weeklysampling 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 slipscode check + retry with the error
One example shows the printed datefix that example

Extraction deadline on batch pricing

Deadline 30 hsubmit every 4 h (4 h wait + 24 h = 28 h)
New hard deadline under 24 hsynchronous API

Which fields reach reviewers

Accuracy rises with the scorecalibrated per-field threshold
Accuracy flat across scoresroute on failed rules, run disagreement, doc-type history

Agent quotes from its case facts

ID, amount, customer's wordsquote as kept
Order or refund statustag tool + turn, call the tool again first

D1 The agent loop

One tool round trip

1 requesttools + messages [user]
2 responsestop_reason: "tool_use", content: text? + tool_use {id: "toolu_1", name, input}
3 your coderuns the tool
4 next requesthistory + assistant turn (response content unchanged) + user turn tool_result {tool_use_id: "toolu_1", content}, is_error: true if it failed
5 repeatuntil stop_reason: "end_turn" → show the text

Loop symptoms

Reply has text AND a tool callloop on stop_reason, reply at end_turn
pause_turnappend response unchanged, call again, no user text
end_turn asks the customershow it, wait; no auto "please continue"
Forgets answers, repeats callsAPI is stateless → full history incl. every tool_use + tool_result
Several tool_use blocksall results in ONE user message, by id
Independent lookups one per turnprompt to request them together
SDK custom tools run one at a timereadOnlyHint → concurrent
User interrupts mid-batchfinished results + "cancelled, not run" errors, then new text
Tool exception ends the chattool_result with is_error: true, keep looping
How the next step is chosenmodel reasons over the result, no router

D1 Hooks

PreToolUseBEFORE the call: block, ask or rewrite input
PostToolUseafter: edit the result before Claude sees it, log, format; can't block
Stoprefuse to end until a check passes
Refund > limit, or after escalatingPreToolUse deny on process_refund, reason "escalate"
Approved exceptions get deniedhook checks the system of record
Another customer's orderallow only orders lookup_order returned for them
Data leaks before verificationgate EVERY disclosing tool, lookup_order too
Verified state across a handoffcode writes the verified ID in
Confirmation must be a later messagesplit propose / process, code-issued ID
Wrong unit, missing LIMITPreToolUse rewrites input
Card numbers, junk, huge resultsPostToolUse masks or trims (fine on a shared server)
Audit every refundPostToolUse log; slow → async
Format after editsPostToolUse, matcher Edit|Write, Prettier
Depends on args (force push to main)PreToolUse parses → deny or ask
Citations must pass before publishingPreToolUse on the publishing tool, deny until the check passes
MCP hook never firesmatch mcp__server__tool
canUseTool check never runsallowedTools pre-approved it → use PreToolUse
Server shared with another applimit in the agent's hook
Blocked agent gives updeny 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 resultisError: true
Messages API tool_result blockis_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.mdteam rules every session, committed; reaches CI + teammates; survives compaction
~/.claude/CLAUDE.mdpersonal, all repos; not CI, not team
CLAUDE.local.mdpersonal, this repo, gitignored
sub/dir/CLAUDE.mdloads when Claude reads files there
Managed policy CLAUDE.mdorg-wide, users can't remove
Rule with paths:.claude/rules/*.md, loads only for matching files (by file TYPE)
Rule without paths, or @importloads 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 denyhard block, e.g. Edit(./db/migrations/**)
MCP serversteam .mcp.json · personal ~/.claude.json · token ${ENV_VAR}
Needed before any file is readno paths
Procedure from step 1, or per-task checklistskill / slash command, not CLAUDE.md
Rules conflictno precedence: reword
CLAUDE.md > ~200 lines loses rulestrim
Rules given only in conversationvanish after compaction
25 drifting directory copiesone path rule
Override a team MCP serverlocal scope, SAME name
MCP for one subagentits 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

descriptionin context so Claude can pick the skill (left out with disable-model-invocation)
disable-model-invocation: trueonly typed /name runs it (deploys)
user-invocable: falsehidden from menu, only Claude starts it
context: forkruns in a subagent, only result returns
allowed-tools / disallowed-toolspre-approve during skill (removes nothing) / remove while it runs
paths / hookslimit 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 schematool with input_schema + strict: true, read tool_use; or output_config.format · not "output JSON", prefill, regex
Rare type slipsstrict mode was off: turn on strict: true
Force a tool firsttool_choice {"type":"tool","name":…} that turn
Some tool, never text"any" (auto allows text)
Several problems, or nonefindings array: one issue per finding, no issues → empty array · not one finding object + a prompt rule
Values the pipeline knowsattach in code
Fabricated values for missing infooptional / nullable + "null if not stated"
Loader needs every keyrequired + nullable, no 0 defaults
New categories keep appearingenum + other + detail string
Conflict, known winner (spec table)precedence rule in prompt, single field
Conflict, no ruleflag + both values → review
Amendmentsmultiple values + source location + effective date
Stated vs inferredbasis field + clause text
Totals don't add upstated_total + calculated_total, flag mismatch
Totals from clausesextract parts, sum in code
Well-formed, wrong valuesverbatim 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.