Claude Certified Architect · Foundations

Course cheat sheet

Created with Claude Opus 5.5 and Fable 5.2 (Anthropic's AI models). Independent notes, not official Anthropic material. Check facts against the official Claude docs (opens in a new tab) and your exam's official guide (opens in a new tab) before relying on them.

Module 1: Agent architecture and orchestration

Memory hooks

  • Good Kitchens Label Recipes: Goal, Known facts, Limits, Return format. A stranger can cook from a labelled recipe.

Remember

  • Least autonomy that works: one call → workflow → agent. If you can draw the steps, it's a workflow.

  • The agent loop: Claude asks, your code runs the tool, the result goes back. Stop on stop_reason, plus guards for turns, budget, time and progress.

  • Subagents start with an empty context. Brief = goal, known facts, limits, return format.

  • Results come back structured: answer, sources, status, what couldn't be checked.

  • Parallel only when independent.

  • Prompts advise, code enforces. Money, irreversible actions, identity, tenancy and permissions live in code.

  • Put humans where mistakes are costly, and show them a proposal, not a transcript.

Exam traps

  • Trap: "In an agent loop, Claude runs the tools it picks." Truth: Your code runs every client tool and returns a tool_result. Only server tools, such as web search, are run for you.
  • Trap: "A system is either a workflow or an agent." Truth: Most production systems mix them: a workflow backbone with one agent step where open-ended work is unavoidable.
  • Trap: "A read-only subagent is safe if its prompt says never write." Truth: Well is not always. Give it only read tools; permissions live in code.

Module 2: Claude Code setup and workflows

Memory hooks

  • Many Cooks Leave Pots Unwashed: managed, command line, local, project, user, highest first.

Remember

  • Knowledge in memory, rules in settings. CLAUDE.md informs; permissions and hooks enforce.

  • Settings: managed > command line > local > project > user. Memory files add up.

  • Permissions are checked deny → ask → allow; a deny can't be overridden by an allow.

  • Hooks: exit 2 blocks and sends stderr to Claude. Any other non-zero exit does not block.

  • Keep CLAUDE.md short. Folder files and path rules load on demand; skills load when relevant. @imports (up to 4 levels) load at launch, so they organise but don't save context.

  • Skill = a repeatable job. Subagent = its own context and fewer tools. MCP = an outside system, secrets via ${VAR}.

  • Team flow: plan mode for big changes, worktrees for parallel work, headless read-only review in CI, a human merges.

Exam traps

  • Trap: "Shared project settings beat my local file." Truth: Local project settings rank above shared ones. A deny still wins wherever it is set.
  • Trap: "settings.local.json is always kept out of git." Truth: It's ignored automatically only when Claude Code creates it. A hand-made one needs a .gitignore entry.
  • Trap: "--bare just makes a scripted run quieter." Truth: It skips hooks, skills, MCP servers and CLAUDE.md discovery, so you pass the context yourself. Check the docs before relying on it.

Module 3: Prompts and structured output

Memory hooks

  • Nobody Eats Sour Raisins Regularly: Nullable, Enum escape, Source quote, Raw and normalized, Review flag.

Remember

  • Schemas fix shape. Code checks meaning. You need both.

  • Rules are criteria a second person could check, with the reason why.

  • Examples cover the hard cases, in the exact output format.

  • Structured outputs (output_config.format, JSON Schema) is the current way to guarantee shape. Check forced tool use support before relying on it.

  • Nullable = permission to say "not found". Enums get an "other" escape. Important values carry a source quote.

  • Retry once, with the specific error. Missing data goes to a person, never to more retries.

  • Someone waiting → live. Nobody waiting → batch, half the price, up to 24 h.

Exam traps

  • Trap: "A duplicate invoice failed validation, so retry the extraction." Truth: It isn't a model error. It's a business rule: flag it.
  • Trap: "Ask the question first, then paste the long document." Truth: Put the document before the question, and keep the instructions after it short and specific.
  • Trap: "The schema only sets the format, so field names and descriptions don't matter." Truth: A schema is also a prompt. Every field name, type and description tells Claude what you want.

Module 4: Tool design and MCP

Remember

  • The tool card is the prompt for choosing: name, does, use when, don't use when, inputs, returns, errors.

  • One tool per user intent, not per endpoint. Each agent gets the fewest tools.

  • Results are compact, with IDs for the next call and paging.

  • Errors carry a category and retryable. Never return empty success on failure.

  • Separate read and write tools. Writes take an idempotency key. Risky writes pass a gate.

  • Tool output is untrusted. Identity comes from the token, never the model.

  • MCP: tools (model-controlled), resources, prompts; stdio local, Streamable HTTP shared; OAuth 2.1, no token passthrough; secrets via ${VAR}.

Exam traps

  • Trap: "An MCP tool result with isError: true means the request itself failed." Truth: isError marks an error in running the tool. A protocol-level (JSON-RPC) error means the request itself failed.
  • Trap: "A 'not found' error means retry the same call." Truth: Try another way, such as a different search, or ask the user. Back-off retries are for temporary errors.
  • Trap: "Remote MCP servers use the HTTP+SSE transport." Truth: Use Streamable HTTP for a remote server. HTTP+SSE is kept only for backward compatibility.

Module 5: Context and reliability

Remember

  • Budget the context: fixed, pinned, growing. Trim at the tool. Measure tokens.

  • Case facts are kept by code and go into every request. Summaries are for the story, not the numbers.

  • Explore in subagents; keep notes outside the context for long or restartable runs.

  • Prompt caching = stable prefix first (tools → system → messages), 5-minute default lifetime; cheaper and faster, not smarter.

  • Failures arrive as failures: status, tried, error, partial, not checked. Retries use backoff and caps; writes use idempotency keys.

  • Every claim has a source and a quote. Show conflicts. Separate observed from inferred.

  • Escalate on rules, not tone. Sample the auto lane, and feed what you find into evals.

Exam traps

  • Trap: "Prompt caching makes every request cheaper." Truth: Writing to the cache costs more than normal input. The saving comes from reuse.
  • Trap: "The API's memory tool keeps the agent's notes for you." Truth: It's client-side: your code implements where the memory lives.
  • Trap: "A 529 means we hit our rate limit." Truth: A 429 (rate_limit_error) is the rate limit. A 529 (overloaded_error) means the service is temporarily overloaded.

↑ ↓ navigate · ↵ select · esc close