CCAR-F sample questions with answers

10 free practice questions for the Claude Certified Architect: Foundations exam. Try each one, then open the answer to see why the right option wins and every other option loses.

Question 1Agentic Architecture & Orchestration

A platform team rewrites the instructions its agent appends to the system prompt, ships the change, and asks users to resume their existing investigations so the new wording takes effect. Sessions started after the deploy behave as intended; resumed ones keep following the old wording for hours, then abruptly start following the new one. What accounts for both halves of that?

  1. A.

    Resumed sessions read the appended text lazily on the first turn that actually needs it, so the change lands whenever the conversation next touches a topic the instructions cover, which is why the switchover looks abrupt and unrelated to elapsed time.

  2. B.

    Appended instructions are cached by the API for a fixed period keyed on their text, so a resumed session reads the previous cached block until the entry expires; the switchover time is the cache lifetime rather than anything about the session itself.

  3. C.

    The system prompt is recorded on a session's first request and that record is reused until the session is compacted, so the new text reaches a resumed session only after compaction, or in a new session.

  4. D.

    Resumed sessions load the appended text from the transcript rather than from the deploy, and the transcript is rewritten whenever the session is renamed, so the sessions that switched over are the ones whose users happened to rename them.

Show answer

Answer: C

A session records its system prompt on the first request and keeps using that record until it is compacted.

  • A. System prompt text is not loaded lazily per topic; it is fixed for the request.
  • B. Prompt caching affects cost and latency, not which system prompt text a session uses.
  • C. Matches the documented recording behaviour and explains the post-compaction switchover.
  • D. Renaming a session changes a label and does not rebuild its recorded system prompt.
Question 2Agentic Architecture & Orchestration

An engineer resumes her named investigation the next morning and finds that the MCP tools it used are missing and that a directory the agent had been reading is no longer accessible. She wants a checklist of what she has to supply again on the command line when she resumes, rather than rediscovering it each time. Select the three items she must pass again.

Choose 3.

  1. A.

    The permission rules and other configuration held in the project's standard settings files, which have to be re-applied because a resumed process starts from a blank configuration state.

  2. B.

    The fallback model list she supplied with the fallback-model flag.

  3. C.

    Any extra working directories she granted with the add-dir flag at launch, and any she added mid-session with the equivalent slash command.

  4. D.

    The model the session was using, which otherwise reverts to the account default on every resume regardless of whether that model is still available.

  5. E.

    The MCP server configuration she originally loaded with the MCP config flag.

  6. F.

    The subagent the session was launched as, which otherwise falls back to the default toolset even when the agent definition is still present in the project.

Show answer

Answer: B, C, E

Launch-time configuration flags are not restored on resume; session state such as model and agent is.

  • A. Standard settings files are re-read at launch, so their configuration does not need passing again.
  • B. The fallback-model flag is listed among the flags a resumed session does not restore.
  • C. Directories added at launch or mid-session are not restored, though the picker still uses them to locate the session.
  • D. The session continues on the model it was using, except when that model is retired, disallowed, or overridden.
  • E. The MCP config flag is named in the documentation as one you must pass again.
  • F. A session started as an agent continues as that agent, keeping its tool restrictions and model.
Question 3Agentic Architecture & Orchestration

A privacy review asks the team to demonstrate that full bank account numbers are not handled by the agent. The team points to a post-tool hook that replaces the payment tool's result with a masked copy before the model reads it. The reviewer asks two questions: what the monitoring pipeline recorded, and what the payment provider was sent. How should the team answer, and what would actually satisfy the requirement?

  1. A.

    The replacement only changes what Claude sees; the tool has already run, so the request went out and telemetry such as tool spans and analytics events captured the original output before the hook ran - preventing or reshaping the call needs a PreToolUse hook, and the provider-side exposure needs a change outside the agent.

  2. B.

    Post-tool replacement is performed by the runtime rather than in the application process, so neither the raw result nor the request ever exists in the team's environment; the reviewer's questions apply to the provider's systems and not to the agent at all.

  3. C.

    The replacement is applied to the tool result before it is recorded, so telemetry holds the masked copy and the reviewer's first question is already answered; only the outbound request needs attention, and rewriting it with updatedToolOutput on the same hook covers that as well, because the field is applied to the recorded request as well as to the result that is delivered onward.

  4. D.

    Because the hook returns a masked value, the runtime marks the original result as redacted and drops it from the transcript and from monitoring; the remaining gap is the model's context window, which retains the unmasked copy until the next compaction.

Show answer

Answer: A

updatedToolOutput changes only what Claude sees; the call already happened and telemetry recorded the original.

  • A. Matches the documented warning on scope, telemetry capture and the PreToolUse alternative.
  • B. The tool ran in the team's environment and its result existed there before any replacement.
  • C. Telemetry captures the original before the hook runs, and updatedToolOutput cannot reshape an outbound request.
  • D. There is no redaction marking that removes the original from the transcript or from monitoring.
Question 4Agentic Architecture & Orchestration

The per-file passes are delegated to the built-in exploration agent because it is fast and read-only. The findings are accurate about the code but repeatedly contradict conventions the team has written down in its project memory file - they flag an approved logging idiom as a defect, and miss a naming rule the file mandates. Custom agents in the same codebase do not behave this way. What is the documented cause?

  1. A.

    The exploration agent is one-shot and cannot be resumed, so it never gets a second turn in which the memory files would be loaded; delegating the same work to a resumable agent and sending it a follow-up message makes the conventions available on the second turn.

  2. B.

    The exploration agent inherits the main conversation's model but not its system prompt, and the memory files are delivered as part of the system prompt, so the conventions are lost along with it; setting the model explicitly on the delegation restores both.

  3. C.

    The exploration and planning agents skip the memory files and the git status snapshot that other subagents receive, so a pass that must apply project conventions needs a custom agent, or the conventions written into its prompt.

  4. D.

    The exploration agent runs with a reduced tool set that excludes file reads outside the files named in its prompt, so it cannot open the memory file even though it is loaded; adding the memory file to the prompt's file list resolves it.

Show answer

Answer: C

The built-in exploration and planning agents skip project memory files and the git status snapshot that other subagents get.

  • A. Being one-shot concerns resumability, not whether memory files load.
  • B. Memory files are a separate part of the subagent's context, and the model choice does not carry them.
  • C. Names the documented exception for the built-in explorers and the two workable remedies.
  • D. The explorer has read-only tools but is not limited to files named in its prompt.
Question 5Agentic Architecture & Orchestration

Two engineers each resumed the same completed analysis session, in separate terminals, to try a different refactoring approach from the same baseline. Neither branched. Each now sees the other's prompts and the agent's answers to them appearing in her own conversation, and the answers reference work she did not do. What happened?

  1. A.

    The second resume displaced the first, so one engineer is working in the original session while the other is in an automatically created copy.

  2. B.

    Resuming a completed session replays its history into a new conversation, and the two replays were served from a shared cache of the same analysis.

  3. C.

    Resuming does not copy the conversation, so both processes are appending to one transcript and each sees the other's turns interleaved into it.

  4. D.

    Each resume created its own copy, and the two are being reconciled into a single history when both processes write to the same directory.

Show answer

Answer: C

Resuming continues one conversation; two processes resuming it write into the same transcript and interleave.

  • A. Nothing displaces the first resume or creates a copy on the second; copying requires forking.
  • B. Resuming continues the stored conversation rather than replaying it into a new one.
  • C. Resume continues the same conversation, so concurrent resumes interleave into one transcript.
  • D. There is no reconciliation step, because there were never two copies to reconcile.
Question 6Agentic Architecture & Orchestration

A support team puts its ordering rule - no refund before identity verification - inside the canUseTool callback of its Agent SDK application, on the reasoning that every tool call must pass through that callback. Because routine refunds should not stall, the refund tool is also named in allowedTools. In testing, the callback is never entered for a refund call and unverified refunds go through. What is happening, and what should carry the rule instead?

  1. A.

    canUseTool is only invoked in interactive sessions that can display a prompt, so the rule holds during manual testing but is skipped in the non-interactive runs the team is using; moving the same code into a PermissionRequest hook restores it.

  2. B.

    The callback is only consulted for tools that come from MCP servers, and because the refund tool is registered through the application's own in-process server rather than an external one, the SDK resolves it at the permission mode step instead of calling back into application code.

  3. C.

    A call approved earlier in the permission evaluation, including by an allowedTools entry, never reaches canUseTool, so the check is silently skipped; a PreToolUse hook runs before every other step and sees every call.

  4. D.

    The callback is being cancelled by its abort signal before it can return a decision, which the SDK treats as an approval; raising the callback's timeout and handling the signal explicitly will make the rule take effect on subsequent refund calls.

Show answer

Answer: C

allowedTools pre-approves a tool, and an approved call never reaches canUseTool; only a PreToolUse hook runs on every call.

  • A. The callback is not interactive-only, and a PermissionRequest hook fires only when a prompt would be shown, so it would be skipped here as well.
  • B. canUseTool is not restricted to external MCP tools; in-process SDK tools go through the same evaluation flow as any other tool.
  • C. Matches the documented order: an allow rule resolves the call before the callback step, and PreToolUse is the layer that runs on every call.
  • D. A cancelled callback is not treated as an approval, and the symptom is that the callback is never entered at all rather than timing out.
Question 7Agentic Architecture & Orchestration

A coordinator splits "assess the freight-capacity shortage" across three specialists with the briefs "research the freight-capacity shortage", "research the freight-capacity shortage" and "research freight capacity". The report that comes back covers a shortage from several years ago in great depth, repeats several findings, and barely mentions the current one. What is the documented diagnosis?

  1. A.

    The specialists lacked a shared memory, so none could see that another had already covered the earlier shortage; enabling persistent memory on the specialist definition lets them deconflict without coordinator changes.

  2. B.

    The coordinator synthesised before all three had returned, so the current-shortage findings arrived too late to be included; making the delegations blocking rather than background resolves the missing coverage.

  3. C.

    Three specialists is too few for a topic of this breadth, and the coverage gap is a fan-out problem; the same briefs distributed across ten specialists would cover the current shortage because more searches reach more sources. Coverage shortfalls of this kind are consistently a fan-out problem rather than a briefing defect.

  4. D.

    The briefs are too vague to divide the work: with no time window, no distinct angle and no boundaries, specialists independently chose different interpretations and duplicated searches, which is the reported failure mode of simple instructions like these.

Show answer

Answer: D

Vague, near-identical briefs cause both the duplication and the era mismatch; boundaries are the missing element.

  • A. Agent memory does not give concurrently running specialists visibility of each other's in-flight work.
  • B. The evidence shows skewed coverage and duplication, not a report truncated by early synthesis.
  • C. More specialists with the same ambiguous brief reproduce the same overlap and the same interpretation drift.
  • D. Matches the documented failure of vague briefs: duplicated searches plus divergent interpretations of scope.
Question 8Agentic Architecture & Orchestration

A refund must never exceed the order total. The refund tool is an MCP tool that a billing team owns and that three other applications also call. An architect must decide whether to enforce the invariant in the agent, by intercepting the call, or inside the tool itself. What should the decision turn on?

  1. A.

    Whether the rule protects the data or the agent's behaviour: an invariant that must hold for every caller belongs in the tool, while rules about how this agent works belong in its interception layer.

  2. B.

    Whether the agent has the order total in context, because an interception layer can only evaluate a rule using values the model has already retrieved.

  3. C.

    Whether the tool returns structured errors, since an invariant can only be enforced where a violation can be reported back in a machine-readable form.

  4. D.

    Which team can ship the change sooner, since both placements enforce the rule identically once deployed and only delivery time distinguishes them.

Show answer

Answer: A

An invariant that must hold for every caller belongs in the shared tool; agent-specific workflow rules belong in the agent's interception layer.

  • A. Shared invariants belong with the operation; agent-specific and conversation-dependent rules belong in interception.
  • B. An interception layer can read the call's arguments and look up whatever else it needs; it is not limited to the model's context.
  • C. Error formatting affects how well the agent recovers, not where an invariant can be enforced.
  • D. The placements are not equivalent: only one of them covers the other three callers.
Question 9Agentic Architecture & Orchestration

A team believes it has made a rule deterministic by moving it out of the system prompt and into a hook. The hook does not decide anything: on every refund call it returns additionalContext reading, as a directive, that the agent must not refund without verification. Occasionally the agent surfaces the text to the user as something suspicious instead of acting on it. Two things are wrong here. What are they?

  1. A.

    The rule is now deterministic, but the text exceeds the length at which the runtime writes it to a file and passes a path with a preview, so the agent is quoting the preview back to the user; shortening the string resolves both the visibility and the enforcement question.

  2. B.

    Injected context is advisory, and the second defect is that additionalContext is not honoured on PreToolUse at all - it is documented for session and prompt events only - so the string is being delivered to the user as an unhandled hook output.

  3. C.

    Injected context is still advice, so nothing became deterministic; and the guidance is to write the text as factual statements rather than out-of-band system commands, because command-shaped text can trigger prompt-injection defences and be surfaced to the user.

  4. D.

    Injected context is deterministic in the sense that it always arrives, and the real defect is placement: additionalContext returned from a PreToolUse hook is delivered at the start of the next turn rather than with the call, so the agent reads it after the refund has already been attempted.

Show answer

Answer: C

Context injection is still persuasion, and command-shaped injected text can trip prompt-injection defences.

  • A. The large-value handling writes the text to a file and passes a path; it does not turn advice into enforcement.
  • B. additionalContext is documented on PreToolUse and the other tool events, not only on session and prompt events.
  • C. Names both documented problems: context is advisory, and command-shaped text can trip injection defences.
  • D. additionalContext on PreToolUse is delivered alongside the tool result, and arriving reliably is not the same as enforcing.
Question 10Agentic Architecture & Orchestration

A resumed session is told that three modules changed and to re-read them. Two are re-read successfully; the third was deleted in the refactor and its responsibilities were absorbed elsewhere. The agent reports that it could not read the file, then continues to answer questions using that module's behaviour as it recorded it earlier. What is the right instruction, and why?

  1. A.

    State that the module was removed and where its responsibilities went, because a failed read tells the agent nothing about what is now true.

  2. B.

    Start a fresh session, because a resumed session cannot retract a conclusion once the file it was based on no longer exists.

  3. C.

    Ask the agent to treat any file it cannot read as removed, so that a read failure is enough to retire the earlier analysis of it.

  4. D.

    Ask the agent to re-read the whole directory, so the absence of the file is evident from what the listing does and does not contain.

Show answer

Answer: A

A deletion has to be stated, because a read that fails is an error rather than a fact about the code, and the old contents remain in the conversation.

  • A. The removal has to be asserted, since a failed read is an error and the old contents remain in context.
  • B. Restarting is disproportionate when one sentence retires the stale material and redirects the agent.
  • C. Read failures have many causes, so this would discard sound analysis after a transient error.
  • D. Inferring a deletion from an absence in a listing is indirect and easily missed.

Keep going with 1,972 more CCAR-F questions

Free papers every day, in the real exam formats, with progress by exam domain. Unlock every paper and timed mock exam when you are ready.

CCAR-F sample questions with answers (10 free) · CertifyAIx