Claude Certified Architect - Professional (CCAR-P) Exam Prep
Architecting with Claude: design, models, context, integration, evals, governance and stakeholders. Each post below stands on its own and is free to read, in the order the course teaches it.
Start with step 1: Reading a Business Requirement Like an ArchitectPosts in course order
- Step 1: Reading a Business Requirement Like an Architect: Function, Quality, Constraints and Assumptions
One sentence from an insurer's claims director becomes four buckets (function, quality, constraints, assumptions), two testable targets and five questions back to the business, before any design starts.
- Step 2: From One Claude Call to a System: Input, Processing, Output and the Feedback Loop
A returns desk grows from a single Claude call into four stages: input cleans and rejects, processing makes one call, output checks the shape and the refund limit, and feedback logs every outcome and keeps a human fix as a test.
- Step 3: Stress-Testing an LLM Architecture: Find the Component That Fails First
A support desk meets a burst of 12 tickets and a second tenant with overlapping customer ids. Compare each ceiling with the load, look for the missing check, fix the first failure and look again.
- Step 4: Workflow or Agent: Decide Who Picks the Next Step, Then Let the Constraints Choose the Design
A workflow is code that fixes the steps; an agent is a model that picks them. Run both on two support tickets, then let three constraint sets (strict audit, low error tolerance, open exploration) pick a workflow, a gated hybrid or an agent.
- Step 5: The Delegation Map: Decide What Claude Owns, What People Keep and What They Share
One late-delivery complaint is nine steps. Score each on undo, stakes and who answers for it, and a small function in code names the owner: the system, Claude, a person, or a share with sign-off.
- Step 6: When a Packaged Skill Beats a New Agent (and a Prompt Library)
Four teams need the same escalation note. A prompt library drifts to two versions, a new agent takes three calls, and one owned Skill file serves all four teams in one call. Here is how to pick the pattern and say who decides what.
- Step 7: Coordinator and Subagents: Decompose, Delegate, Check Coverage, and Call Only the Spokes You Need
A research question about chat or email support goes to a coordinator with four subagents. The coordinator splits the question into distinct slices, calls only the spokes it needs, checks the draft for gaps and re-delegates. A plan that is too narrow gives a report that covers a third of the question.
- Step 8: Task Decomposition: a Fixed Prompt Chain With an Integration Pass, or a Dynamic Plan That Adapts
A three-file pull request is reviewed in four passes: one per file, then one integration pass over the notes. Each file looks fine alone; only pass 4 finds that cart.py sends one argument where price needs two. Then the dynamic plan for a legacy codebase, and how to choose.
- Step 9: Five Reference Architectures for Claude Systems: Read the Cue, Name the Shape
Most briefs fit one of five shapes. Learn the cue for each, match five briefs in code, run a draft-review-revise loop with a round limit, and see why live order status needs a tool call, not an index.
- Step 10: Business Value Pillars for an LLM System: Turn "Cheaper and Faster" Into Targets, Then Pick the Lane
"Make it cheaper and faster" is a wish, not a target. Give efficiency, cost and the performance SLA a number each, route chat and overnight work to different lanes, and score three plans against all three targets.
- Step 11: Which Requirement Binds? Picking the Claude Surface and Agent Runtime Under Constraints
Four teams, one product, four different platform answers. Find the requirement that binds (residency, compliance, availability or ownership), pick the surface and the runtime, and name what you accept.
- Step 12: The Claude Model Ladder: Pick the Cheapest Model That Passes, Then Price the Month
Three SupportDesk workloads all run on Opus for $8,820 a month. An eval ladder keeps the cheapest model that passes per workload, batch prices the one that can wait, and the planned month comes to $3,000.
- Step 13: System Prompt or User Turn: Where Each Instruction Goes, and Output Limits Your Code Enforces
A bookshop reply writer drafts the same three tickets two ways: everything in one user message, then rules in system, customer text in tags, and limits held in code with max_tokens, stop_sequences and a stop_reason check.
- Step 14: Prompt Revision Driven by Evals: Name the Cause, Change One Thing, Rerun the Whole Suite
A report labeller goes from 0/6 to 6/6 in six rounds. Each failing case gets a named cause and one fix, and a gate reruns all six cases so a fix that breaks another case can't ship.
- Step 15: Zero-Shot, Few-Shot or Reasoning: Pick the Cheapest Prompting Technique the Failure Asks For
One refund ticket, three prompts. Zero-shot fails to give a parseable label, few-shot fixes the format at the cost of input, prompted reasoning fixes logic at the cost of output. Climb one step per measured failure.
- Step 16: Context Engineering: What Belongs in the Context Window, Turn by Turn
A support agent on turn twelve sends 1,679 tokens to the model, and the question is only 20 of them. Measure each part of the window, give it a budget, put it in the right order, and compact it to 1,089 tokens without losing the facts the next step needs.
- Step 17: Prompt Caching: Keep the Start of Every Request Identical and Pay for the Long Part Once
A shop help desk sends the same 1,373-token policy with every question. Keep that start byte-for-byte identical, mark it for caching, and the second call's input drops from $0.005608 to $0.000391. One timestamp at the top breaks it.
- Step 18: Adaptive Thinking and Effort in Claude: Two Dials, Set per Workload, and the Thinking Block You Must Pass Back
Three support tickets, three needs. Set adaptive thinking and an effort level per kind of work instead of one thinking budget for everything, read the thinking tokens from usage, and pass the thinking block back on a tool turn.
- Step 19: Memory and Context-Window Patterns for Claude Agents: Context Editing, Compaction and the Memory Tool
A refund agent loses its context between sessions and refunds R-11 twice. Context editing and compaction keep the window small; only the memory tool's notes under /memories survive a reset, so session two goes straight to R-13.
- Step 20: Calling Claude Through Amazon Bedrock, Google Cloud and Microsoft Foundry: Same Call, Different Door
One support app makes one Messages call, through six routes to Claude. The request and the Message stay the same; the client class, the sign-in, the model id and the feature list change, and a small table tells you what to check before you pick a platform.
- Step 21: Choosing the Claude Build Stack: Client SDK, Agent SDK, Claude Code Headless or Managed Agents
Five teams build a claims agent, and each gets a different stack. Ask who runs the loop, then the team's language, then compliance and data custody, then the surface. A small function in code makes the pick.
- Step 22: Authentication and Authorization for Claude Agents: Find the Gaps Hop by Hop
A SupportDesk design has four hops and four credentials. A six-rule review finds six gaps, and a tool that checks the signed-in user's rights stops Ana from reading Bob's account, with an audit line for the deny.
- Step 23: The Agent Attack Surface: Blast Radius, Narrow Tools, Scoped Keys and the Dangerous Three
A support agent reads a ticket that says run SELECT * FROM customers and email the result outside, and it has run_sql and send_email, so the customer list leaves. The model wasn't hacked, it was equipped. Map each tool by what it reads, changes and sends, replace the two large ones with narrow tools, scope the keys, and never give one agent untrusted input, private data and a way out together.
- Step 24: Connecting Claude to a Legacy System You Can't Change: The Adapter Pattern
An old orders system keeps fixed-width text and has no safe retry. An adapter translates its records into named fields, offers Claude two narrow tools, keys every refund so a retry writes once, and queues large refunds for a person.
- Step 25: MCP, an API/CLI Call or Agent-to-Agent: Choosing How Claude Connects to a Capability
One stock question answered three ways: through an MCP server, through a command-line call you wrote, and through a hand-off to a warehouse agent. Same answer, different costs. The need picks the connection.
- Step 26: Chunking Strategies for RAG: Fixed Size, Sentences or Headings, Measured on One Handbook
Where you cut decides what search can find. Cut a 13-section employee handbook three ways in plain Python and count the damage: fixed size gives 12 chunks with 12 cut and 11 mixed, sentences give 0 cut but 9 mixed, and headings give 13 clean chunks that know their source.
- Step 27: A Retrieval Router: Match the Route to the Data Shape and the Query Pattern
Four support questions, one semantic search: one right answer out of four. A small router picks a structured query, BM25 keyword match, semantic match or an agentic loop from the data and the question, and gets four of four.
- Step 28: Full Context or Retrieval: Choose by Corpus Size, Cost and Freshness
Three document sets, three answers. A small stable handbook is best sent in full with a cache, a 2.4 million token archive must be retrieved, and hourly price notes keep resetting the cache, so retrieval wins.
- Step 29: Progressive Discovery or Monolithic Context: Load It All, Fetch by Index, or Both
A policy assistant with 27 policies runs the same questions through three designs: every policy in the prompt, an index plus a read_doc tool, or the core whole and the tail by index. The run shows when each one reads the fewest tokens and makes the fewest calls.
- Step 30: Speed Has a Price and the Rate Limit Is the Ceiling: Choosing Model, Effort and Fast Mode per Path
A support product has three paths: chat, assist and review. Each path gets the fastest configuration that still passes its eval, then the chosen setup is checked against the Build tier rate limits at the peak and on launch day. The cache frees the input limit; output runs out first.
- Step 31: Reliability Controls for Claude Apps: Backoff, Idempotency Keys, Fallback Routing and Circuit Breakers
A support desk emails a customer when a ticket moves. Four failures hit it: a 429, a lost reply from the email service, an overloaded primary model and a dead order lookup. Each needs its own control, and none may send the email twice.
- Step 32: Cutting p95 and Cost in Half for an LLM App: Read the Bill, Match the Lever, Guard Success
Asked to halve p95 and cost without hurting success, read the bill first. In a 200-request simulation, streaming the answer was 84% of the slowest request, a cheap router dropped success to 95.5%, and the careful router plus a cache cut cost to 31.6% while p95 fell only about 8%.
- Step 33: Observability at Scale and a Gated Rollout: Metrics for All, Traces by Rule, Content on Trigger
Two million requests a day, kept whole, make 96 GB of telemetry. A layered plan keeps a tiny metrics record for all, every flagged trace and content only for flagged requests: about 2 GB, and all 30,000 flagged requests still readable. Those signals then gate a four-stage rollout.
- Step 34: The Failure Nobody Saw: Finding the Instrumentation Gap in an LLM Agent
SupportDesk's error rate sat at 0.5 percent for eight days while a prompt change broke answers, a subagent looped twelve times and tokens per ticket jumped from 247 to 1282. Each failure needed its own signal: eval sampling, per-step traces or a budget alert.
- Step 35: Six Metrics, Not One Score: Accuracy, Groundedness, Latency, Cost, Safety and Security for an LLM Agent
Fourteen recorded runs of a support agent give 86 percent pass and a 2.4 second mean: ship it. Split into six metric families with their own targets, the same file fails on groundedness, p95 latency and security.
- Step 36: The Metric That Would Have Caught It: Finding Eval Coverage Gaps After a Green Suite
A support agent's suite passed 8 of 8 by looking for one word in each reply. Then customers met an invented return window, a refund of 120 on a 45 order and a token bill 2.14 times the baseline. Each incident maps to a missing dimension or a wrong grading target, and a metric that would have failed before release.
- Step 37: Eval Datasets and Mixed-Method Test Frameworks: Code Checks, an LLM Judge and Human Review
A booking assistant's first eval used easy tickets and one LLM judge, and everything was green. Twelve cases from four sources, each graded by code, a judge or a human, catch a leaked passport number, flag a missing payment slice and show the judge cannot be trusted on tone.
- Step 38: Proving a Model Upgrade Is Ready: A Frozen Golden Set, a Calibrated Judge, the Right Layer and a Release Gate
A maintenance triage classifier runs on a Haiku-tier model and a newer tier is out. Replay a frozen 12-case golden set, calibrate the judge against people, find a format drift, and let a small gate decide hold or stage.
- Step 39: Calibrating an LLM Judge: Diagnosing Position, Verbosity, Self-Preference and Drift
A pairwise judge agrees with human reviewers on 4 of 8 pairs. Each of the four mismatches has a different cause. Change one thing at a time to name it, apply only that fix, and re-score a fixed human calibration set every week to catch drift.
- Step 40: A/B Tests for Models: Did the New Model Make Things Better for People?
Two ticket models both look fine. A simulated A/B test splits customers with a sticky hash, plans the size, reads the gap with its margin, and shows two ways to fool yourself: an A/A false winner and peeking every day.
- Step 41: Trials per Case: Separating a Real Effect From Run-to-Run Variance When You Compare Two Prompts
One run says prompt B wins 16 to 14; a second run says prompt A wins 16 to 15. Running the same 20 cases five times on both prompts, pairing the differences and reading the spread first gives an honest answer: a gap of +0.14 against a spread of 0.05, separated.
- Step 42: Diagnosing a Bad Answer: Prompt Failure, Hallucination or Model Mismatch?
Four eval cases failed with wrong answers and no error. Rerunning them all on a larger model names the right cause for one of four. Probing one variable at a time, cheapest evidence first, names all four: a prompt failure, a hallucination, a model mismatch and a bad source.
- Step 43: Reading an Agent Trace: Five Signatures, Five Missing Patterns, and How Long a Fact Must Live
An agent misbehaves and the log is all you have. Five short traces, five signatures, and a small reader that names the missing pattern (loop bound, loop test, isolation, memory or context management) and the fix that treats the cause.
- Step 44: Pinning Claude Model IDs and Upgrading Safely: One Change at a Time, a Golden-Set Replay and a Staged Rollout
Pin the exact Claude model ID, keep prompts in versioned files, change one thing per release, then earn a model switch: replay a golden set, read the deltas, fix the request for the newer model and roll out in stages.
- Step 45: Observability and Tracing for LLM Apps: A Span per Stage, Redaction First, Bad Traces Become Tests
"The agent booked the wrong meeting room yesterday. Explain why." A span for every stage shows the bug sat in retrieval, a simulated request shows a 900 ms tool span hiding inside 2,462 ms, redaction runs before storage, tail sampling keeps the 6 slow requests in 200, and an incident trace becomes a test that takes the eval set from 9/9 to 9/10.
- Step 46: Risk Framing for LLM Systems: A Risk Register Ranked by Exposure, Not by Odds
Five SupportDesk features each carry one LLM failure mode. Ranked by how often they fail, the irreversible refund sits fourth and the attachment injection last. Ranked by exposure (likelihood times impact, plus one if it cannot be undone), the refund leads and the attachment moves to third.
- Step 47: Ranking Deployment Risk: Attack Surface, Failure Modes, Quota Exhaustion and Supply Chain
A multi-tenant support agent has eight risks on its diagram. Ranked by exposure, the top two are not model failures at all: one tenant draining the shared rate limit (9) and an unpinned third-party MCP server (7). A per-tenant share and a supply-chain gate address both.
- Step 48: Guardrails for an LLM Agent: Check What Comes In, What It Wants to Do, and What Goes Out
An agent that reads customer emails and can refund up to $200. In a small simulation, a phrase filter still lets 6 of 8 written attacks do harm and blocks 2 honest users; plain checks outside the model take harm to 0 of 8, at a cost of 1 honest request failed and 2 held.
- Step 49: Human-in-the-Loop Routing: Send Each Agent Action to Auto, Review or Block by Confidence, Reversibility and Cost
A support agent proposes nine actions in one morning, from an order-status reply to a $900 wire refund. A router in code sends each one to auto, review or block using three signals: the model's confidence, whether the action can be undone, and what a mistake costs.
- Step 50: Injection Exposure Review for an Agent: Map Inputs, Data and Effects, Layer Every Path, Retest the Job
Review a refund agent the way a security team would: map where stranger text gets in, what it can read and what it can do, layer every path, then show the four normal questions still give the same answer.
- Step 51: Prompt Injection, Jailbreaks and Untrusted Input: Label What Comes In, Gate What Goes Out
Three texts reach a support agent in one week: an injected ticket, a poisoned help article and a jailbreak. A naive agent turns all three into leaks; three small checks in plain code take that to zero.
- Step 52: Compliance for an LLM System: Tie Every Obligation to a Control, an Owner and Evidence
A claims assistant touches personal data, health data and a federal client. We turn each obligation into a register row with a control, a named owner and evidence counted from the audit log, then let the register list its own gaps.
- Step 53: Control Sets for Compliance: Residency, Retention and ZDR, PII Redaction, Audit Logs and Tenant Isolation
A multi-tenant health assistant on Claude needs five controls: a pinned inference geo, zero data retention plus a session purge, redaction before send, an audit log with a hash, and a tenant-scoped store. Each row of the matrix gets an owner and the evidence the run leaves behind.
- Step 54: Bias, Fairness and Transparency in LLM Decisions: Find the Source of a Gap, Then Pick the Fix
A refund pre-screen applies the same 30-day rule to two groups, yet group B is approved half as often. We separate the three possible sources (data, prompt framing, evaluation design), apply the fix that matches each, and keep a decision record three different readers can use.
- Step 55: An AI Governance Operating Model on One Page: Risk Tiers, Named Gates and Re-Gating on Change
A meeting summariser, a support reply drafter and a hiring screener should not share one approval path. Two questions set a risk tier, each tier lists its gates, each gate has one named person who is never the builder, and any change sends the case back to the start.
- Step 56: Discovery for an AI Project: Running the First Conversation, Five Question Groups and Three Red Flags
An insurance company says 'we would like an AI assistant'. That one sentence could be three different projects. Five question groups, asked to the right people, turn it into a one-page problem statement, and three red flags show what still blocks the design.
- Step 57: Communicating AI Decisions, Trade-offs and Risk to Executives: The Decision Card, the Risk Matrix and One Ask
A week before launch the CEO asks: is it safe to launch? Answer with a decision card that says what each option costs, a risk matrix where controls move a risk but never erase it, a one-page brief that ends with one ask, and an honest answer to 'can you guarantee it?'.
- Step 58: Feedback Loops, Expectations and SLAs for an AI Service: Find the Promise the Architecture Can't Keep
Two weeks after launch, the head of claims says 'I thought it never makes mistakes'. A weekly feedback loop, expectation gaps closed in writing, and a review of the draft SLA find the one clause nothing can measure before anyone signs it.
- Step 59: Documenting an AI Architecture for Handoff: One Document per Reader, a Handoff Gate and Rules With a Reason
On handoff day the platform team asks how to run the clause search at night, and the builders have moved on. Write one document per reader, check the handoff package for five elements before the team takes over, and keep the reasons behind every rejected option.
- Step 60: The Life Cycle of a Claude App: Six Phases, a Model That Retires, and a Release Gate for Every Change
Follow a returns helper through plan, build, test, release, operate and maintain: watch the model's status from active to retired, and put a release gate with eval cases in front of every prompt change.
- Step 61: Where Claude Joins a Developer Workflow: Interactive, GitHub Action or claude -p, Then Measure the Outcome
Four developer jobs land on three Claude surfaces: interactive Claude Code for a refactor, the GitHub Action for pull requests and @claude comments, and a bare claude -p command for a nightly report. Then three teams are judged on reach, depth and outcome, and only one actually moved delivery.
- Step 62: An Ops Runbook for Claude Failures: Case Cards, Request IDs, Owners and a Read-Only Investigation
Three symptoms land in the queue: a 429 with no retry-after, a 500 and a 200 with a wrong answer. Each belongs to a different owner. A case card, a request ID on every call, a five-kind triage and a read-only gate decide who acts first.
- Step 63: Working an Architecture Scenario End to End: Mark Hard and Soft Constraints, Cut, Rank, Decide
A storm desk must rebook stranded passengers, and four candidate architectures all sound sensible. Mark four hard and two soft constraints, cut the two options that break a hard one, rank the survivors on the soft ones, and check the winner stage by stage.
- Step 64: A Regulated Dispute Desk on Claude: Pin the Geography, Gate by Risk, Log Before Release, Fail Closed
A bank wants Claude to draft card-dispute answers and propose refunds. Four hard obligations cut two of four designs. The chosen one routes every case through a gate in code, writes a hash-chained audit record before release, and blocks anything outside the pinned geography.
- Step 65: Global Support Automation Scenario: Cut the Options, Route Each Ticket by Risk, Gate Every Change by Language
A global retailer's support desk faces many languages, sale-day spikes and costly refunds. Cut four designs to two, pick triage lanes with grounded drafts, route five tickets by risk, and watch a cheaper translation step get blocked because Japanese scores 0.33 while the average says 0.83.
- Step 66: Architecture Artifact Review Drills: Find What a Diagram, Config, Trace, Eval Table, ADR or Settings File Leaves Out
Seven artifacts from four scenarios (healthcare, multi-tenant SaaS, government, CI/CD) each look fine at a glance. A checklist per artifact asks what is missing, finds 15 gaps, and the revised copies come back with 0.
- Step 67: The Architecture Decision Record for a Claude System: Context, Options, Decision, Consequences and the Evidence You Will Need
A claims team decides to retrieve policy clauses before answering. One page records the context and the audit team's constraint, three options with the two rejected ones kept, the decision and why, the residual risk sized honestly, and the evidence the build must later produce. A small checker finds six problems in the draft.
- Step 68: Building a Claims Assistant: RAG, an Eval Harness With a Gate, and OpenTelemetry Tracing
The decision record asked for four kinds of proof. We build them: section chunks and a retriever, an eval harness that scores hit and grounded on seven cases, a gate with thresholds written first, and a span for every stage. A fixed-size index drops hit rate to 0.71 and the trace shows why.
- Step 69: The Evidence Readout: Presenting Eval Numbers and Traces to Stakeholders as a Decision
The build is done: 20 eval cases, ten traces and four claims from the decision record. One claim missed its target. We measure each claim, build a four-part page that leads with the decision and names the miss, and rehearse it with five checks before the sponsor sees it.
