When is your exam?
Our questions are written for this version of the exam.Our questions are written for the exam up to 6 December. Questions for the new exam are coming soon.
Covers: Anthropic's new CCAR-P exam guide (published 17 November).the guide for exams up to 6 December. Its November re-issue changed only registration and policies.
Answer rules
Hard requirements first: drop options that fail an SLA, compliance, residency or security rule; then compare cost and quality
Simplest design that meets the requirements · name the binding constraint and the trade-off it forces (an option claiming no trade-off is usually wrong)
Diagnose before changing: diff vs last good, replay, one variable at a time
The metric tests the stated requirement, against a baseline
Caching first for cost: it can't change accuracy. Smaller model or less context can → evals first
| Situation | Choose | Not |
|---|---|---|
| Gap is a pattern: format, style, how two rules interact, an in-house labelling convention | few-shot or worked examples (3–5, varied) | bigger model |
| Gap is missing facts, a retrieval miss or arithmetic | fix retrieval or data; math in code | more examples |
| Must never say something (regulated advice) | refusal rule + output classifier | rule alone |
| Who sees data or calls tools | controls outside the model: access checks before retrieval, tool allow-list, code checks | prompt rule, Skill, output filter |
| Choosing a model | smallest that passes evals within the SLA | newest or biggest |
| Need a guardrail | a check that blocks before the action | SIEM logging (detects only) |
| Retries meet a side-effecting tool | idempotency key per action | fewer retries, a prompt rule |
Also wrong: change temperature · retrieve everything · random sampling as retrieval · disable controls, reinstall, escalate to execs · skip review because the change is small · train everyone before a pilot
One constraint changes the answer high-effort feature
| Symptom | Do | Not |
|---|---|---|
Hard inputs come back empty or cut off (stop_reason: max_tokens) | raise max_tokens: thinking and answer share the cap | lower effort, bigger model, "answer briefly" |
| Passes the quality bar but too slow; traces mostly thinking | lower effort on the same model, re-check on evals | smaller model that fails the bar |
| Complete answers, but wrong | find the failing layer (gold-passage test) | raise max_tokens: nothing was cut off |
"Which 2 steps come BEFORE…" pick the define/inventory steps
| Before… | Step 1 | Step 2 |
|---|---|---|
| testing a model on samples | set quality bar, latency, volume | pick a candidate model |
| adding monitoring | define metrics and traffic slices | define SLOs and error budgets |
| running an eval | define metrics and slices | build and label the dataset |
| an A/B test | hypothesis and primary metric | MDE and sample size |
| rating threats | list assets and sensitivity | list attackers and attack paths |
| mapping to regulation clauses | does it apply (data, jurisdiction, audience) | list the vendor's compliance tools |
| a HITL pilot | find decisions needing review (impact, reversibility) | sampling plan and escalation criteria |
| writing an architecture guide | audience and its questions | outline the sections |
| a Claude Code settings pilot | map workflows, boundaries, managed vs project | write the project baseline (MCP, permissions, subagents) |
| a Claude Code workflow pilot | where AI helps vs where humans decide | configure MCP, permissions, subagents, CLAUDE.md |
D1 Architecture patterns
| Cited answers, auditable, cheap | RAG over approved sources |
| Fixed known steps | workflow (predictable cost) |
| Dependent steps | prompt chain + code check after the risky step |
| Distinct input categories | routing to a prompt + tools per category |
| Independent checks, all must run | parallel calls, merge in code; latency = slowest call |
| Subtasks unknown, too big for one context | orchestrator-workers |
| Written criteria, feedback helps | evaluator-optimizer, capped rounds |
| Tightly coupled, fits one context | single agent |
| Valuable, parallel, breadth-first work | multi-agent (≈15× chat tokens) |
| Most coding | one agent |
| Same procedure reused across teams, governed centrally | Skills-based: one Skill, its owner, referenced everywhere |
Brief each subagent: objective, output format, tools/sources, boundaries. It returns condensed results or file references
Check a decomposition: clear task boundaries, who handles a failed subagent, where results are merged, one trace across all of it
Check an architecture: which component fails first at the stated load or trust level (shared key, single queue, unscoped access)
Claude, human, or both?
| Reversible, low stakes, checkable | Claude |
| Claude drafts, a person decides | collaborative |
| Irreversible, high stakes, someone accountable | human |
Deployment surface and agent runtime
| Constraint | Choose → trade-off |
|---|---|
| Inputs must stay in the firm's cloud (residency attestations) | that cloud's surface (Bedrock, Vertex AI, Foundry) → new features arrive later; you own the agent loop and session state |
| Newest features first | Anthropic API |
| Anthropic hosts the loop, sandbox and sessions | Claude Managed Agents (on the Anthropic API) |
| Own the loop on your infrastructure | self-hosted Agent SDK or headless Claude Code |
| Single calls, your code runs the tools | Messages API loop |
Not: ZDR for residency (it sets how long data is kept, not where it is processed) · mirror documents into the cloud (inputs still leave) · hosted runtime on every surface, no trade-off
D1 Value and placement
| Efficiency | same team does more per person or hour (3× POs per analyst) |
| Productivity | business output rises (time saved but billable output flat → not realized) |
| Transformation | roles or workflows redesigned |
| Solution cost | API, integration, retry spend |
| Performance SLA | latency vs committed target |
Correction time = efficiency loss
Cost claim → cost per resolved ticket (model + retries + human review) vs baseline
Before model: OCR, PII redaction → model: classify, extract → after: schema check, save to system of record
Claude fits: drafting, clause extraction, ticket routing with reasons. Doesn't: <50 ms fraud scoring, replacing a vector index, tax math
First release: narrowest task at the measured bottleneck, cited, human decides, metric + baseline set before building
Managed agents: deciding factor = the security team's data boundary
D2 Models & prompting
| High volume, low latency, fixed labels | Haiku |
| Evals show a gap on some inputs | escalate only those (tiered routing) |
| New model version | same eval gates; newest is no reason |
| Closed label set, definitions in the prompt | zero-shot to start, measure; add examples where evals show a gap |
| Exact output format | few-shot with exact field names |
| Complex reasoning | native thinking where the model has it, prompted chain of thought otherwise; neither for simple lookups (token cost) |
| Downstream code reads it | structured output |
| Comparing options | neutral, with criteria |
| Contradictory instructions | keep one, add an "insufficient evidence" fallback |
| Degraded, inconsistent output | find what the system prompt leaves open; constrain scope, format and behaviour, keep legitimate variation · not rules for every case |
| Long-running agent near the limit | compaction, memory files, or subagents with fresh context |
| Old tool results fill the window | context editing (clears them) |
| Facts must survive across sessions | memory tool |
| One procedure in many workflows | one Skill owned by its team, referenced everywhere |
Prompts and context
System prompt = role + stable rules; user turn = task + data in XML tags
Templates with variables → versioned, testable, cacheable
Long docs at the top, question at the end; ask for relevant quotes first, then the answer
Prompt caching
Order: tools → system → messages, stable content first; up to 4 breakpoints; a change invalidates everything after it
TTL 5 min (resets on each hit) or 1 h · write 1.25× / 2× input price · read 0.1× or less, by model
Pays off only if reused within the TTL; scoped to your org/workspace
D3 Integration
| Direct API | one stateless low-latency call to a stable API |
| MCP | reusable across several AI clients; live systems |
| Skill | fixed procedure + files; no network on the API; install on each surface |
| A2A handoff | stateful, long-running |
Identity and tools
| Shared API key | per-user scoped OAuth |
| Caller not logged | record the user on every tool call |
| Credentials in the prompt | server-side secret store |
| RBAC applied at render | enforce it at retrieval |
| Role never needs a tool | remove it (logging or confirmation isn't least privilege) |
| 60 tools, 50k tokens before you type | Tool Search, load on demand |
| Agent grew 6 → 34 tools, accuracy fell | split by domain (a router adds a model call per request) |
Per-role allow-list at orchestration; drafting ≠ sending
Skills load in stages: name + description always, SKILL.md when triggered, files when needed
Large or changing data → load just in time with tools; small static → up front
Observability
Record model + version on each turn; one correlation ID across agents and tools; trace tool calls and decisions
Agent update → shift traffic gradually, keep the old version for runs in progress
Failure went unnoticed → add the signal that would have shown it: per-step traces, tool error rates, sampled grading of outputs
Production reliability
| Trace shows | Control | Not |
|---|---|---|
| Bursts of 429s | back off with jitter, honour retry-after, queue | retry at once |
| Duplicate payments after client timeouts | idempotency key: the tool returns the first result | longer timeout, fewer retries, batch, prompt rule |
| Provider or model unavailable | fallback routing | retry forever |
D3 Retrieval
| Paraphrased queries | embeddings |
| Exact IDs and codes | BM25 |
| Filter or aggregate | SQL |
| Both kinds of query | hybrid, fused; measure recall@k |
| Live or varied sources, latency allows several calls | agentic search with tools |
| Retrieval finds nothing good | fallback: say so or widen the search · not answer anyway |
| Chunks lose context | Contextual Retrieval: Claude writes each chunk's context, prepended before embedding and BM25 |
Chunking: long documents by section/clause; short records one per chunk; code by function
Which layer fails? (gold-passage test)
On failed eval questions labelled with their answering passage:
1. Was that passage among the retrieved chunks? No → retrieval
2. Rerun with the gold passage in the prompt. Now right → retrieval · still wrong → prompt or model
Not: bigger model, error-type labels, reruns (they don't split the layers)
Skip RAG? Only if all hold
the knowledge base fits (under ~200k tokens) → all in the prompt + cache
every user may see all of it (else retrieval with access checks)
room stays for the conversation and output
latency, cost and evals still hold
Cost and latency
| Symptom | Do |
|---|---|
| Chat feels slow | stream |
| First token slow, long shared prefix | prompt caching |
| Total time too long | shorter output, fewer passages, smaller model where evals pass |
| Big system prompt + big retrieval | cache the prompt, trim retrieval · not an untested smaller model |
| Cut cost and latency | caching + easy queries to a small model |
| Chargeback per department, one invoice | workspace per department, new keys scoped to it, cost report by workspace |
| Non-urgent bulk job | Batch API: 50% off, results within 24 h |
| Reranking, higher top-k, thinking | only where evals show a gain within the SLA |
Justify a config: accuracy + p95 + cost on the same eval set
D4 Evaluation
| Regression | cases it already passes, run on every change; a drop = breakage |
| Capability | tasks it still fails; starts low, shows whether a change helps |
| Capability set nearly all pass | keep it as regression + build a new set from current failures (not stricter grading of old tasks) |
| Adversarial | safety under attack: injection, bypass |
| Integration | all components working together |
| Smoke / Unit | it starts / one component |
Failure reached production → which dimension wasn't measured: accuracy, groundedness, latency, cost, safety, security → add that metric
From the business process: the eval matches the decision (model change, prompt change, release gate), success = the business outcome, cases match live traffic
Compare two configurations: several runs per case; a gap smaller than run-to-run spread is noise
Start with 20–50 real failure cases; test should-do and should-not-do
Graders: code first, LLM judge calibrated to humans, humans for the gold set
Score every version on the same set; expert corrections become new cases
pass@k = 1 success in k tries · pass^k = all k succeed (reliability)
Grade outcomes, not paths; read transcripts
LLM judge disagrees with humans
| Prefers the first answer shown | position bias → swap or randomize order |
| Prefers the longer answer | verbosity bias → rubric that scores content, not length |
| Prefers its own model's answers | self-preference → a different judge model, check vs humans |
| Scores shift over time | judge drift → pin the judge version, recalibrate on the human set |
Live tests
| Situation | Choose | Not |
|---|---|---|
| Metric counted per conversation (bookings) | whole conversation or user in one arm | per-request split: mixes both variants in one conversation, confounding the comparison; a longer run doesn't fix it |
| Prompt rewrite + new reranker | separate arms | one bundled arm |
| Significant gain, pre-set p95 guardrail breached | don't ship; break traces down by stage | ship on the gain |
| End-to-end p95 too high | find the slow stage | streaming (first token only) |
D4 Metrics and debugging
| PHI shown to wrong role | RBAC enforcement rate on a red-team set |
| Cost ceiling | per-query token cost |
| Drift after upgrade | fixed adversarial set scored per version |
| Eval set from one region | add the missing groups, rescore |
| Bad JSON after maintenance | diff config vs last good + replay, read raw output |
| Contradicts sources after a model change | test the old model + check grounding instructions |
| Wrong after a document refresh, model unchanged | check re-indexing, stale or mismatched chunks |
Monitoring order: define → instrument (OTel) → tune alerts → dashboards → runbooks
Where's the spend? cache hit rate, tokens per stage, then the fix that keeps the quality floor
Model version migration
| Regressions, retirement date far off | stay pinned, re-tune prompts, re-run evals |
| Passes the evals | re-baseline the evals on it, migrate |
| Retirement date close, regressions open | re-tune prompts now: a pinned version stops working when it retires |
D5 Governance & safety
| User claims admin rights | treat as untrusted + override classifier + permissions text can't raise + log it |
| Instructions inside retrieved docs | treat as untrusted + input classifier + output validation |
| Data exfiltration | outbound allow-list + destination limits + per-call review |
| Unsupported claims | answer only from sources + citations + verify step |
| Production database | read-only credential + read-only tools + human approves writes |
| Tool results, MCP responses, third-party Skills | untrusted content too: never instructions |
| Guardrail blocks the legitimate use | narrow it to the misuse path |
Rank risks by exposure: attack surface, failure modes, token and quota exhaustion, dependency and supply chain
Where approval gates go
Gate before irreversible or high-stakes actions only (an immediate charge); let reads, reversible audited updates and constrained sends run
Not: gate every tool call (requests wait hours) · review the log afterwards (can't undo a charge) · gate the plan only · the model's own confidence
Autonomy and review
Delegation: set autonomy by type of risk (fraud, identity, disputes, repeats at scale), impact and reversibility. The amount counts toward impact, never decides alone. Define the decision and metric first
Discernment: same approval rates ≠ same error rates; agreeing with humans can copy their bias; high acceptance + frequent overrides = missing criteria
Diligence: verify AI output; lines changed ≠ risk; one fake citation → sample to measure frequency + check grounding controls
Oversight
Escalate on: low confidence, high-impact category, classifier flag, user asks
Too many to review → all low-confidence and high-impact + random sample of the rest
| Situation | Choose | Not |
|---|---|---|
| Human approves a write | screen shows tool name, every tool_use argument, harness-run read-only count of rows affected | Claude's summary ("3 records" while the call hits 1,400), a second reviewer of it |
| Official reason for a decline | recorded decision factors + documented rubric | returned thinking: a summary that may omit what drove it; human review doesn't fix this |
Skill holds content; the app checks authorization and writes the audit log
Tell users it's AI and give a path to a human
Risks and fairness
Agents: errors compound → sandbox, stop conditions · output varies → judge on repeated runs
No fine-tuning ≠ no bias (pretraining) → measure outcome gaps across groups: error rates, calibration, intersections
Find the source first: data (skewed sample) → fix the data · prompt framing → neutral prompt · eval design (one group in the set) → fix the set
A human is accountable for high-impact decisions; no unsupported generalizations about people
D5 Compliance controls
Match the control to the obligation: residency → deployment surface · retention → ZDR settings · personal data → PII detection, redaction · evidence → audit logs · tenants → isolation
HIPAA: BAA + ZDR or a HIPAA-ready org (on the API not both) + audit logs, RBAC · eligible features only (others return 400), never training · compliance is shared
GDPR: DPA + retention settings + redact unneeded data + data-subject rights process
FedRAMP: Claude through a FedRAMP-authorized cloud (e.g. Bedrock in AWS GovCloud); the cloud holds the authorization, not the model
Files API
Scope: the whole workspace, not one end user → keep file IDs server-side; workspace per tenant
Retention: until deleted or its expiry (1 h–90 days, set at upload, can't change)
ZDR: not eligible
Deletion: expiry isn't instant erasure (brief safety-review hold) → expiry inside your retention cap, delete when done
D6 Stakeholders & lifecycle
| Security reviewer | threat model, control mappings, residual-risk criteria, audit trail |
| Build team | component roles, contracts, sequence diagrams, config defaults, runbooks |
| Execs + engineers | decision, outcomes, trade-offs, then technical rationale |
| Steering committee | decision first, a section per stakeholder, details in appendix |
| Vague request | discovery workshops: constraints, written success criteria, failure thresholds |
| Latency complaints | show measured p50/p95 vs SLA; if impossible, revise the SLA together |
| New scope mid-project | offer defer / cut something / extend; stakeholder chooses |
| Back to design? | only if component roles or contracts must change |
| Next iteration | telemetry + sampled reviews + feedback → biggest change, tested on the same eval set |
NFR = how well, with metric + threshold + conditions: "p95 < 800 ms at expected load"
SLA = metric + threshold + time window + breach consequence
Unsupportable commitments: "100% accurate", "always the same answer", a latency the design can't reach → clarify the requirement or change the architecture
ADR = context, decision, alternatives + criteria, consequences, owner, review trigger · states the trade-off and residual risk, no promises about model behaviour
Handoff: contracts, config schemas, input/output shapes, decision log, eval set, runbooks, on-call playbook, known limits, assumptions and dependencies
Runbook: alerts with triage, escalation, rollback, dashboards and logs
D7 Dev tooling (Claude Code)
Precedence, highest wins: Managed > command line > Local > Project > User; rules checked deny → ask → allow; a deny in any scope wins
| Managed | org security nobody can override |
| Local | .claude/settings.local.json, just you, this repo |
| Project | .claude/settings.json + .mcp.json, committed for the team |
| User | ~/.claude/settings.json: theme, language, all repos |
| Must always happen (format on edit, block paths) | hook; CLAUDE.md is only advice |
| Repeated conventions | CLAUDE.md (repo for team, ~/.claude/CLAUDE.md personal) |
| Secrets | environment variables |
| Recurring specialist task | subagent |
| Shared commands | .claude/commands/ or .claude/skills/ |
| Unrestricted Bash | specific allowed commands + deny rules + sandbox |
| MCP server missing | claude mcp list, then restart; in session /mcp |
| CI | headless claude -p or GitHub Actions |
| Big change | plan mode, human reviews the plan |
| Parallel work | git worktrees |
| Claude ignores CLAUDE.md in one setup | first /context: is it under Memory files? · not CAPITALS, bigger model |
Permission modes: default, acceptEdits, plan, auto, dontAsk, bypassPermissions · unattended or CI → no bypassPermissions without a sandbox
Roll a workflow out to the organization
| Proven on one team | plugin: skills, hooks, subagents, commands, MCP config, from a marketplace |
| Must hold for every team | managed settings (central) |
| Varies by team | project settings |
PR review: Claude comments, a human approves and owns the code · IDE beats a chat bot (no context switching)
Answer rules
Hard requirements first: drop options that fail an SLA, compliance, residency or security rule; then compare cost and quality
Simplest design that meets the requirements
Diagnose before changing: diff vs last good, replay, one variable at a time
The metric tests the stated requirement, against a baseline
Caching first for cost: it can't change accuracy. Smaller model or less context can → evals first
| Situation | Choose | Not |
|---|---|---|
| Gap is a pattern: format, style, how two rules interact, an in-house labelling convention | few-shot or worked examples (3–5, varied) | bigger model |
| Gap is missing facts, a retrieval miss or arithmetic | fix retrieval or data; math in code | more examples |
| Must never say something (regulated advice) | refusal rule + output classifier | rule alone |
| Who sees data or calls tools | controls outside the model: access checks before retrieval, tool allow-list, code checks | prompt rule, Skill, output filter |
| Choosing a model | smallest that passes evals within the SLA | newest or biggest |
| Need a guardrail | a check that blocks before the action | SIEM logging (detects only) |
Also wrong: change temperature · retrieve everything · random sampling as retrieval · disable controls, reinstall, escalate to execs · skip review because the change is small · train everyone before a pilot
One constraint changes the answer high-effort feature
| Symptom | Do | Not |
|---|---|---|
Hard inputs come back empty or cut off (stop_reason: max_tokens) | raise max_tokens: thinking and answer share the cap | lower effort, bigger model, "answer briefly" |
| Passes the quality bar but too slow; traces mostly thinking | lower effort on the same model, re-check on evals | smaller model that fails the bar |
| Complete answers, but wrong | find the failing layer (gold-passage test) | raise max_tokens: nothing was cut off |
"Which 2 steps come BEFORE…" pick the define/inventory steps
| Before… | Step 1 | Step 2 |
|---|---|---|
| testing a model on samples | set quality bar, latency, volume | pick a candidate model |
| adding monitoring | define metrics and traffic slices | define SLOs and error budgets |
| running an eval | define metrics and slices | build and label the dataset |
| an A/B test | hypothesis and primary metric | MDE and sample size |
| rating threats | list assets and sensitivity | list attackers and attack paths |
| mapping to regulation clauses | does it apply (data, jurisdiction, audience) | list the vendor's compliance tools |
| a HITL pilot | find decisions needing review (impact, reversibility) | sampling plan and escalation criteria |
| writing an architecture guide | audience and its questions | outline the sections |
| a Claude Code settings pilot | map workflows, boundaries, managed vs project | write the project baseline (MCP, permissions, subagents) |
| a Claude Code workflow pilot | where AI helps vs where humans decide | configure MCP, permissions, subagents, CLAUDE.md |
D1 Architecture patterns
| Cited answers, auditable, cheap | RAG over approved sources |
| Fixed known steps | workflow (predictable cost) |
| Dependent steps | prompt chain + code check after the risky step |
| Distinct input categories | routing to a prompt + tools per category |
| Independent checks, all must run | parallel calls, merge in code; latency = slowest call |
| Subtasks unknown, too big for one context | orchestrator-workers |
| Written criteria, feedback helps | evaluator-optimizer, capped rounds |
| Tightly coupled, fits one context | single agent |
| Valuable, parallel, breadth-first work | multi-agent (≈15× chat tokens) |
| Most coding | one agent |
Brief each subagent: objective, output format, tools/sources, boundaries. It returns condensed results or file references
D1 Value and placement
| Efficiency | same team does more per person or hour (3× POs per analyst) |
| Productivity | business output rises (time saved but billable output flat → not realized) |
| Transformation | roles or workflows redesigned |
| Solution cost | API, integration, retry spend |
| Performance SLA | latency vs committed target |
Correction time = efficiency loss
Cost claim → cost per resolved ticket (model + retries + human review) vs baseline
Before model: OCR, PII redaction → model: classify, extract → after: schema check, save to system of record
Claude fits: drafting, clause extraction, ticket routing with reasons. Doesn't: <50 ms fraud scoring, replacing a vector index, tax math
First release: narrowest task at the measured bottleneck, cited, human decides, metric + baseline set before building
Managed agents: deciding factor = the security team's data boundary
D2 Models & prompting
| High volume, low latency, fixed labels | Haiku |
| Evals show a gap on some inputs | escalate only those (tiered routing) |
| New model version | same eval gates; newest is no reason |
| Closed label set, definitions in the prompt | zero-shot to start, measure; add examples where evals show a gap |
| Exact output format | few-shot with exact field names |
| Complex reasoning | chain of thought |
| Comparing options | neutral, with criteria |
| Contradictory instructions | keep one, add an "insufficient evidence" fallback |
| Long-running agent near the limit | compaction, memory files, or subagents with fresh context |
| One procedure in many workflows | one Skill owned by its team, referenced everywhere |
Prompts and context
System prompt = role + stable rules; user turn = task + data in XML tags
Templates with variables → versioned, testable, cacheable
Long docs at the top, question at the end; ask for relevant quotes first, then the answer
Prompt caching
Order: tools → system → messages, stable content first; up to 4 breakpoints; a change invalidates everything after it
TTL 5 min (resets on each hit) or 1 h · write 1.25× / 2× input price · read 0.1× or less, by model
Pays off only if reused within the TTL; scoped to your org/workspace
D3 Integration
| Direct API | one stateless low-latency call to a stable API |
| MCP | reusable across several AI clients; live systems |
| Skill | fixed procedure + files; no network on the API; install on each surface |
| A2A handoff | stateful, long-running |
Identity and tools
| Shared API key | per-user scoped OAuth |
| Caller not logged | record the user on every tool call |
| Credentials in the prompt | server-side secret store |
| RBAC applied at render | enforce it at retrieval |
| Role never needs a tool | remove it (logging or confirmation isn't least privilege) |
| 60 tools, 50k tokens before you type | Tool Search, load on demand |
| Agent grew 6 → 34 tools, accuracy fell | split by domain (a router adds a model call per request) |
Per-role allow-list at orchestration; drafting ≠ sending
Skills load in stages: name + description always, SKILL.md when triggered, files when needed
Large or changing data → load just in time with tools; small static → up front
Observability
Record model + version on each turn; one correlation ID across agents and tools; trace tool calls and decisions
Agent update → shift traffic gradually, keep the old version for runs in progress
D3 Retrieval
| Paraphrased queries | embeddings |
| Exact IDs and codes | BM25 |
| Filter or aggregate | SQL |
| Both kinds of query | hybrid, fused; measure recall@k |
| Chunks lose context | Contextual Retrieval: Claude writes each chunk's context, prepended before embedding and BM25 |
Chunking: long documents by section/clause; short records one per chunk; code by function
Which layer fails? (gold-passage test)
On failed eval questions labelled with their answering passage:
1. Was that passage among the retrieved chunks? No → retrieval
2. Rerun with the gold passage in the prompt. Now right → retrieval · still wrong → prompt or model
Not: bigger model, error-type labels, reruns (they don't split the layers)
Skip RAG? Only if all hold
the knowledge base fits (under ~200k tokens) → all in the prompt + cache
every user may see all of it (else retrieval with access checks)
room stays for the conversation and output
latency, cost and evals still hold
Cost and latency
| Symptom | Do |
|---|---|
| Chat feels slow | stream |
| First token slow, long shared prefix | prompt caching |
| Total time too long | shorter output, fewer passages, smaller model where evals pass |
| Big system prompt + big retrieval | cache the prompt, trim retrieval · not an untested smaller model |
| Cut cost and latency | caching + easy queries to a small model |
| Chargeback per department, one invoice | workspace per department, new keys scoped to it, cost report by workspace |
| Non-urgent bulk job | Batch API: 50% off, results within 24 h |
| Reranking, higher top-k, thinking | only where evals show a gain within the SLA |
Justify a config: accuracy + p95 + cost on the same eval set
D4 Evaluation
| Regression | cases it already passes, run on every change; a drop = breakage |
| Capability | tasks it still fails; starts low, shows whether a change helps |
| Capability set nearly all pass | keep it as regression + build a new set from current failures (not stricter grading of old tasks) |
| Adversarial | safety under attack: injection, bypass |
| Integration | all components working together |
| Smoke / Unit | it starts / one component |
Start with 20–50 real failure cases; test should-do and should-not-do
Graders: code first, LLM judge calibrated to humans, humans for the gold set
Score every version on the same set; expert corrections become new cases
pass@k = 1 success in k tries · pass^k = all k succeed (reliability)
Grade outcomes, not paths; read transcripts
Live tests
| Situation | Choose | Not |
|---|---|---|
| Metric counted per conversation (bookings) | whole conversation or user in one arm | per-request split: mixes both variants in one conversation, confounding the comparison; a longer run doesn't fix it |
| Prompt rewrite + new reranker | separate arms | one bundled arm |
| Significant gain, pre-set p95 guardrail breached | don't ship; break traces down by stage | ship on the gain |
| End-to-end p95 too high | find the slow stage | streaming (first token only) |
D4 Metrics and debugging
| PHI shown to wrong role | RBAC enforcement rate on a red-team set |
| Cost ceiling | per-query token cost |
| Drift after upgrade | fixed adversarial set scored per version |
| Eval set from one region | add the missing groups, rescore |
| Bad JSON after maintenance | diff config vs last good + replay, read raw output |
| Contradicts sources after a model change | test the old model + check grounding instructions |
| Wrong after a document refresh, model unchanged | check re-indexing, stale or mismatched chunks |
Monitoring order: define → instrument (OTel) → tune alerts → dashboards → runbooks
D5 Governance & safety
| User claims admin rights | treat as untrusted + override classifier + permissions text can't raise + log it |
| Instructions inside retrieved docs | treat as untrusted + input classifier + output validation |
| Data exfiltration | outbound allow-list + destination limits + per-call review |
| Unsupported claims | answer only from sources + citations + verify step |
| Production database | read-only credential + read-only tools + human approves writes |
AI fluency competencies
Delegation: set autonomy by type of risk (fraud, identity, disputes, repeats at scale), impact and reversibility. The amount counts toward impact, never decides alone. Define the decision and metric first
Discernment: same approval rates ≠ same error rates; agreeing with humans can copy their bias; high acceptance + frequent overrides = missing criteria
Diligence: verify AI output; lines changed ≠ risk; one fake citation → sample to measure frequency + check grounding controls
Oversight
Escalate on: low confidence, high-impact category, classifier flag, user asks
Too many to review → all low-confidence and high-impact + random sample of the rest
| Situation | Choose | Not |
|---|---|---|
| Human approves a write | screen shows tool name, every tool_use argument, harness-run read-only count of rows affected | Claude's summary ("3 records" while the call hits 1,400), a second reviewer of it |
| Official reason for a decline | recorded decision factors + documented rubric | returned thinking: a summary that may omit what drove it; human review doesn't fix this |
Skill holds content; the app checks authorization and writes the audit log
Tell users it's AI and give a path to a human
Risks and fairness
Agents: errors compound → sandbox, stop conditions · output varies → judge on repeated runs
No fine-tuning ≠ no bias (pretraining) → measure outcome gaps across groups: error rates, calibration, intersections
A human is accountable for high-impact decisions; no unsupported generalizations about people
D5 Compliance facts
HIPAA: BAA + ZDR or a HIPAA-ready org (on the API not both) + audit logs, RBAC · eligible features only (others return 400), never training · compliance is shared
GDPR: DPA + retention settings + redact unneeded data + data-subject rights process
FedRAMP: Claude through a FedRAMP-authorized cloud (e.g. Bedrock in AWS GovCloud); the cloud holds the authorization, not the model
Files API
Scope: the whole workspace, not one end user → keep file IDs server-side; workspace per tenant
Retention: until deleted or its expiry (1 h–90 days, set at upload, can't change)
ZDR: not eligible
Deletion: expiry isn't instant erasure (brief safety-review hold) → expiry inside your retention cap, delete when done
D6 Stakeholders & lifecycle
| Security reviewer | threat model, control mappings, residual-risk criteria, audit trail |
| Build team | component roles, contracts, sequence diagrams, config defaults, runbooks |
| Execs + engineers | decision, outcomes, trade-offs, then technical rationale |
| Steering committee | decision first, a section per stakeholder, details in appendix |
| Vague request | discovery workshops: constraints, written success criteria, failure thresholds |
| Latency complaints | show measured p50/p95 vs SLA; if impossible, revise the SLA together |
| New scope mid-project | offer defer / cut something / extend; stakeholder chooses |
| Back to design? | only if component roles or contracts must change |
| Next iteration | telemetry + sampled reviews + feedback → biggest change, tested on the same eval set |
NFR = how well, with metric + threshold + conditions: "p95 < 800 ms at expected load"
SLA = metric + threshold + time window + breach consequence
ADR = context, decision, alternatives + criteria, consequences, owner, review trigger
Handoff: contracts, config schemas, input/output shapes, decision log, eval set, runbooks, on-call playbook, known limits
Runbook: alerts with triage, escalation, rollback, dashboards and logs
D7 Dev tooling (Claude Code)
Precedence, highest wins: Managed > command line > Local > Project > User; rules checked deny → ask → allow; a deny in any scope wins
| Managed | org security nobody can override |
| Local | .claude/settings.local.json, just you, this repo |
| Project | .claude/settings.json + .mcp.json, committed for the team |
| User | ~/.claude/settings.json: theme, language, all repos |
| Must always happen (format on edit, block paths) | hook; CLAUDE.md is only advice |
| Repeated conventions | CLAUDE.md (repo for team, ~/.claude/CLAUDE.md personal) |
| Secrets | environment variables |
| Recurring specialist task | subagent |
| Shared commands | .claude/commands/ or .claude/skills/ |
| Unrestricted Bash | specific allowed commands + deny rules + sandbox |
| MCP server missing | claude mcp list, then restart; in session /mcp |
| CI | headless claude -p or GitHub Actions |
| Big change | plan mode, human reviews the plan |
| Parallel work | git worktrees |
| Claude ignores CLAUDE.md in one setup | first /context: is it under Memory files? · not CAPITALS, bigger model |
PR review: Claude comments, a human approves · IDE beats a chat bot (no context switching)
Exam facts from the official CCAR-P 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.