Claude Certified Developer · प्रोफेसनल
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: Answers grounded in your own data
Memory hooks
- Stop Unsafe Answers: Selection, Use, Abstention.
Remember
The tenant comes from the verified token. The database enforces it. The prompt never does.
Send each source as its own document with citations on, and check in code that the answer cites what you retrieved.
Retrieval always returns something. A threshold, plus "I don't know and a person will follow up", is a feature.
Retry model calls; never blindly retry side effects. Key idempotency on business intent.
Read
stop_reasonbefore content. Structured outputs guarantee shape, not truth.Chunks carry doc id and version; re-index on change, in one transaction.
Exam traps
- Trap: "The isolation test passes, so the fix is proven." Truth: Only if it would fail on the old code. A test that passes before and after the fix proves nothing.
- Trap: "HTTP 200 means Claude answered, so read
content[0].text." Truth: A 200 can still be cut off (max_tokens) or arefusal. Readstop_reasonbefore content. - Trap: "Turn citations on only for the documents that matter." Truth: Citations are all or nothing: enable them on every document block in the request, or on none.
Module 2: Multi-agent architecture that survives production
Memory hooks
- See Facts, Only then Organise: Single call, Fixed workflow, One agent with tools, Orchestrator + workers.
Remember
Lowest rung that works. Climb only with evidence from traces and the cost of a wrong answer.
Few tools per agent, sharp names, and measure tool-choice accuracy before you split.
Handoffs are schemas: ids plus a summary, validated on both sides. The tenant lives on the run, never in the handoff.
All tool results in one message; failures as
is_error; history append-only.Every run has an id, every step a checkpoint, every side effect an idempotency key.
Max turns, max spend, max time, enforced in code; on a breach, a person takes over.
Same tickets for v1 and v2, then an ADR. Merge back agents that don't do better than the generalist.
Exam traps
- Trap: "The task is open-ended and the model can do it, so build an agent." Truth: It must also be worth the cost and latency, with mistakes that can be caught and undone. Any "no" means stay lower.
- Trap: "Key the refund by run and step, so it can never happen twice." Truth: A customer who reopens the ticket starts a new run. For money, key by business intent.
- Trap: "On resume, replay the saved outputs; a deploy in between doesn't matter." Truth: Changed step code can make a saved output stale. The input hash turns that into a loud error, and the run escalates.
Module 3: Observability: drift, regressions and cost spikes
Memory hooks
- Always Stop Costs First: Alert, Split, Contain, Fix forward.
Remember
A 200 OK can be a wrong answer. Watch outcomes, not only status codes.
One trace per run; spans for every model and tool call; tenant, prompt version, model, tokens, cost, stop reason and outcome on them.
API
usage.input_tokensexcludes cache tokens; a span's input count may include them. One source per request. Spans aren't the bill.Metadata everywhere; full content only in a sampled, access-controlled store. HMAC ids, never plain hashes.
Keep metric labels low-cardinality. Put ids in traces.
Prompt version is a flag you can roll back, and it's on every span.
Three alerts: cost per unit against a baseline, a quality proxy per tenant, turns per run, plus a hard cap in code.
Exam traps
- Trap: "One customer got a bad answer after the deploy, so the new prompt regressed." Truth: The same input can give different outputs, so one bad example isn't a trend. Look at rates over many runs.
- Trap: "For a run's token total, sum
gen_ai.usage.*across the whole trace." Truth: Some span trees repeat usage at more than one level. Sum only the per-request model spans. - Trap: "Alert on the Usage and Cost Analytics API; it's the exact record." Truth: Its data can lag. It's for reconciliation, not live alerts.
Module 4: Evaluation engineering and release gates
Memory hooks
- Come Look Here: Code graders, LLM judge, Human spot checks, from the bottom up.
Remember
Code graders first: everything code can check, check with code, on every PR.
A judge is an instrument: a pass/fail rubric, one criterion per call, reasoning before the verdict, order swapping for pairs.
Calibrate against human labels, report kappa as well as percent agreement, record it with the judge model and rubric version, and recalibrate when either changes.
Run cases more than once and read rates with their noise margin.
Gate per category against main's baseline; safety categories have zero tolerance.
Every incident becomes a case. The eval is a product, not a one-off.
Exam traps
- Trap: "Judge all three criteria in one call: same verdicts, a third of the calls." Truth: One strong impression ("this looks thorough") can influence all three verdicts. One criterion per call.
- Trap: "v8 beat v7 in the pairwise run, so v8 is ready to ship." Truth: Pairwise doesn't tell you whether either version is good enough. Absolute pass/fail does, and it is what gates use.
- Trap: "Kappa 0.6 is the official pass mark for a judge." Truth: There is no official pass mark. Pick a target for your use case and don't use a judge below it.
Module 5: Runtime guardrails and agent identity
Memory hooks
- In, who, do, out: Input and context handling, Identity (who), Tool policy (do), Output scanning.
Remember
Assume the model will be fooled sometimes. Limit what a fooled model can do.
Everything the model reads is untrusted: tickets, docs, tool output, web pages.
The agent has its own identity: short-lived, task-scoped, one tenant's audience, on behalf of the user via token exchange, no refresh token.
The API enforces scope and tenant. A prompt never does.
refunds:request≠refunds:approve.Check tool arguments against your data, put a person in front of high-risk actions, cap each run.
Each layer must stop the attack on its own; the injection corpus proves it in the eval gate.
Coding agents too: deny rules beat modes, hooks block with exit 2, no production credentials in the shell.
Exam traps
- Trap: "I requested
orders:read refunds:request, so the token has both." Truth: The authorization server decides and may grant fewer scopes. Read thescopein the response. - Trap: "Audit the calls that went through; denied ones did no harm." Truth: Every tool call writes an audit row, allowed or not. Without denied rows, attacks stay invisible until one succeeds.
- Trap: "A
PreToolUsehook guards.env, so Claude Code can't read it." Truth: Hooks run only on tool calls. A file added with an@mention skips the hook; aReaddeny rule covers it.
Module 6: Debugging and incident response
Memory hooks
- Keep Panic Down: Kill switch, Pin versions, Draft-only mode.
Remember
Contain first: kill switch per risky tool, pinned versions, draft-only mode, then a status note on a fixed cadence.
Evidence beats stories. Start from the run id; follow the trace hop by hop; check each handoff against its contract.
Replay with recorded inputs and fixture tools. Change one thing at a time. Run each variant enough times to beat the noise.
Fix the cause and add a second, independent defence on the money path.
The audit log tells you exactly who was affected; a person decides how to make it right.
Blameless review, actions with owners and dates, and the incident becomes an eval case and an alert.
Exam traps
- Trap: "Contract v3 shipped eight minutes before the first duplicate, so it's the root cause." Truth: It's suggestive, not proof. It stays a hypothesis until replay shows that changing it moves the failure rate.
- Trap: "With the kill switch on, the paused tool should throw, so nothing can run." Truth: Throwing can kill the run halfway and leave the ticket worse. Return a
tool_resultwithis_error: trueand plain instructions. - Trap: "Replay fails 2/10 and no single change moves it, so keep bisecting for the code bug." Truth: That pattern means model variance on this input. Add a deterministic check in code and put the input in the eval set.
Module 7: Fleets of coding agents: worktrees, gates and review
Memory hooks
- Robots Can't Publish: Reviewer agent with fresh context, Check its findings, a Person decides.
Remember
One task = one worktree = one branch, and tasks don't share files.
The brief is the agent's whole world: goal, in scope, out of scope, done when, what to report.
CLAUDE.mdguides; hooks and deny rules enforce; credentials are the real boundary.A PreToolUse hook blocks with exit 2. Exit 1 lets the call through. Fail closed.
Gates check what cheating looks like: no fewer tests, no new skips, no secrets, measured against main.
Fresh-context reviewer, then a person decides. Agents never merge. Merge one at a time.
Budget every agent; restart a stuck one with a better brief.
Exam traps
- Trap: "Each agent has its own worktree, so two agents adding dependencies can't conflict." Truth: Both agents change the same lockfile, so their branches conflict at merge. Brief rule: "don't add dependencies; report if you need one".
- Trap: "Put the policy check in a PostToolUse hook." Truth: PostToolUse runs after the tool, so it can't prevent anything. Policy belongs in PreToolUse.
- Trap: "Five agents give five times the throughput of one." Truth: Throughput is limited by how many diffs a person can read well. Two PRs you can review beat five you can't.
Module 8: Cost and latency at scale
Memory hooks
- Reduce The Tokens: Retrieval top-k, Thread length, Tool-output size.
Remember
Stable first, volatile last. Nothing that changes per request goes above the cache line.
Check
cache_read_input_tokens, and remember thatinput_tokensis only the uncached remainder. Keep a standing test and a dashboard alert.Pin the model, tools, effort and thinking per route; mid-session changes are appended, never edited into the prefix.
Try the best model at lower effort before building a cascade. Route down only where per-category evals hold, and fall back up on measured failures.
Batch is half price for work nobody is waiting on; key results by
custom_id.Stream, parallelise, pre-warm. Then report cost, latency and quality together.
Exam traps
- Trap: "This route is 40% cheaper per call, so it saves money." Truth: Judge cost per completed task. If it escalates twice as often, or needs a second turn, it can cost more.
- Trap: "The data in the prompt didn't change, so the bytes didn't either." Truth:
JSON.stringifykeeps insertion order. The same data built in a different key order gives different bytes. Sort keys. - Trap: "Top-level automatic caching is on, so every request is covered." Truth: When a prompt ends in content unique to this request, you pay writes nobody reads. Put an explicit breakpoint at the end of the shared part.