---
title: "CCAR-P Cheat Sheet (Claude Architect Professional), Updated for 7 Dec 2026"
url: "https://certmadeeasy.com/claude-certification/certified-architect-professional/cheat-sheet"
description: "CCAR-P cheat sheet, updated for exams from 7 December 2026: the rule behind each answer and the trap behind the wrong ones."
---

# Claude Certified Architect – Professional (CCAR-P) cheat sheet

The CCAR-P exam guide on one page: the rule that picks each answer, and the trap behind the wrong ones.

![](https://certmadeeasy.com/claude-certification/authors/craig-li.jpg)

By [Craig Li, Ph.D](https://www.linkedin.com/in/guanyi-li-91662016)

Claude Certified Architect – Professional  Updated November 2026

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.

[Start with 20 free questions](https://certmadeeasy.com/try/set-anthropic-ccar-p) [CCAR-P Exam guide](https://certmadeeasy.com/claude-certification/certified-architect-professional) [CCAR-P Free questions PDF](https://certmadeeasy.com/claude-certification/certified-architect-professional/dumps)

**On this page**

-   [Answer rules](#s1)
-   [Constraint flips](#s2)
-   [Steps before](#s3)
-   [D1 Patterns](#s4)
-   [D1 Value & placement](#s5)
-   [D2 Models](#s6)
-   [D3 Integration](#s8)
-   [D3 Retrieval](#s9)
-   [Cost and latency](#s12)
-   [D4 Evaluation](#s13)
-   [D4 Debugging](#s15)
-   [D5 Governance](#s16)
-   [D5 Compliance facts](#s18)
-   [D6 Stakeholders](#s20)
-   [D7 Claude Code](#s21)

## 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 |

Wrong picks are later steps: run, tune, dashboards, docs, sign-off, rollout

## D1 Architecture patterns

<table><tbody><tr><td>Cited answers, auditable, cheap</td><td>RAG over approved sources</td></tr><tr><td>Fixed known steps</td><td>workflow (predictable cost)</td></tr><tr><td>Dependent steps</td><td>prompt chain + code check after the risky step</td></tr><tr><td>Distinct input categories</td><td>routing to a prompt + tools per category</td></tr><tr><td>Independent checks, all must run</td><td>parallel calls, merge in code; latency = slowest call</td></tr><tr><td>Subtasks unknown, too big for one context</td><td>orchestrator-workers</td></tr><tr><td>Written criteria, feedback helps</td><td>evaluator-optimizer, capped rounds</td></tr><tr><td>Tightly coupled, fits one context</td><td>single agent</td></tr><tr><td>Valuable, parallel, breadth-first work</td><td>multi-agent (≈15× chat tokens)</td></tr><tr><td>Most coding</td><td>one agent</td></tr><tr><td>Same procedure reused across teams, governed centrally</td><td>Skills-based: one Skill, its owner, referenced everywhere</td></tr></tbody></table>

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?

<table><tbody><tr><td>Reversible, low stakes, checkable</td><td>Claude</td></tr><tr><td>Claude drafts, a person decides</td><td>collaborative</td></tr><tr><td>Irreversible, high stakes, someone accountable</td><td>human</td></tr></tbody></table>

### 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

<table><tbody><tr><td>Efficiency</td><td>same team does more per person or hour (3× POs per analyst)</td></tr><tr><td>Productivity</td><td>business output rises (time saved but billable output flat → not realized)</td></tr><tr><td>Transformation</td><td>roles or workflows redesigned</td></tr><tr><td>Solution cost</td><td>API, integration, retry spend</td></tr><tr><td>Performance SLA</td><td>latency vs committed target</td></tr></tbody></table>

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

<table><tbody><tr><td>High volume, low latency, fixed labels</td><td>Haiku</td></tr><tr><td>Evals show a gap on some inputs</td><td>escalate only those (tiered routing)</td></tr><tr><td>New model version</td><td>same eval gates; newest is no reason</td></tr><tr><td>Closed label set, definitions in the prompt</td><td>zero-shot to start, measure; add examples where evals show a gap</td></tr><tr><td>Exact output format</td><td>few-shot with exact field names</td></tr><tr><td>Complex reasoning</td><td>native thinking where the model has it, prompted chain of thought otherwise; neither for simple lookups (token cost)</td></tr><tr><td>Downstream code reads it</td><td>structured output</td></tr><tr><td>Comparing options</td><td>neutral, with criteria</td></tr><tr><td>Contradictory instructions</td><td>keep one, add an "insufficient evidence" fallback</td></tr><tr><td>Degraded, inconsistent output</td><td>find what the system prompt leaves open; constrain scope, format and behaviour, keep legitimate variation <span class="not">· not</span> <span class="x">rules for every case</span></td></tr><tr><td>Long-running agent near the limit</td><td>compaction, memory files, or subagents with fresh context</td></tr><tr><td>Old tool results fill the window</td><td>context editing (clears them)</td></tr><tr><td>Facts must survive across sessions</td><td>memory tool</td></tr><tr><td>One procedure in many workflows</td><td>one Skill owned by its team, referenced everywhere</td></tr></tbody></table>

### 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

<table><tbody><tr><td>Direct API</td><td>one stateless low-latency call to a stable API</td></tr><tr><td>MCP</td><td>reusable across several AI clients; live systems</td></tr><tr><td>Skill</td><td>fixed procedure + files; no network on the API; install on each surface</td></tr><tr><td>A2A handoff</td><td>stateful, long-running</td></tr></tbody></table>

### Identity and tools

<table><tbody><tr><td>Shared API key</td><td>per-user scoped OAuth</td></tr><tr><td>Caller not logged</td><td>record the user on every tool call</td></tr><tr><td>Credentials in the prompt</td><td>server-side secret store</td></tr><tr><td>RBAC applied at render</td><td>enforce it at retrieval</td></tr><tr><td>Role never needs a tool</td><td>remove it (logging or confirmation isn't least privilege)</td></tr><tr><td>60 tools, 50k tokens before you type</td><td>Tool Search, load on demand</td></tr><tr><td>Agent grew 6 → 34 tools, accuracy fell</td><td>split by domain (a router adds a model call per request)</td></tr></tbody></table>

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

<table><tbody><tr><td>Paraphrased queries</td><td>embeddings</td></tr><tr><td>Exact IDs and codes</td><td>BM25</td></tr><tr><td>Filter or aggregate</td><td>SQL</td></tr><tr><td>Both kinds of query</td><td>hybrid, fused; measure recall@k</td></tr><tr><td>Live or varied sources, latency allows several calls</td><td>agentic search with tools</td></tr><tr><td>Retrieval finds nothing good</td><td>fallback: say so or widen the search <span class="not">· not</span> <span class="x">answer anyway</span></td></tr><tr><td>Chunks lose context</td><td>Contextual Retrieval: Claude writes each chunk's context, prepended before embedding and BM25</td></tr></tbody></table>

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

<table><tbody><tr><td>Regression</td><td>cases it already passes, run on every change; a drop = breakage</td></tr><tr><td>Capability</td><td>tasks it still fails; starts low, shows whether a change helps</td></tr><tr><td>Capability set nearly all pass</td><td>keep it as regression + build a new set from current failures (not stricter grading of old tasks)</td></tr><tr><td>Adversarial</td><td>safety under attack: injection, bypass</td></tr><tr><td>Integration</td><td>all components working together</td></tr><tr><td>Smoke / Unit</td><td>it starts / one component</td></tr></tbody></table>

**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

<table><tbody><tr><td>Prefers the first answer shown</td><td>position bias → swap or randomize order</td></tr><tr><td>Prefers the longer answer</td><td>verbosity bias → rubric that scores content, not length</td></tr><tr><td>Prefers its own model's answers</td><td>self-preference → a different judge model, check vs humans</td></tr><tr><td>Scores shift over time</td><td>judge drift → pin the judge version, recalibrate on the human set</td></tr></tbody></table>

### 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

<table><tbody><tr><td>PHI shown to wrong role</td><td>RBAC enforcement rate on a red-team set</td></tr><tr><td>Cost ceiling</td><td>per-query token cost</td></tr><tr><td>Drift after upgrade</td><td>fixed adversarial set scored per version</td></tr><tr><td>Eval set from one region</td><td>add the missing groups, rescore</td></tr><tr><td>Bad JSON after maintenance</td><td>diff config vs last good + replay, read raw output</td></tr><tr><td>Contradicts sources after a model change</td><td>test the old model + check grounding instructions</td></tr><tr><td>Wrong after a document refresh, model unchanged</td><td>check re-indexing, stale or mismatched chunks</td></tr></tbody></table>

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

<table><tbody><tr><td>Regressions, retirement date far off</td><td>stay pinned, re-tune prompts, re-run evals</td></tr><tr><td>Passes the evals</td><td>re-baseline the evals on it, migrate</td></tr><tr><td>Retirement date close, regressions open</td><td>re-tune prompts now: a pinned version stops working when it retires</td></tr></tbody></table>

## D5 Governance & safety

<table><tbody><tr><td>User claims admin rights</td><td>treat as untrusted + override classifier + permissions text can't raise + log it</td></tr><tr><td>Instructions inside retrieved docs</td><td>treat as untrusted + input classifier + output validation</td></tr><tr><td>Data exfiltration</td><td>outbound allow-list + destination limits + per-call review</td></tr><tr><td>Unsupported claims</td><td>answer only from sources + citations + verify step</td></tr><tr><td>Production database</td><td>read-only credential + read-only tools + human approves writes</td></tr><tr><td>Tool results, MCP responses, third-party Skills</td><td>untrusted content too: never instructions</td></tr><tr><td>Guardrail blocks the legitimate use</td><td>narrow it to the misuse path</td></tr></tbody></table>

**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

<table><tbody><tr><td>Security reviewer</td><td>threat model, control mappings, residual-risk criteria, audit trail</td></tr><tr><td>Build team</td><td>component roles, contracts, sequence diagrams, config defaults, runbooks</td></tr><tr><td>Execs + engineers</td><td>decision, outcomes, trade-offs, then technical rationale</td></tr><tr><td>Steering committee</td><td>decision first, a section per stakeholder, details in appendix</td></tr><tr><td>Vague request</td><td>discovery workshops: constraints, written success criteria, failure thresholds</td></tr><tr><td>Latency complaints</td><td>show measured p50/p95 vs SLA; if impossible, revise the SLA together</td></tr><tr><td>New scope mid-project</td><td>offer defer / cut something / extend; stakeholder chooses</td></tr><tr><td>Back to design?</td><td>only if component roles or contracts must change</td></tr><tr><td>Next iteration</td><td>telemetry + sampled reviews + feedback → biggest change, tested on the same eval set</td></tr></tbody></table>

**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

<table><tbody><tr><td>Managed</td><td>org security nobody can override</td></tr><tr><td>Local</td><td><code>.claude/settings.local.json</code>, just you, this repo</td></tr><tr><td>Project</td><td><code>.claude/settings.json</code> + <code>.mcp.json</code>, committed for the team</td></tr><tr><td>User</td><td><code>~/.claude/settings.json</code>: theme, language, all repos</td></tr></tbody></table>

<table><tbody><tr><td>Must always happen (format on edit, block paths)</td><td>hook; CLAUDE.md is only advice</td></tr><tr><td>Repeated conventions</td><td>CLAUDE.md (repo for team, <code>~/.claude/CLAUDE.md</code> personal)</td></tr><tr><td>Secrets</td><td>environment variables</td></tr><tr><td>Recurring specialist task</td><td>subagent</td></tr><tr><td>Shared commands</td><td><code>.claude/commands/</code> or <code>.claude/skills/</code></td></tr><tr><td>Unrestricted Bash</td><td>specific allowed commands + deny rules + sandbox</td></tr><tr><td>MCP server missing</td><td><code>claude mcp list</code>, then restart; in session <code>/mcp</code></td></tr><tr><td>CI</td><td>headless <code>claude -p</code> or GitHub Actions</td></tr><tr><td>Big change</td><td>plan mode, human reviews the plan</td></tr><tr><td>Parallel work</td><td>git worktrees</td></tr><tr><td>Claude ignores CLAUDE.md in one setup</td><td>first <code>/context</code>: is it under Memory files? <span class="not">· not</span> <span class="x">CAPITALS, bigger model</span></td></tr></tbody></table>

Permission modes: `default`, `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions` · unattended or CI → no `bypassPermissions` without a sandbox

### Roll a workflow out to the organization

<table><tbody><tr><td>Proven on one team</td><td>plugin: skills, hooks, subagents, commands, MCP config, from a marketplace</td></tr><tr><td>Must hold for every team</td><td>managed settings (central)</td></tr><tr><td>Varies by team</td><td>project settings</td></tr></tbody></table>

PR review: Claude comments, a human approves and owns the code · IDE beats a chat bot (no context switching)

**On this page**

-   [Answer rules](#t6-s1)
-   [Constraint flips](#t6-s2)
-   [Steps before](#t6-s3)
-   [D1 Patterns](#t6-s4)
-   [D1 Value & placement](#t6-s5)
-   [D2 Models](#t6-s6)
-   [D3 Integration](#t6-s8)
-   [D3 Retrieval](#t6-s9)
-   [Cost and latency](#t6-s12)
-   [D4 Evaluation](#t6-s13)
-   [D4 Debugging](#t6-s15)
-   [D5 Governance](#t6-s16)
-   [D5 Compliance facts](#t6-s18)
-   [D6 Stakeholders](#t6-s20)
-   [D7 Claude Code](#t6-s21)

## 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 |

Wrong picks are later steps: run, tune, dashboards, docs, sign-off, rollout

## D1 Architecture patterns

<table><tbody><tr><td>Cited answers, auditable, cheap</td><td>RAG over approved sources</td></tr><tr><td>Fixed known steps</td><td>workflow (predictable cost)</td></tr><tr><td>Dependent steps</td><td>prompt chain + code check after the risky step</td></tr><tr><td>Distinct input categories</td><td>routing to a prompt + tools per category</td></tr><tr><td>Independent checks, all must run</td><td>parallel calls, merge in code; latency = slowest call</td></tr><tr><td>Subtasks unknown, too big for one context</td><td>orchestrator-workers</td></tr><tr><td>Written criteria, feedback helps</td><td>evaluator-optimizer, capped rounds</td></tr><tr><td>Tightly coupled, fits one context</td><td>single agent</td></tr><tr><td>Valuable, parallel, breadth-first work</td><td>multi-agent (≈15× chat tokens)</td></tr><tr><td>Most coding</td><td>one agent</td></tr></tbody></table>

Brief each subagent: objective, output format, tools/sources, boundaries. It returns condensed results or file references

## D1 Value and placement

<table><tbody><tr><td>Efficiency</td><td>same team does more per person or hour (3× POs per analyst)</td></tr><tr><td>Productivity</td><td>business output rises (time saved but billable output flat → not realized)</td></tr><tr><td>Transformation</td><td>roles or workflows redesigned</td></tr><tr><td>Solution cost</td><td>API, integration, retry spend</td></tr><tr><td>Performance SLA</td><td>latency vs committed target</td></tr></tbody></table>

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

<table><tbody><tr><td>High volume, low latency, fixed labels</td><td>Haiku</td></tr><tr><td>Evals show a gap on some inputs</td><td>escalate only those (tiered routing)</td></tr><tr><td>New model version</td><td>same eval gates; newest is no reason</td></tr><tr><td>Closed label set, definitions in the prompt</td><td>zero-shot to start, measure; add examples where evals show a gap</td></tr><tr><td>Exact output format</td><td>few-shot with exact field names</td></tr><tr><td>Complex reasoning</td><td>chain of thought</td></tr><tr><td>Comparing options</td><td>neutral, with criteria</td></tr><tr><td>Contradictory instructions</td><td>keep one, add an "insufficient evidence" fallback</td></tr><tr><td>Long-running agent near the limit</td><td>compaction, memory files, or subagents with fresh context</td></tr><tr><td>One procedure in many workflows</td><td>one Skill owned by its team, referenced everywhere</td></tr></tbody></table>

### 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

<table><tbody><tr><td>Direct API</td><td>one stateless low-latency call to a stable API</td></tr><tr><td>MCP</td><td>reusable across several AI clients; live systems</td></tr><tr><td>Skill</td><td>fixed procedure + files; no network on the API; install on each surface</td></tr><tr><td>A2A handoff</td><td>stateful, long-running</td></tr></tbody></table>

### Identity and tools

<table><tbody><tr><td>Shared API key</td><td>per-user scoped OAuth</td></tr><tr><td>Caller not logged</td><td>record the user on every tool call</td></tr><tr><td>Credentials in the prompt</td><td>server-side secret store</td></tr><tr><td>RBAC applied at render</td><td>enforce it at retrieval</td></tr><tr><td>Role never needs a tool</td><td>remove it (logging or confirmation isn't least privilege)</td></tr><tr><td>60 tools, 50k tokens before you type</td><td>Tool Search, load on demand</td></tr><tr><td>Agent grew 6 → 34 tools, accuracy fell</td><td>split by domain (a router adds a model call per request)</td></tr></tbody></table>

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

<table><tbody><tr><td>Paraphrased queries</td><td>embeddings</td></tr><tr><td>Exact IDs and codes</td><td>BM25</td></tr><tr><td>Filter or aggregate</td><td>SQL</td></tr><tr><td>Both kinds of query</td><td>hybrid, fused; measure recall@k</td></tr><tr><td>Chunks lose context</td><td>Contextual Retrieval: Claude writes each chunk's context, prepended before embedding and BM25</td></tr></tbody></table>

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

<table><tbody><tr><td>Regression</td><td>cases it already passes, run on every change; a drop = breakage</td></tr><tr><td>Capability</td><td>tasks it still fails; starts low, shows whether a change helps</td></tr><tr><td>Capability set nearly all pass</td><td>keep it as regression + build a new set from current failures (not stricter grading of old tasks)</td></tr><tr><td>Adversarial</td><td>safety under attack: injection, bypass</td></tr><tr><td>Integration</td><td>all components working together</td></tr><tr><td>Smoke / Unit</td><td>it starts / one component</td></tr></tbody></table>

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

<table><tbody><tr><td>PHI shown to wrong role</td><td>RBAC enforcement rate on a red-team set</td></tr><tr><td>Cost ceiling</td><td>per-query token cost</td></tr><tr><td>Drift after upgrade</td><td>fixed adversarial set scored per version</td></tr><tr><td>Eval set from one region</td><td>add the missing groups, rescore</td></tr><tr><td>Bad JSON after maintenance</td><td>diff config vs last good + replay, read raw output</td></tr><tr><td>Contradicts sources after a model change</td><td>test the old model + check grounding instructions</td></tr><tr><td>Wrong after a document refresh, model unchanged</td><td>check re-indexing, stale or mismatched chunks</td></tr></tbody></table>

Monitoring order: define → instrument (OTel) → tune alerts → dashboards → runbooks

## D5 Governance & safety

<table><tbody><tr><td>User claims admin rights</td><td>treat as untrusted + override classifier + permissions text can't raise + log it</td></tr><tr><td>Instructions inside retrieved docs</td><td>treat as untrusted + input classifier + output validation</td></tr><tr><td>Data exfiltration</td><td>outbound allow-list + destination limits + per-call review</td></tr><tr><td>Unsupported claims</td><td>answer only from sources + citations + verify step</td></tr><tr><td>Production database</td><td>read-only credential + read-only tools + human approves writes</td></tr></tbody></table>

### 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

<table><tbody><tr><td>Security reviewer</td><td>threat model, control mappings, residual-risk criteria, audit trail</td></tr><tr><td>Build team</td><td>component roles, contracts, sequence diagrams, config defaults, runbooks</td></tr><tr><td>Execs + engineers</td><td>decision, outcomes, trade-offs, then technical rationale</td></tr><tr><td>Steering committee</td><td>decision first, a section per stakeholder, details in appendix</td></tr><tr><td>Vague request</td><td>discovery workshops: constraints, written success criteria, failure thresholds</td></tr><tr><td>Latency complaints</td><td>show measured p50/p95 vs SLA; if impossible, revise the SLA together</td></tr><tr><td>New scope mid-project</td><td>offer defer / cut something / extend; stakeholder chooses</td></tr><tr><td>Back to design?</td><td>only if component roles or contracts must change</td></tr><tr><td>Next iteration</td><td>telemetry + sampled reviews + feedback → biggest change, tested on the same eval set</td></tr></tbody></table>

**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

<table><tbody><tr><td>Managed</td><td>org security nobody can override</td></tr><tr><td>Local</td><td><code>.claude/settings.local.json</code>, just you, this repo</td></tr><tr><td>Project</td><td><code>.claude/settings.json</code> + <code>.mcp.json</code>, committed for the team</td></tr><tr><td>User</td><td><code>~/.claude/settings.json</code>: theme, language, all repos</td></tr></tbody></table>

<table><tbody><tr><td>Must always happen (format on edit, block paths)</td><td>hook; CLAUDE.md is only advice</td></tr><tr><td>Repeated conventions</td><td>CLAUDE.md (repo for team, <code>~/.claude/CLAUDE.md</code> personal)</td></tr><tr><td>Secrets</td><td>environment variables</td></tr><tr><td>Recurring specialist task</td><td>subagent</td></tr><tr><td>Shared commands</td><td><code>.claude/commands/</code> or <code>.claude/skills/</code></td></tr><tr><td>Unrestricted Bash</td><td>specific allowed commands + deny rules + sandbox</td></tr><tr><td>MCP server missing</td><td><code>claude mcp list</code>, then restart; in session <code>/mcp</code></td></tr><tr><td>CI</td><td>headless <code>claude -p</code> or GitHub Actions</td></tr><tr><td>Big change</td><td>plan mode, human reviews the plan</td></tr><tr><td>Parallel work</td><td>git worktrees</td></tr><tr><td>Claude ignores CLAUDE.md in one setup</td><td>first <code>/context</code>: is it under Memory files? <span class="not">· not</span> <span class="x">CAPITALS, bigger model</span></td></tr></tbody></table>

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.
