CCA-F · 10 questions

Claude Certified Architect – Foundations sample questions

Practise the rest free

Question 1

Domain 1: Agentic Architecture & Orchestration · Scenario: Customer Support Resolution Agent

Two rules must hold for the support agent. First, an internal account number must never be sent to the third-party shipping tool. Second, the customer email addresses that the CRM tool returns must never enter the model's context. A colleague proposes a single PostToolUse hook to handle both. What is the correct arrangement?

  1. AStrip the account number in a PreToolUse hook and redact the addresses in a PostToolUse hook.
  2. BHandle both rules in one PostToolUse hook that inspects the arguments sent and the result returned.
  3. CHandle both rules in one PreToolUse hook that inspects the call before the tool runs.
  4. DState both rules in the system prompt so the model withholds the values itself.
Show answer

Answer: A

The two rules point in opposite directions, so they need the two interception points the hooks documentation names for redaction: PreToolUse for outbound tool inputs and PostToolUse for inbound tool results. A PreToolUse hook can rewrite the arguments before the shipping call runs, and a PostToolUse hook can replace the CRM result before the model reads it. A single PostToolUse hook is the colleague's proposal and fails the first rule: the documentation states that the tool has already run by the time it fires, so the account number has already been sent.

  • B. PostToolUse fires after the tool has run, so the account number has already reached the third party. The documentation says replacing output there only changes what Claude sees.
  • C. PreToolUse fires before execution, so the CRM result it would have to redact does not exist yet. Inbound results are the PostToolUse side of the documented split.
  • D. A prompt instruction governs what the model chooses to do and guarantees nothing for a data-handling rule; hooks run deterministically at fixed points in the tool lifecycle.

https://code.claude.com/docs/en/hooks

Source: code.claude.com/docs/en/hooks

Question 2

Domain 2: Tool Design & MCP Integration · Scenario: Customer Support Resolution Agent

A support agent answers order questions through run_sql(query), a broad tool on the orders database. In a sample of 1,000 calls, 7 queries scanned whole tables and 1 attempted an UPDATE. The agent only ever needs order status, items and delivery dates by order id. Which approach should you take?

  1. AReplace run_sql with a get_order_details(order_id) tool that validates the id.
  2. BAdd a line to the run_sql tool description listing the tables and columns the agent may query.
  3. CConnect run_sql to the database through a read-only user.
  4. DHave a second model review each run_sql query before it executes.
Show answer

Answer: A

The agent's real need is narrow — order details by id — yet it holds a tool that can express any query. Replacing the broad tool with a constrained one that validates its input removes the table scans and the UPDATE at the source: the only accepted input is a well-formed order id, and the output is the fields needed. That follows the guidance to enforce expected inputs and outputs with strict data models, and MCP's rule that servers validate all tool inputs. A read-only user stops writes but still allows expensive scans, and a reviewing model adds a call per query.

  • B. A description of allowed tables is guidance; the tool still accepts any SQL, including scans and writes.
  • C. Read-only credentials block the UPDATE but leave arbitrary, table-scanning queries possible.
  • D. A second model reviewing SQL adds latency and its own error rate to compensate for an interface that is too broad.

https://www.anthropic.com/engineering/writing-tools-for-agents

Source: modelcontextprotocol.io/specification/2026-07-28/server/tools, www.anthropic.com/engineering/writing-tools-for-agents

Question 3

Domain 3: Claude Code Configuration & Workflows · Scenario: Code Generation with Claude Code

Four rounds of rewording the instruction "match our error-handling style" have not settled the generated handlers: roughly half come back wrapping errors in a custom type and half return them bare. Both shapes exist in the codebase, and the team prefers the wrapped one. What is the most effective next step?

  1. AEmphasise the instruction with IMPORTANT and ALWAYS written in capital letters.
  2. BWrite a longer prose description of the wrapped style, covering each case the codebase contains.
  3. CMove the session to a larger model and keep the current instruction.
  4. DPut a short before-and-after example of the wrapped shape in the instruction, in place of more prose.
Show answer

Answer: D

The instruction is underspecified in kind, not in length: 'our error-handling style' names two shapes that both exist in the repository, so the model picks between them. Anthropic ranks examples among the most reliable ways to steer output format and structure, and a short before-and-after pair shows the wrapped shape directly. A longer prose description is the tempting next step, but four rounds of rewording have already failed, and more description still leaves the model to infer which of the two shapes is meant.

  • A. Emphasis raises the priority of an instruction that is already ambiguous, so the model applies the wrong shape more insistently. Anthropic's guidance favours giving the reason and the concrete target over stronger wording.
  • B. This is the fifth round of prose after four that failed. More description of a style still leaves the model to infer which of the two observed shapes is meant.
  • C. A larger model still reads an instruction that fits both shapes found in the codebase. The guidance's remedy for an ambiguous target is a concrete example, not a different model.

https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Source: platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Question 4

Domain 4: Prompt Engineering & Structured Output

A support agent's persona and house rules are sent as the opening user message of each conversation. In sessions past 25 turns, 9% of replies drop the house tone, and in two transcripts a customer overrode a rule by writing a contradicting instruction of their own. Where should the persona and house rules be supplied?

  1. AIn the opening user prompt as now, restated in capitals so the rules carry more weight.
  2. BIn the system prompt, as the agent's standing role and rules, kept apart from the customer's turns.
  3. CIn a user message appended after the customer's latest text on every turn of the conversation.
  4. DIn the first assistant turn, written as the agent introducing itself and promising to keep the rules.
Show answer

Answer: B

The persona and house rules are standing instructions from the developer, not part of the conversation. The prompting guide says setting a role in the system prompt focuses Claude's behaviour and tone for the use case, and the request carries that field separately from the turns in the messages array. Re-sending the rules as a user message every turn is the strongest lure, because it keeps them recent, but it leaves them in the channel the customer writes in, which is how the two transcripts saw a rule overridden. The system prompt gives them a fixed place ahead of every turn.

  • A. Capitals change emphasis, not position: the rules still sit in a user turn the customer can contradict and that recedes as the session grows. The prompting guide advises dialling back forceful wording rather than adding it.
  • C. Re-sending the rules each turn keeps them recent but leaves them in the same channel as the customer's text, so a contradicting customer instruction competes on equal terms. The guide places the role in the system prompt.
  • D. An assistant turn is part of the conversation history the customer is replying to, so it recedes as the session grows and can be argued with like any other turn. The role belongs in the system prompt.

https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Source: platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Question 5

Domain 5: Context Management & Reliability · Scenario: Multi-Agent Research System

A synthesis agent receives the research question and formatting rules first, then 14 source excerpts of 3,000 tokens each appended in arrival order. Reviewers find that the report leans on early excerpts and that sources cannot be told apart in citations. What change most effectively addresses this?

  1. ASort the excerpts shortest first and longest last, keeping the question at the top.
  2. BAdd an instruction asking the agent to give equal attention to every excerpt regardless of position.
  3. CSplit the excerpts across two separate synthesis calls and concatenate the two reports afterwards.
  4. DPlace the excerpts first in document tags with sources, and the question last.
Show answer

Answer: D

Two problems share one fix. The layout puts the query ahead of 42,000 tokens of excerpts, and Anthropic's long-context guidance is to place long documents near the top, above the query, instructions and examples; it reports that queries at the end can improve response quality, especially with complex, multidocument inputs. Wrapping each excerpt in document tags with its source also gives the report a label to cite for every claim. Sorting by length keeps the query in the wrong place, an equal-attention instruction leaves the layout unchanged, and two concatenated reports lose cross-source synthesis.

  • A. Reordering by length leaves the query ahead of the documents, the layout the guidance advises against.
  • B. An equal-attention instruction changes neither the layout nor the labels: the query still precedes the excerpts and sources remain untagged.
  • C. Separate reports cannot compare or reconcile sources across the split, which synthesis requires.

https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Source: platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices

Question 6

Domain 1: Agentic Architecture & Orchestration · Scenario: Multi-Agent Research System

A coordinator built on the Agent SDK delegates to a document-analysis subagent. Since the team upgraded Claude Code from 2.1.40 to the current release, their dashboard, which counts tool_use blocks named "Task", has recorded zero delegations across 30 runs, yet every report still contains the subagent's analysis. What should you check first?

  1. AWhether each subagent definition declares a model field that the current release still accepts.
  2. BWhether the coordinator's system prompt names the document-analysis subagent explicitly.
  3. CWhether the dashboard also matches the tool name that current releases emit in tool_use blocks.
  4. DWhether the coordinator's allowedTools list still includes Task under its original spelling.
Show answer

Answer: C

The reports prove delegation is happening, so the fault lies in how it is counted. The SDK documentation says the spawn tool appears as Agent in tool_use blocks, that before v2.1.63 those blocks named it Task, and that detection should match both values to keep working across versions. Checking allowedTools is the tempting alternative after an upgrade, but the old Task spelling still works as an alias, and a coordinator that could not spawn would not produce the subagent's analysis at all.

  • A. A definition may omit the model, and Claude Code then picks one in the documented subagent model order. The reports also show the subagent ran, so its definition is being honoured.
  • B. Naming a subagent in a prompt makes Claude more likely to pick it, but selection is not the fault here: the reports show the subagent is already being invoked.
  • D. Existing Task references still work as aliases after the rename to Agent, and the reports show delegation succeeding, so the permission list is not what changed.

https://code.claude.com/docs/en/sub-agents

Source: code.claude.com/docs/en/agent-sdk/subagents, code.claude.com/docs/en/sub-agents

Question 7

Domain 2: Tool Design & MCP Integration · Scenario: Structured Data Extraction

An extraction tool, extract_invoice_fields, is described only as "Gets invoice fields." Claude calls it on receipts and purchase orders, and often leaves out the optional currency parameter even when the document shows one; 20% of runs mis-route or drop a field. Every property in the input schema is already typed. What most effectively reduces the misuse?

  1. ATighten the JSON schema further and mark every remaining field in it as required.
  2. BForce the extraction tool on every request by setting tool_choice to that named tool.
  3. CRewrite the description to cover the tool's purpose, when to avoid it, and each parameter.
  4. DSplit the tool into several smaller tools, one for each invoice field it extracts.
Show answer

Answer: C

The tool is misused because its description does not say what it is for or how its parameters behave. Anthropic's define-tools guidance is explicit that an extremely detailed description, covering what the tool does, when it should and shouldn't be used, and what each parameter means, is by far the most important factor in tool performance. A stricter schema is the tempting alternative, but a schema validates the shape of a call that is already being made; it does not tell the model when the tool applies, so the wrong-document calls continue.

  • A. The schema already types every property, and a schema validates the shape of a call that is made; it does not tell the model when the tool applies. Requiring more fields does nothing about the tool being chosen for receipts and purchase orders.
  • B. Forcing the tool makes the wrong-document problem worse: it removes the model's ability to decline the tool on inputs where it does not apply, which is exactly some of the mis-routing.
  • D. Splitting one tool into many multiplies the selection decision without fixing why the model chose wrongly. Each fragment still needs a clear description, and more thinly-described tools usually raise selection errors rather than lower them.

https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools, www.anthropic.com/engineering/writing-tools-for-agents

Question 8

Domain 3: Claude Code Configuration & Workflows · Scenario: Developer Productivity with Claude

A /deploy-staging skill has fired on its own four times this month when an engineer merely mentioned staging while discussing something else. Nobody wants it removed — they want it to run when, and only when, somebody types the command. What is the correct change?

  1. ASet user-invocable to false in the skill's frontmatter.
  2. BDelete the description field so Claude has nothing to match the conversation against.
  3. CMove the skill from .claude/skills/ to ~/.claude/skills/ so it is out of the project's automatic scope.
  4. DSet disable-model-invocation to true in the skill's frontmatter.
Show answer

Answer: D

The requirement is that only a person can start the skill, and disable-model-invocation: true does exactly that: Claude stops loading it on its own, while typing /deploy-staging still runs it. The same setting also keeps the skill from being preloaded into subagents or fired by a scheduled task. Setting user-invocable to false is the tempting near-miss, but it works the other way round: it hides the skill from the / menu and stops a typed command from running it, while Claude can still invoke it.

  • A. user-invocable: false hides the skill from the / menu and stops a typed /deploy-staging from running it, while Claude can still invoke it on its own: the reverse of what the team wants.
  • B. Removing the description does not remove the signal: when the field is omitted, Claude Code uses the first non-empty line of the markdown content instead. The skill can still be picked up, now on text nobody wrote as a trigger.
  • C. Scope decides who can see the skill, not who invokes it. A personal skill is loaded automatically on the same terms, and the rest of the team loses the command.

https://code.claude.com/docs/en/skills

Source: code.claude.com/docs/en/skills

Question 9

Domain 4: Prompt Engineering & Structured Output · Scenario: Structured Data Extraction

An extraction service moving to Claude Opus 5.5 sets tool_choice to a type of any so that record_fields is always called, and every request now returns a 400 error. The team must stay on this model and still needs schema-valid tool inputs on every call. What change should they make?

  1. AUse auto with strict tool use, or structured outputs for a fixed JSON response.
  2. BSwitch to forced tool use with tool_choice naming record_fields.
  3. CEnable manual extended thinking with a budget.
  4. DRemove tool_choice and parse the model's prose answer into the record_fields schema in application code.
Show answer

Answer: A

Forced tool use is not available on every model. The tool-use docs list Claude Opus 5.5 among the models that reject forced tool use regardless of thinking settings: both any and a forced named tool return a 400 error. The documented alternative is tool_choice auto with strict tool use, which guarantees schema-valid tool inputs, or structured outputs when the need is a response in a fixed JSON shape. Naming the tool is the other forced form and fails the same way, and manual extended thinking itself does not support any or tool.

  • B. A named tool is also forced tool use; on Claude Opus 5.5 both any and tool return a 400.
  • C. Manual extended thinking is listed as a setting under which any and tool result in an error, not one that enables them.
  • D. Parsing prose throws away the schema guarantee the team needs; strict tool use keeps it with auto.

https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools

Question 10

Domain 5: Context Management & Reliability · Scenario: Multi-Agent Research System · Select 2

An MCP search tool returns isError true with the text "no results" when a query runs and matches nothing, and its error wording has changed twice this quarter. Genuine failures come back the same way, whether the index timed out or the query was rejected as malformed. The coordinator retries every error with exponential backoff and spends roughly 18% of the run's tool budget on retries that could not succeed. Which TWO changes most effectively fix this? Select exactly 2 answers.

  1. ARemove the retry logic from the coordinator, so that a failed tool call is not retried.
  2. BRaise the coordinator's tool budget, so the wasted retries no longer exhaust it before the run completes.
  3. CReturn isError false with an empty result when a query runs and matches nothing.
  4. DHave the coordinator inspect the error text for the phrase "no results" and skip the retry whenever it matches.
  5. EHave the subagent retry transient failures a bounded number of times and pass up the rest marked retryable or not.
Show answer

Answer: C, E

Two different signals are being collapsed into one. A search that ran and matched nothing is a successful call, and the MCP specification lists execution errors as API failures, invalid input and business-logic faults, so the tool should report an empty result rather than an error. Genuine failures then need sorting: retrying a timed-out index a bounded number of times close to the source, and labelling whatever is left as worth retrying or not, stops the coordinator backing off on a malformed query that can never succeed. Matching the phrase "no results" is the strongest lure, but the wording has changed twice this quarter, so the next change quietly restores the waste.

  • A. It removes recovery from real transient failures along with the waste. A momentarily unreachable index would then become a permanent coverage gap.
  • B. This funds the waste rather than stopping it. The run gets more expensive and the 18% is still spent on retries that could not succeed.
  • C. A search that ran and matched nothing is a successful call, so it should return an empty result, not an error. That removes the false failures the coordinator was retrying, whatever the wording of the text.
  • D. String-matching an error message is a fragile contract built beside a structured one that already exists. The next wording change silently restores the bug.
  • E. Genuine failures differ: a timed-out index may recover, a malformed query never will. Bounded retries near the source, plus a retryable or not label on what is passed up, stop the coordinator backing off on calls that cannot succeed.

https://modelcontextprotocol.io/specification/2026-07-28/server/tools

Source: modelcontextprotocol.io/specification/2026-07-28/server/tools, www.anthropic.com/engineering/multi-agent-research-system

Practise the rest free