MockCertMockCert
Menu

Test yourself in exam conditions

A full Claude Certified Architect – Professional mock exam: 70 questions in 120 minutes, scored against the real exam's pass mark. Your first one is free.

Start a free mock exam
Domain 2 · 6 topics · about 32 minTopics in this domainTopics

Domain 2 · Overview

Overview

Up next: Model Tier Selection · 8 steps + check · 5 min

Domain 2 · Topic 1 of 6

Model Tier Selection

Step 1 of 8

Think first Given a workload's latency, cost and quality limits, how do you pick the Claude model tier and explain why the others fail?

Why it matters: Questions give a workload profile and ask which model tier meets every binding constraint, and why each rejected tier does not.

The tiers run from Haiku through Sonnet and Opus to Fable, rising in cost and capability. Most workloads start on Opus. Tune effort before switching, and judge cost per completed task, not per token.

Step 2 of 8

Term Meaning
Model tier A model's place on the cost and capability ladder: Haiku, Sonnet, Opus or Fable.
Effort A parameter that gives up some intelligence for lower latency and cost, within one model.
Cost per completed task What a finished task really costs, counting failures and retries, rather than the token price.
Frontier model The most capable and most costly current model, Claude Fable 5.2.

Step 3 of 8

Claude Opus 5.5 is the usual starting tier. From there, each tier trades cost against capability, so each one has a typical fit.

Current Claude tiers, from lowest to highest cost and capability

Tier Choose it for Example workloads
Claude Haiku 5.5 The lowest latency and price Real-time apps, high-volume processing, subagent tasks
Claude Sonnet 5.5 Speed and capability for everyday work Code generation, data analysis, agentic tool use
Claude Opus 5.5 The usual starting point Most workloads
Claude Fable 5.2 The highest available capability Hours-long agent sessions, multistep deep research

Step 4 of 8

Effort is often a better lever than changing models. It trades intelligence for latency and cost inside one model. On the Messages API, most models default to high effort; Opus 5.5 and Haiku 5.5 default to medium.

Exam trap Opus 5.5 tokens cost twice as much as Sonnet 5.5 tokens. Yet at low effort, Opus solved about as many SWE-bench Pro subset tasks for only about 7% more per solved task.

Step 5 of 8

You pay for completed tasks, not tokens. A failed task is still billed for its tokens. Then you pay for the retry and whatever the failure costs downstream. So a cheaper model is only cheaper if it rarely fails.

Step 6 of 8

Haiku fits high-volume, latency-sensitive work with checkable outputs. On GPQA Diamond, Haiku 5.5 scored 85% against 91% for Opus and Sonnet. Its cost per correct answer was about a twentieth of Opus's.

Step 7 of 8

Move to Fable when Opus at top effort still falls short. If evals at xhigh or max effort still miss on demanding reasoning or long-horizon agent work, switch to Claude Fable 5.2. Claude Mythos 5.2 offers the same capabilities, but only to verified organizations.

Exam trap The top tier does not always pay off. On DeepResearch Bench II, Fable 5.2 cost 4.3 times as much as Sonnet 5.5 with no measurable score gain.

Step 8 of 8

  • Tiers rise in cost and capability: Haiku, Sonnet, Opus, then Fable.
  • Start most workloads on Opus 5.5 and tune effort before changing tiers.
  • Judge models on cost per completed task, since failures bill tokens, retries and downstream costs.
  • Escalate to Fable when Opus at xhigh or max effort still falls short.

Sources: Optimizing for cost and intelligence - Claude Platform Docs (opens in a new tab) · Choosing the right model - Claude Platform Docs (opens in a new tab)

Check

Check: Model Tier Selection

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: System Prompt Diagnosis and Revision · 9 steps + check · 5 min

Domain 2 · Topic 2 of 6

System Prompt Diagnosis and Revision

Step 1 of 9

Think first When a system prompt gives vague or inconsistent output, how do you find what it leaves out and fix it without over-constraining Claude?

Why it matters: Questions show a system prompt and its weak output, then ask which revision fixes scope, format or behavior best.

Do not rely on Claude to infer extra work from a vague prompt; ask for it explicitly. Say why a behavior matters to get more targeted responses. Avoid aggressive wording, which more responsive models might overtrigger on.

Step 2 of 9

Term Meaning
Underspecification A prompt so vague that Claude must infer what you want instead of being told.
Overtriggering Claude uses a tool or behavior too often because the prompt pushes it too hard.
Positive instruction Telling Claude what to do, such as writing flowing prose, instead of what to avoid.
Preset with append An Agent SDK option that keeps the claude_code preset and adds your instructions after it.

Step 3 of 9

If a new colleague would be confused, so will Claude. Show the prompt to someone with minimal context on the task. Their confusion is a preview of Claude's.

Step 4 of 9

Ask explicitly for anything beyond the bare task. Claude will not reliably infer extra work from a vague prompt. Saying why a behavior matters gives Claude your goal, so responses become more targeted. A one-sentence role also focuses behavior and tone.

Exam trap Expecting Claude to go beyond the task without being asked is the classic gap. Request the extra behavior explicitly.

Step 5 of 9

Separate content types and order matters. Wrap instructions, context and input in their own XML tags to avoid misreading. Use numbered steps when order or completeness matters. For inputs of 20k+ tokens, put long documents at the top.

Step 6 of 9

Say what format you want, not what to avoid. Ask for smoothly flowing prose paragraphs rather than banning markdown. The prompt's own style also carries over, so a prompt without markdown tends to get less markdown back.

Exam trap A long anti-markdown block is not always helpful. Claude Fable 5.1 already formats less, so such a block can suppress structure the content needs.

Step 7 of 9

Aggressive or blanket rules cause overtriggering. Revisions that fix one problem can create another. Pick the one that targets the need without forcing the behavior everywhere.

Over-constrained wording and better revisions

Problem Over-constrained wording Better revision
Tool overuse CRITICAL: You MUST use this tool when... Use this tool when...
Blanket default If in doubt, use [tool] Use [tool] when it helps you understand the problem

Exam trap Aggressive wording like CRITICAL or MUST can backfire. Models that are more responsive to the system prompt might overtrigger on it.

Step 8 of 9

Leaving systemPrompt unset drops the preset's safety rules. The SDK then uses a minimal prompt that covers tool calling only, unlike claude -p. The claude_code preset with append adds your rules and removes nothing, the lowest-risk option. A custom string sends only what you write.

Exam trap An unset Agent SDK system prompt is not the full Claude Code prompt. It omits the preset's security and safety instructions.

Step 9 of 9

  • If a colleague with little context would be confused by the prompt, Claude will be too.
  • Ask explicitly for anything beyond the task, and say why it matters.
  • Tell Claude what format to use instead of what to avoid.
  • Replace aggressive or blanket tool rules with normal, targeted wording.
  • Use the claude_code preset with append for the lowest-risk SDK customization.

Sources: Prompting best practices - Claude Platform Docs (opens in a new tab) · Modifying system prompts - Claude Code Docs (opens in a new tab)

Check

Check: System Prompt Diagnosis and Revision

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Prompting Technique Selection · 10 steps + check · 6 min

Domain 2 · Topic 3 of 6

Prompting Technique Selection

Step 1 of 10

Think first Given a failure pattern and a task's complexity, which prompting technique fixes it without paying for tokens you do not need?

Why it matters: Questions show a failing output and ask which technique (examples, reasoning, thinking or structured output) fixes it at the least token cost.

Match the technique to the failure. Examples fix format and tone, thinking or prompted reasoning fixes weak logic, and structured outputs fix schema errors. Then size the reasoning to the task, since extra thinking costs tokens and latency.

Step 2 of 10

Term Meaning
Few-shot prompting Giving Claude a few well-crafted examples in the prompt; also called multishot prompting.
Manual chain-of-thought Asking Claude to reason step by step before answering when thinking is turned off.
Effort Soft guidance on how much of the output Claude spends on thinking; it sets no exact token count.
Structured outputs A mode that uses constrained decoding so every response matches a JSON schema.

Step 3 of 10

Each technique targets a different kind of failure. Start from what went wrong, not from a favorite technique. A wrong format calls for examples or a schema. Weak reasoning calls for thinking or a reasoning prompt.

Observed failure and the technique that addresses it

Failure Technique Why it works
Inconsistent format, tone or structure Few-shot examples Examples steer format, tone and structure reliably
Invalid JSON or missing required fields Structured outputs Constrained decoding guarantees schema-compliant output
Weak reasoning with thinking off Manual chain-of-thought Claude reasons before answering, final answer in tags
Weak reasoning with thinking on General instruction such as "think thoroughly" Often beats a hand-written step-by-step plan

Step 4 of 10

Few-shot examples must be diverse. Cover edge cases and vary the examples enough that Claude does not copy unintended patterns. Examples also work with thinking: worked examples guide how Claude tackles similar problems inside its thinking blocks.

Exam trap Examples are not only for runs without thinking. With thinking on, worked examples still shape how Claude reasons.

Step 5 of 10

Prefer general instructions over prescriptive steps. Claude's own reasoning often goes beyond what a person would script. When thinking is off, ask it to work through the problem first. Have it wrap the final answer in answer tags so code can pull it out.

Exam trap A detailed hand-written plan is not the best reasoning aid. A general prompt like "think thoroughly" often produces better reasoning.

Step 6 of 10

Give simple tasks a budget near 1,024 tokens. With manual extended thinking, complex tasks start at 16,000 tokens or more. Adjust from there for latency and quality. Want Claude to think less often? Turn the effort level down before you try prompt-based steering.

Step 7 of 10

max_tokens is a hard cap; effort is soft guidance. The cap covers thinking and response text together, and Claude never goes past it. Effort only shapes how much output goes to thinking. Most models default to high effort. Claude Opus 5.5 defaults to medium, and so does Claude Haiku 5.5.

Exam trap Truncated at max_tokens? Raising the cap is right only when those answers needed the reasoning. If Claude over-thought them, reduce effort instead.

Step 8 of 10

Structured outputs add a small token cost. Claude receives an extra system prompt, so input tokens rise slightly. Changing output_config.format invalidates the prompt cache for that thread. Enum capitalization is not guaranteed, so compare enum values case-insensitively.

Exam trap Do not add a schema property that asks for step-by-step reasoning. It can cause a reasoning_extraction refusal, so request a brief explanation instead.

Step 9 of 10

On Claude Opus 5, remove old verification instructions. This model checks its own work well without being told. Verification instructions carried over from prompts for earlier models cause over-verification, which adds tokens and latency. Delete them rather than rewording them.

Step 10 of 10

  • Use a few diverse, well-crafted examples to steer format, tone and structure.
  • With thinking off, fall back to manual chain-of-thought and extract the answer from tags.
  • Structured outputs remove schema-violation retries but add a slightly larger input prompt.
  • Start simple tasks near the 1,024-token thinking minimum and complex ones at 16,000 or more.

Sources: Prompting best practices - Claude Platform Docs (opens in a new tab) · Structured outputs - Claude Platform Docs (opens in a new tab) · Extended thinking - Claude Platform Docs (opens in a new tab) · Steering thinking - Claude Platform Docs (opens in a new tab)

Check

Check: Prompting Technique Selection

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Context Composition and Token Economics · 9 steps + check · 5 min

Domain 2 · Topic 4 of 6

Context Composition and Token Economics

Step 1 of 9

Think first Given a token budget and a call volume, where can you cut token use without losing information the task needs?

Why it matters: Questions give a context layout, a call volume and a budget and ask where token use or cost can safely drop.

Every part of a request fills the context window, and a fuller window can hurt accuracy. Caching cuts the price of a stable prefix but not its size. So you cut size by keeping unneeded material out, and cut cost by caching what repeats.

Step 2 of 9

Term Meaning
Cache prefix Tools, then system, then messages, up to the block marked with cache_control.
Cache breakpoint The block marked with cache_control; it should end the static part of the prompt.
Cache lifetime How long a cached prefix lasts: 5 minutes by default, refreshed free on each use.
Context rot Accuracy and recall degrading as the token count grows.

Step 3 of 9

Every part of the request counts toward context. That includes the system prompt, tool definitions and every message. Tool results, images and documents count as well. Extra tokens are not free in quality either, because recall degrades as context grows.

Step 4 of 9

Some techniques shrink context; caching only lowers the bill. Decide whether the budget limits tokens or spend, then pick accordingly.

What each technique reduces

Technique Reduces tokens in context Other effect
Programmatic tool calling Yes: intermediate results stay out of history One script replaces five tool roundtrips
Tool search Yes: much lower baseline usage Costs one extra turn of latency per lookup
Prompt caching No: cached prefixes still count Lowers what you pay for cached tokens

Exam trap Caching a long prompt does not help a context window that is too full. Cached prefixes still occupy the window.

Step 5 of 9

Put the cache breakpoint at the end of the static prefix. The cache covers tools, system and messages in that order, up to the marked block. A varying suffix, such as a timestamp, must sit after the breakpoint. So mark the last block that stays identical across the requests meant to share a cache.

Exam trap Editing a tool's name, description or parameters is not a small change. It invalidates the whole cache, including system and messages.

Step 6 of 9

The default cache lasts 5 minutes and refreshes free on use. So a prompt sent more often than every 5 minutes should stay on the default lifetime. Each call keeps the cache warm at no extra charge.

Step 7 of 9

Below the minimum length, caching silently does nothing. The request still succeeds, and no error is returned. Check the cache fields in the usage to confirm hits rather than assuming them.

Step 8 of 9

Total input is cache reads plus cache writes plus uncached input. Sum cache_read_input_tokens, cache_creation_input_tokens and input_tokens for the full count. Token counting gives an estimate without caching logic. Caching happens only when a message is actually created.

Step 9 of 9

  • Prompt caching lowers cost, but cached tokens still count toward the context window.
  • End the cached prefix before any varying content such as timestamps.
  • Changing any tool definition invalidates the entire prompt cache.
  • Programmatic tool calling keeps intermediate tool results out of the history.

Sources: Context windows - Claude Platform Docs (opens in a new tab) · Prompt caching - Claude Platform Docs (opens in a new tab) · Manage tool context - Claude Platform Docs (opens in a new tab) · Token counting - Claude Platform Docs (opens in a new tab)

Check

Check: Context Composition and Token Economics

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Cache Breakpoints and Reusable Packaging · 9 steps + check · 5 min

Domain 2 · Topic 5 of 6

Cache Breakpoints and Reusable Packaging

Step 1 of 9

Think first How should you order and package a repeated prompt so the most content is reused from cache across calls?

Why it matters: Questions describe a repeated prompt sequence and call pattern and ask where breakpoints and packaging maximize cache reuse.

The cache matches an exact prefix, built from tools, then system, then messages. So stable content goes first and anything that varies goes last, after the breakpoint. Skills and deferred tools keep extra material out of that prefix until it is needed.

Step 2 of 9

Term Meaning
Cache breakpoint A block marked with cache_control; the cached prefix ends there.
Cache prefix order Tools first, then system, then messages, each level building on the one before.
Lookback The backward search, up to 20 positions from a breakpoint, for an earlier cache entry.
Progressive disclosure Skills load only their name and description until triggered, so they add little context.
Automatic caching Caching that places its own cache breakpoint; it can be combined with explicit breakpoints.

Step 3 of 9

Put static content at the start and mark where it ends. Tool definitions, system instructions, context and examples belong first. Then mark the end of that reusable part with cache_control. A hit needs every segment up to that block to be identical.

Step 4 of 9

The breakpoint goes at the end of the static prefix. A timestamp or incoming message changes on every call. Cache writes happen only at the breakpoint. So a breakpoint on a changing block never writes a reusable entry, and the lookback cannot save the stable part behind it.

Exam trap The lookback does not rescue a breakpoint placed on the incoming message. Writes happen only at the breakpoint, so nothing stable gets cached.

Step 5 of 9

One request can set up to 4 cache breakpoints. Use them for sections that change at different rates. Automatic caching sets a breakpoint of its own. Combined with explicit breakpoints, that automatic breakpoint takes one of the 4 slots. Each breakpoint looks back at most 20 positions for an earlier entry.

Step 6 of 9

Mark the last tool to cache the whole tools prefix. Keep tool definitions stable across calls.

How tool changes affect the cache

Action Effect on cache Advice
cache_control on the last tool Caches all tool definitions Covers the first tool through the marked one
Edit a tool name or description Invalidates the entire cache Avoid edits between calls
Discover a deferred tool Cache preserved; appended inline None needed; the prefix stays untouched

Step 7 of 9

A Skill costs only its name and description until triggered. So many Skills can be installed without a context penalty.

Step 8 of 9

A cache entry exists only once the first response starts. Parallel requests should wait for that first response to get hits. The cache lasts 5 minutes by default and refreshes free when used. A prompt below the minimum length is not cached, and no error says so.

Exam trap Firing ten identical requests at once does not give nine cache hits. The entry only appears after the first response begins.

Step 9 of 9

  • Order the prompt from stable to dynamic and end the cached prefix before varying content.
  • Cache hits need prompt segments that are exactly identical up to the breakpoint.
  • A request can hold up to 4 breakpoints, and automatic caching uses one.
  • Any change to a tool definition invalidates the whole cache.

Sources: Prompt caching - Claude Platform Docs (opens in a new tab) · Agent Skills - Claude Platform Docs (opens in a new tab) · Tool use with prompt caching - Claude Platform Docs (opens in a new tab)

Check

Check: Cache Breakpoints and Reusable Packaging

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Reasoning Effort and Context Lifecycle · 9 steps + check · 5 min

Domain 2 · Topic 6 of 6

Reasoning Effort and Context Lifecycle

Step 1 of 9

Think first For an agent that runs for hours, how do you set reasoning effort and manage its context so it stays accurate without wasting tokens?

Why it matters: Questions describe a long-running agent with latency and accuracy needs and ask which effort level and context strategy fit it.

Effort applies to every output token, so it shapes cost with or without thinking; on Claude Opus 5.5 it is the primary control. Over a long session, compaction and the memory tool keep the working context small while saving what must persist.

Step 2 of 9

Term Meaning
Effort A setting that scales every output token: text, tool calls and thinking.
Context editing Clearing old tool uses and results from the prompt once it passes a set trigger.
Compaction Summarizing the conversation so the active context stays small, with no bookkeeping in your client.
Memory tool A client-side tool: Claude requests memory operations and your app runs them on storage you control.

Step 3 of 9

Effort applies to all output, with or without thinking. It covers text, tool calls and thinking alike. Turning effort down also gives you fewer, shorter tool calls. Most models default to high; Claude Opus 5.5 and Claude Haiku 5.5 default to medium.

Step 4 of 9

Match the level to the task's length and depth. Low suits simple, fast work such as subagents. The xhigh level targets long agentic and coding tasks. On Claude Opus 5.5, effort can change mid-conversation through a per-message output_config that keeps the prompt cache.

Effort levels for agent workloads

Level Fits Trade-off
low Simpler tasks needing speed and low cost, such as subagents Significant token savings, some capability loss
xhigh Agentic and coding tasks over 30 minutes Token budgets in the millions; set a large max_tokens

Exam trap On Claude Opus 5.5, you cannot save tokens by disabling thinking. Adaptive thinking is always on, and a disabled-thinking request returns a 400 error.

Step 5 of 9

Give xhigh and max effort a generous max_tokens. max_tokens is a hard limit on thinking plus response text together. A small cap can cut off a long, deep answer before it finishes.

Step 6 of 9

Context editing clears tool results past a trigger. The clear_tool_uses_20250919 strategy triggers at 100,000 input tokens by default. It then keeps the 3 most recent tool use and result pairs, dropping the oldest first. Use exclude_tools for tools whose results must never be cleared.

Exam trap Clearing is not free: it invalidates cached prompt prefixes. Set clear_at_least so each clearing removes enough tokens to justify the cache loss.

Step 7 of 9

Claude gets a warning before context is cleared. When context editing runs with the memory tool, the warning arrives near the clearing threshold. Claude can then save key facts to memory files. Your application performs each memory operation against its own storage.

Step 8 of 9

Long-running agents can use compaction and memory together. Compaction keeps the active context small. Memory holds the information that must survive summarization. Where on-demand compaction is available, prefer it over threshold compaction.

Step 9 of 9

  • Effort affects every output token, so it changes cost even when thinking is off.
  • Use low effort for subagents and xhigh for agent tasks longer than 30 minutes.
  • Context editing triggers at 100,000 input tokens and keeps 3 tool pairs by default.
  • Combine compaction with the memory tool so key facts survive summarization.

Sources: Effort - Claude Platform Docs (opens in a new tab) · Memory tool - Claude Platform Docs (opens in a new tab) · Context editing - Claude Platform Docs (opens in a new tab) · Compaction overview - Claude Platform Docs (opens in a new tab)

Check

Check: Reasoning Effort and Context Lifecycle

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Domain 2 · after the last topic

Domain 2 review

Each topic's Check tested it on its own; this mixes them.

Mixed quiz

Take the Domain 2 quiz

9 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.

Flashcards

Domain 2 flashcards

12 cards with this domain's key facts. Flip each one and check what you knew. No account needed.

Test yourself in exam conditions

A full Claude Certified Architect – Professional mock exam: 70 questions in 120 minutes, scored against the real exam's pass mark. Your first one is free.

Start a free mock exam
Next domain · 21% of the examIntegration8 topics

Report a problem

On “”. Tell us what looks wrong; we read every report.

What is the problem?

Optional.