Claude Certified Developer · 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: What the words mean
Memory hooks
- Some Cats Read Ten Rare English Words: SDK, Credentials, Retries, Timeouts, Rate limits, Errors, Where it runs.
Remember
Everything goes through
POST /v1/messages;contentis a list of typed blocks, so loop and narrow ontype.Check
stop_reasonbefore you trust the output; a refusal is a 200, not an error.The API is stateless: you store and resend the conversation, and every turn costs more.
Count with
countTokensand the real model ID;max_tokenscaps output (thinking included), the context window caps input plus output.Steer thinking with
output_config.effort; start on Opus 5.5, move a route to a cheaper model only when evals hold.Rules in
system, data inuser, untrusted data wrapped in clear tags; no prefill.The SDK retries 429/5xx twice by default; fix 4xx errors, don't retry them.
Exam traps
- Trap: "At
loweffort, the model doesn't think." Truth: It is a behavioural signal, not a strict budget. Atlowthe model still thinks on hard problems, just less. - Trap: "The thinking text is hidden, so I don't pay for it." Truth: Thinking tokens are billed as output tokens, even when the text isn't shown.
- Trap: "A dateless ID like
claude-opus-5-5may move to a newer model one day." Truth: On the Claude API every model ID is a pinned snapshot, dateless ones included.
Module 2: Prompts, tools and agents that hold up
Memory hooks
- In Trouble, Check Every Sign: Information, Tools, Choice, Errors, Stop.
Remember
Four-part system prompt: role, goal, testable rules, output format; untrusted data in tags.
The model chooses everything in a tool schema, so the tenant never goes there; write detailed descriptions and use
strict: true.JSON comes from structured outputs (
output_config.format); prefill and forcedtool_choicereturn a 400 on current models.Agent loop: step limit, full assistant content back,
is_errorresults, all parallel results in one message.Prefer a workflow when the steps are known; use an agent only when they aren't.
Stream long replies; use
finalMessage();stop_reasonarrives inmessage_delta.Memory is client-side, so your code checks every path; batches are 50% off, matched by
custom_id.
Exam traps
- Trap: "
strict: trueon my tool means the final reply is valid JSON." Truth: Strict tool use shapes tool inputs. JSON outputs (output_config.format) shape the response. You can use both. - Trap: "With structured outputs, I can skip the
stop_reasoncheck." Truth: A refusal or amax_tokensstop can leave output that doesn't match the schema. Check bothstop_reasonandparsed_output. - Trap: "Writing a rule in CAPITALS makes the model follow it better." Truth: Capitals tend to make current models over-apply the rule. Write plain, direct statements.
Module 3: Claude Code and MCP, safely
Memory hooks
- My Code Looks So Ugly: Managed, Command line, Local, Shared, User, from highest to lowest.
Remember
Pick the permission mode on purpose;
bypassPermissionsonly in a throwaway sandbox.Deny rules are checked first; team gates go in
.claude/settings.json, personal ones insettings.local.json.Keep
CLAUDE.mdshort: commands, map, hard rules; it guides but doesn't enforce.Hooks read JSON on stdin; exit 2 blocks a PreToolUse call; PostToolUse can't undo, so use it to run tests.
Package repeat work as skills; give subagents only the tools they need.
MCP servers offer tools, resources and prompts over stdio or Streamable HTTP; stdio keeps stdout for protocol only.
Never put the tenant in an MCP tool argument; fix it in the server's config.
Exam traps
- Trap: "A deny rule on
Read(./.env)means Claude can't reach.env." Truth: Rules are not a sandbox.cat .envin Bash, or a script, can still read it. Add hooks and OS-level isolation. - Trap: "Hooks are safe because Claude Code runs them, not the model." Truth: Hooks run with your user's permissions. Review them like any code; a hook in a cloned repo can be malicious.
- Trap: "For a new remote MCP server, use the HTTP+SSE transport." Truth: HTTP+SSE is no longer a standard transport, and Claude Code marks SSE deprecated. Use Streamable HTTP.
Module 4: Prove it works in production
Memory hooks
- Can Tom Buy Lunch, Cheese, Coffee? Cache, Trim, Batch, Lower effort, Cheaper model, Concurrency limits.
Remember
Evals measure model-powered quality; unit tests (with a stubbed client) check your code.
Grade with code first; use an LLM judge with a pass/fail rubric, calibrated against human grades.
Re-run the whole eval set on every prompt or model change.
Trace every call: tenant, model, effort, tokens, cache, latency, stop reason, cost.
Retry 429/5xx/529; fix 400s; refusals are 200s that need their own path.
Caching is a prefix match, stable content first; cache reads are cheap and don't count toward input-token rate limits.
Injection defence is layers (server-set context, least-privilege tools, human approval, output checks); ship only with zero Stop items.
Exam traps
- Trap: "Caching can only save money." Truth: Cache writes cost more than base input, and the 1-hour TTL costs more than the 5-minute one. The saving comes from the reads.
- Trap: "Any prefix with
cache_controlgets cached." Truth: Prefixes shorter than the model's minimum length are silently not cached. - Trap: "Injection only matters for what the model does with tools." Truth: A draft that echoes an attacker's link or script is injection delivered to your users. Escape output before rendering it in HTML.
Module 5: Make it reusable
Memory hooks
- Every Five Funny Cats Play: Eval case, Fix, Full eval run, Changelog entry, Pull request.
Remember
Copy-paste is not reuse: one package, typed input and output, client passed in.
Prompts are versioned files, model IDs are config; semver by behaviour (eval-moving prompt change = minor, schema change = major).
The eval runs in CI on prompt, schema and model changes, with its own low-limit key.
Requirements say what the feature never does; re-run evals on a new model ID before switching.
Containers take all config from the environment and the key from a secret store.
Bedrock uses its own SDK client, IAM auth and
anthropic.IDs; batches and server-side fallback aren't on Bedrock or Google Cloud (Google managed).Draw trust boundaries; every crossing gets a check, and model output is untrusted.
Exam traps
- Trap: "We use structured outputs, so the package can skip validating the result." Truth: Validate again in the package. The package boundary is a trust boundary too.
- Trap: "Bedrock and Google Cloud follow Anthropic's retirement dates." Truth: Partner platforms set their own deprecation and retirement dates.
- Trap: "A regional endpoint costs the same as global." Truth: On Bedrock, regional endpoints cost more than global. On Google Cloud, multi-region and regional both cost more.