πŸŽ“ Claude Architect KB CCAR-F Β· CCAR-P study guide

Cram Sheet β€” The Day-Before One-Pager

Ask five questions: What is the task? Who chooses the next step? Who executes it? Which component enforces the rule? What evidence proves success?

Use this page to recall ideas you already understand. If a phrase is unclear, open its glossary example before memorizing it.

The one sentence

The model decides; the harness executes. The harness is the software around the model that runs the actions. Every correct answer puts rule enforcement into code that always behaves the same way (gates, hooks, schemas, allowlists, budgets). Prompts are only used to guide the model.

Blueprint (CCAR-F)

Agentic 27 Β· Claude Code 20 Β· Prompting/Structured 20 Β· Tools/MCP 18 Β· Context/Reliability 15 β€” 60 questions Β· 4 of 6 scenarios appear Β· 120 min Β· 720/1000 (= the scaled score you need to pass).

Tables to hold in your head

Stop reasons (why the model stopped) β†’ end_turn: give the answer to the user Β· tool_use: your code runs the tool, then loops back Β· max_tokens: output is CUT OFF, never parse it Β· stop_sequence: your custom stop text was reached Β· refusal: send the case to a human.

Workflow patterns β†’ chain (fixed steps in order) Β· route (classify, then send to the right handler) Β· parallel-section (independent parts run at the same time) Β· parallel-vote (several runs vote, for confidence) Β· orchestrator–workers (the task is split at run time) Β· evaluator–optimizer (check against criteria, then improve). Use workflows before agents when the path is known.

MCP primitives β†’ tools = model decides when to use them Β· resources = app decides Β· prompts = user decides. One client connects to one server, and the connection keeps state. stdio for local servers Β· Streamable HTTP for remote servers. Value: NΓ—M custom integrations become N+M.

Claude Code surface β†’ CLAUDE.md memory (shared project instructions plus personal user instructions) = GUIDANCE: the model reads it, usually follows it, no guarantee (same as the API system prompt) Β· settings permissions + hooks = ENFORCEMENT: Claude Code checks them in code, whatever the model decides (API twin: your harness code, output_config.format) Β· stem says must/never/always/guarantee/compliance/block β†’ enforcement; conventions/style/know/context β†’ guidance Β· skills = expertise that the model CHOOSES (by its description) and the harness RUNS Β· slash commands = templates the user starts ($ARGUMENTS) Β· subagents = their own separate context + tool policy Β· hooks = code that always runs the same way (PreToolUse exit-2 blocks the action; PostToolUse changes the result) Β· settings priority: enterprise > CLI > local-project > shared-project > user Β· headless claude -p + stream-json for CI.

Output controls: a prompt only asks for a format. tool_choice selects a tool. strict: true enforces the tool's argument schema (supported features only). output_config.format controls the JSON answer text (supported features only). Your code checks that the output is complete and the values are correct. Prefill is an older technique that depends on the model, and you cannot use it together with thinking.

Injection defense β†’ limit the input β†’ treat it as data, not instructions β†’ gates in code that check the output. Layer 3 is the one that really holds.

Caching β†’ the prefix must be byte-identical; put stable content BEFORE the breakpoint and changing content after it; cache reads cost β‰ˆ10% of the normal price; loops spread the cost over many calls.

Reliability β†’ 429 (rate limit) / 529 (overloaded) = retry with backoff+jitter (wait longer each time, plus a random delay) Β· idempotency keys for actions with side effects, so a retry does not repeat them Β· checkpoints let you resume, never replay from the start Β· the fallback steps end in honest failure Β· Batch API for large offline volume Β· pin model versions in production Β· add monitoring before you try to fix things.

Multi-agent β†’ subagents exist to keep CONTEXT SEPARATE; they return summaries; run reads in parallel and writes one at a time; hub-and-spoke (a coordinator in the center); know when one loop is enough.

The six scenarios in one line each

S1 support: escalation is a planned final path; anything with money = gate + HITL (a human approves). S2 team Claude Code: guarantees come from hooks, standards come from the project CLAUDE.md. S3 research: a coordinator + subagents that return summaries. S4 dev tooling: Bash allowlists with a narrow scope; Grep/Glob only read. S5 CI/CD: headless + least privilege; block a merge only on checks that always give the same result. S6 extraction: a forced schema tool + stop_reason check + closed schema.

Exam mechanics

About 90 s per question, after 1 min to read each scenario Β· flag hard questions and move on Β· "most appropriate" = Anthropic's published guidance (the simplest solution, workflows first, enforcement in code) Β· read the constraint sentence again before you answer Β· keep 10 min at the end for review.

Night-before checklist

Pearson VUE system test done Β· ID ready Β· wired internet Β· clean desk Β· water Β· sleep is worth more than studying past this page.

Named features added from the official exam guide (v0.2) β€” last-pass list