CertifyDeck
All cheat sheets
CCAR-P · CHEAT SHEET

Claude Certified Architect – Professional

Key concepts grouped by official exam weight.

Download as PDF (free, no sign-up)

1. Solution Design and Architecture

18–18%

Task Delegation Between Claude and Humans

  • Assign each process step by three tests: reversibility, stakes and who is accountable. Reversible, low-stakes steps go to Claude with oversight that can intervene; irreversible or high-stakes steps, or those a named person must sign, are decided by a human with Claude preparing the work and showing its reasoning and sources.

End-to-End Architecture Evaluation

  • Test each component against its requirement: rate limits belong to the organization and are divided with workspace limits; a sudden traffic jump hits the ramp limit; batches are asynchronous. Access control must be enforced in the application or tool, not the prompt, and agents in one session share the sandbox, files and credentials.

Architectural Pattern Selection

  • Start with the simplest solution: one augmented call with retrieval is often enough. Workflows (prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer) fix the path in code for predictability; an agent directs its own steps and suits open-ended problems in trusted environments. Skills package reusable knowledge that loads on demand and can bundle deterministic scripts.

Orchestrator and Subagent Decomposition

  • Each subagent needs an objective, output format, sources and clear boundaries, and receives only the delegation prompt. Split by context, not by role, and pass large results as references to avoid the telephone game. Bound depth, concurrency and spend with runtime-enforced limits, trace every message to its subagent, and never read a completed run as proof that all the work succeeded.

Value-Based Architectural Decisions

  • Choose the option that maximizes a measurable outcome within the cost and latency ceilings: a ceiling rules out a proposal however much value it would add. Start from the simplest solution, because agentic systems trade latency and cost for performance, and count the downstream cost of failures, not just the unit price. Batches are asynchronous and cannot serve interactive replies.

Deployment Surface and Agent Runtime Selection

  • The surface decides who operates inference and which features arrive: on Amazon Bedrock AWS operates it and features follow its release schedule, while Anthropic operates Claude Platform on AWS. The runtime decides where state lives: the Messages API is stateless, the Agent SDK keeps transcripts on local disk, and Managed Agents keeps history in the service, even with a self-hosted sandbox.

2. Claude Models, Prompting, and Context Engineering

13–13%

Model Tier Selection

  • Choose the tier that meets the quality, latency and cost thresholds together on your own evaluations, including the hardest part of the workload, not just the typical case. The smallest tier fits high-volume work with checkable outputs; routing by request type and the advisor or orchestrator patterns combine tiers only when measurements show they pay off.

System Prompt Diagnosis and Revision

  • When output fails, look for what the prompt does not say: scope, format, audience, what to do in edge cases, or two instructions that collide. Fix it with positive instructions and their reason, not more capitals or prohibitions, and remove aggressive language or mandatory steps written for older models, because current models follow them literally.

Prompting Technique Selection

  • Choose the technique from the observed failure: zero-shot when it already passes, three to five diverse examples for tone and format, worked examples to teach a method, and structured outputs when JSON must be parsed. On current models, asking for reasoning inside the output can trigger refusals: use native thinking, which is billed as output and is worth disabling when it does not improve results.

Context Composition and Token Economics

  • Prompt caching makes repeated tokens cheaper (cache reads are billed at a fraction of base input and do not count toward the input-tokens-per-minute limit) but it does not reduce the tokens that occupy the context window or the output. So trim uncached content first, remove duplicates, and design tools that return only what the agent needs.

Cache Breakpoints and Reusable Packaging

  • The cache matches an exact prefix in the order tools, system, messages: stable content goes first and the breakpoint goes on the last identical block, never on a changing one. Several breakpoints separate layers that change at different rates, the 1-hour lifetime suits reuse spaced beyond 5 minutes, and Skills load instructions only when triggered; keep their list fixed to keep the prefix cacheable.

Reasoning Effort and Context Lifecycle

  • Effort is a behavioral signal that affects every output token; set it per role from evaluations and, mid-conversation, prefer a per-message change so the cache is not invalidated. For long sessions: tool result clearing with clear_at_least, compaction when the dialogue itself grows, and the memory tool to continue across sessions.

3. Integration

21–21%

Least-Privilege Tool Configuration

  • Each agent or subagent should hold only the tools it uses: enable only what it needs instead of every default tool, allowlists rather than denylists, subagents with an explicit tools list and memory stores attached read-only. When it reads untrusted input, split reading from acting or give it one narrow tool, and filter large data in code outside the context.

Authentication and Authorization Posture

  • An MCP server accepts only tokens issued for it and never passes them through; proxies with a static client ID need per-client consent, and scopes start minimal. Credentials are injected outside the agent's reach (a proxy, or a vault limited to specific hosts), each user acts under their own identity, and static keys give way to short-lived tokens.

Relieving the Binding Performance Constraint

  • First identify which constraint binds from the evidence: if failures are passages never retrieved, raise retrieval depth; if the context was already right, move up a model tier. If latency binds, prompt caching speeds up identical prefixes without changing output, independent calls run in parallel, streaming improves perceived latency, and Message Batches does not suit synchronous flows.

Instrumentation and Monitoring Gaps

  • Health metrics do not reveal agent failures: you need traces of every step, content-free decision patterns and checks of the end state rather than the agent's claim. In Claude Code and the Agent SDK, api_error arrives only after retries are exhausted, refusals do not trigger it (api_refusal), export fails silently and identity is the credential's, not the end user's.

Retrieval Architecture Selection

  • A small, stable corpus goes whole into a cached prompt; a large one needs an index, and one that changes constantly suits agentic search with tools, slower but free of stale indexes. When indexing: embeddings plus BM25 with rank fusion, chunk-specific context generated with the document cached, reranking and, if nothing is retrieved, permission for the model to say it lacks the information.

Connection Mechanism Selection

  • If a CLI exists it is usually the easiest route; MCP suits reusing one integration across hosts and keeps the conversation with the host. MCP no longer has protocol sessions: cross-call state uses explicit handles. stdio opens no ports, and the MCP connector needs public HTTP and supports only tools. Handing off to another agent pays off for high volumes of irrelevant context, not for simple lookups.

Progressive Discovery vs. Monolithic Context Loading

  • Loading everything up front only pays off with few, small tools used on every request; with large catalogs, tool search with defer_loading loads only what is needed at the cost of a search step, keeping the most used tools non-deferred. Skills load metadata always, SKILL.md when triggered and files or scripts on demand; data is pulled just in time through identifiers.

Production Reliability Controls

  • A 429 may come from bursts (token bucket), a ramp limit or the spend cap, which carries no retry-after and is not fixed by retrying; error_code tells them apart. Retry with backoff and a cap following x-should-retry and retry-after; side effects require idempotent tools; a refusal is a 200 with stop_reason refusal and is routed to another model.

4. Evaluation, Testing, and Optimization

17–17%

Evaluation Coverage Gaps

  • A suite that only measures accuracy lets failures in groundedness, latency, cost, privacy or security through. Grade the outcome in the environment, not only the transcript, test cases where a behavior should and should not occur, use pass^k when consistency matters, and keep a near-100 % regression suite alongside capability evals.

Deriving Evaluations from Business Processes

  • A valid evaluation isolates the process step the decision affects and uses inputs that mirror the real distribution, including edge cases and support-queue failures. The success criterion comes from the business outcome: specific, measurable, achievable and relevant, often multidimensional and with partial credit. Grade with code where one value is correct and with a calibrated LLM where nuance is needed.

LLM-as-Judge Design and Bias

  • An LLM judge must be calibrated against human labels before it drives decisions. Each bias has its own correction: position (randomise order or score both orders and average), verbosity (the rubric gives no credit for length), self-preference (a judge from another family or a jury) and label deference (never say which response is the reference). After a judge change, earlier scores are not comparable.

Experimental Design for Configuration Comparison

  • To compare two configurations, run them on the same cases and analyse paired differences, repeat several trials per case to reduce run-to-run variance, and work out the noise floor first (for a pass rate, roughly 1/sqrt(cases x trials)) against the smallest effect that matters. Change one variable at a time, cluster standard errors when cases share a source, and isolate every trial.

Root-Cause Isolation from Logs and Traces

  • The full trace (retrieved context, tool calls and results, and each response's model field and stop_reason) separates the causes: if the right fact never reached the context it is a retrieval failure; if it was there and the answer contradicts it, hallucination; if a tool failed and the agent carried on, a tool error; if another model answered, model mismatch; and if output lacks what the prompt never asked for, a prompt failure.

Cost and Latency Optimization

  • Usage fields (input_tokens, cache_creation_input_tokens, cache_read_input_tokens, output_tokens) show where spend concentrates, and task time splits into calls, output tokens and time outside the model. The one-hour cache helps when gaps between requests exceed the default lifetime but stay under an hour; work nobody waits for goes to Message Batches, and every change is validated against the quality floor.

Model Version Migration

  • A deprecated model keeps working until its retirement date; after that, requests fail, so the replacement is tested well ahead. From the 4.6 generation on, every model ID is a fixed snapshot; older aliases point to the latest snapshot. Bedrock and Google-managed Google Cloud set their own dates. Migrating means recounting tokens, revisiting max_tokens and cost, re-tuning prompts and re-baselining evaluations.

5. Governance, Safety, and Risk Management

16–16%

Guardrail Placement

  • An effective guardrail closes a misuse path with a control that does not depend on the main model obeying: an input screen run by a lightweight model with structured output, an output check before display, deterministic rules in the tool's code, allowed_domains lists and per-user or per-session limits. A screen that ends with stop_reason refusal counts as a harmful verdict.

Prompt Injection Surface and Controls

  • All third-party content (emails, pages, OCR, MCP responses, repository files, external Skills) is untrusted input: deliver it only in tool results, labelled with its source and JSON-encoded, never in the system prompt. Screen tool outputs, split reading from acting, attach memory read_only and pin Skills to a reviewed version, because model resilience is not a security control.

Risk Assessment and Ranking

  • Ranking risks by exposure combines likelihood and impact with documented behaviour: the tier spend cap returns 429 with no retry-after until next month, a sharp surge hits the ramp limit, and organization limits are shared across workloads. A Claude API key inside the sandbox, unvetted local MCP servers or sessions that keep an old configuration raise impact sharply.

Human-in-the-Loop Checkpoints

  • A human checkpoint sits right before the irreversible or high-impact action, triggered by a deterministic rule rather than the model's self-reported confidence. In Managed Agents always_ask pauses the session, auto is not human review, and custom tools are held by your application. In the Agent SDK canUseTool never sees auto-approved calls, and long waits use a PreToolUse hook that returns defer.

Architectural Controls for Compliance Obligations

  • Each obligation needs its own evidence: Legacy ZDR does not cover stateful features such as batches or the Files API and does not block them, and ZDR eligibility is not BAA coverage. HIPAA readiness applies to the whole organization. Residency is enforced with allowed_inference_geos and workspace geo, PII is stripped in code before it is stored, and workspaces isolate files, batches and caches per tenant.

Bias Source Identification and Mitigation

  • When results differ across groups, first isolate the attribute with paired cases that differ only in it and break metrics down by group. The mitigation then follows the source: data (biased examples or inputs), prompt framing (unneeded attributes or loaded terms) or evaluation design (coverage, the rubric, or a single dimension such as length).

6. Stakeholder Communication and Lifecycle Management

7–7%

Unsupportable Commitments in Requirements and SLAs

  • Some commitments cannot be met by the architecture: identical outputs (even temperature 0 is not fully deterministic), zero hallucinations, guaranteed capacity (rate limits are ceilings and ramp limits exist), more uptime than the dependency, 100 percent schema conformance or an unchanged model for years. They are resolved with measurable criteria, records, degraded modes and migration processes.

Architecture Decision Records

  • An architecture decision record must capture each stakeholder constraint, the rejected alternatives with their figures, the trade-off accepted and the residual risk with its owner. It must not overstate certainty about the model: agents trade cost and latency for performance, pass@k is not per-attempt reliability, and injection defenses reduce risk without removing it.

Operational Handoff Completeness

  • An operational handoff must include the retirement calendar that applies to the platform in use (Bedrock sets its own), service account keys with their rotation and expiry, spend and rate limits with their owner and the error each produces, the evaluation suite with its baseline, the request ID for support escalation, and every network and state dependency, such as transcripts that live on local disk.

7. Developer Productivity and Operational Enablement

8–8%

Packaging and Distributing Claude Code Workflows

  • A Claude Code workflow ships as a plugin (skills, subagents, hooks, MCP servers) from a marketplace. Managed settings enforce it: extraKnownMarketplaces and enabledPlugins install and force-enable it, strictKnownMarketplaces filters sources, disableSideloadFlags blocks --plugin-dir, and allowManagedHooksOnly keeps only vetted hooks. Plugin subagents ignore hooks and permissionMode, and updates arrive when the version changes.

Agent SDK and Claude Code Configuration

  • Each permission mode trades autonomy for control: plan blocks edits until the plan is approved, acceptEdits approves edits, auto uses a classifier, dontAsk denies anything that would prompt, and bypassPermissions belongs only in isolated containers. Deny rules hold in every mode; PreToolUse hooks with onFailure block enforce policy; -p runs should use --bare, and a subagent inherits acceptEdits, auto and bypass modes.

Accountability for AI-Generated Code

  • Ownership of AI-generated code rests on deterministic controls: branch protection with a required human approval (with the Claude app off the bypass list), Co-Authored-By attribution and signed commits. Code Review and /code-review give an independent second opinion but neither approve nor block, and in the GitHub Action trust follows the pull request's author.