CCAR-F · Sample questions
CCAR-F sample questions with answers and explanations
10 real questions from the CertifyDeck CCAR-F bank, spread across the domains of the official Claude Certified Architect – Foundations skills outline, with the correct answer and a full explanation of why the other options are wrong. They are original questions written from the public syllabus, not exam dumps, and they are the same style you will find in the practice tests and mock exams.
- Question 1Domain: Context Management & ReliabilityMedium
A due-diligence coordinator asks a records subagent whether a supplier has prior contracts. The subagent returns no records found both when the query genuinely matched nothing and when the contracts database timed out. One report stated that a supplier had no prior contracts while the database was down. The coordinator must be able to tell these cases apart. Which approach should you take?
- A.Append a standard caveat to every report saying that some databases may have been unavailable when the research was carried out.
- B.Report a timeout as an access failure the coordinator may retry, and a query with no matches as a successful empty result.
- C.Have the coordinator automatically retry every query that comes back with no records, since an empty answer may hide a database outage.
- D.Treat every empty result as a failure and send each such case to a human analyst to confirm before the report includes the finding.
Show answer and explanation
Correct answer: B. Report a timeout as an access failure the coordinator may retry, and a query with no matches as a successful empty result.
Explanation
The two situations need different decisions, so they must be reported differently: an access failure invites a retry or a coverage note, while a successful query with no matches is a real finding. Retrying every empty result wastes calls on genuine absences, sending all empty results to humans overloads review for cases that are valid answers, and a blanket caveat does not tell the coordinator which finding is unreliable.
Official references
- Question 2Domain: Context Management & ReliabilityEasy
In a due-diligence system, a document-analysis subagent reads a company's filings and finds that two reports give different employee counts for the same year. The subagent currently keeps the figure from the newer report and drops the other without mentioning it. Only the coordinator sees the results of all subagents, and it must decide how conflicts are reconciled before synthesis. Which approach should you take?
- A.Have the subagent finish its analysis and return both counts with their sources, annotated as a conflict for the coordinator to resolve.
- B.Have the subagent keep the newer figure and write the dropped value to a debug log that is kept outside the results it returns.
- C.Have the subagent report the average of the two counts as the employee figure, so that neither source is ignored in the analysis.
- D.Have the subagent stop and return an error to the coordinator as soon as it finds the conflicting counts, leaving the remaining filings for later.
Show answer and explanation
Correct answer: A. Have the subagent finish its analysis and return both counts with their sources, annotated as a conflict for the coordinator to resolve.
Explanation
The coordinator owns reconciliation, so the subagent must complete its work and pass both values with their sources and an explicit conflict annotation, as Anthropic's research subagent prompt does when facts cannot be reconciled. Keeping the newer figure and logging the other elsewhere still hides the conflict from the coordinator. Stopping at the first conflict leaves the analysis incomplete, and averaging produces a number that neither filing reports.
Official references
- Question 3Domain: Claude Code Configuration & WorkflowsEasy
Your team must replace an HTTP client library used in about 50 files, with call patterns that differ between services. The tech lead wants Claude Code to study the codebase and propose a migration approach, and no file may change until the lead has reviewed and approved that approach. Which approach should you take?
- A.Start in default mode and write do not edit any files yet at the top of the prompt.
- B.Start in acceptEdits mode and ask Claude to describe its approach before the first edit.
- C.Start in auto mode so the classifier blocks any risky edit made during the migration.
- D.Start in plan mode so Claude researches and proposes a plan, editing only after approval.
Show answer and explanation
Correct answer: D. Start in plan mode so Claude researches and proposes a plan, editing only after approval.
Explanation
Plan mode has Claude read files, explore and write a plan without editing source, and edits stay blocked until you approve the plan, which matches a multi-file migration that needs review first. A do-not-edit line in the prompt is an instruction Claude interprets rather than a block, and acceptEdits auto-accepts edits. Auto mode removes routine prompts and blocks only actions its classifier judges risky, so ordinary migration edits would proceed without the lead's approval.
Official references
- Question 4Domain: Claude Code Configuration & WorkflowsMedium
In a monorepo with thousands of test files, a test-generation job concatenated the entire test suite into the claude -p prompt so Claude could avoid duplicates. Suggestions became less relevant and runs got slower and more expensive, while duplicates still appeared for the module being changed. Which approach should you take?
- A.Keep concatenating the whole suite but move it to the end of the prompt, after the instructions, so Claude reads the request before the test code.
- B.Let Claude propose tests freely, then run a second claude -p job that compares every proposal against the full repository and removes repeats.
- C.Include only the test files that exercise the changed module, found through its imports, and ask for scenarios those files do not cover.
- D.Give Claude only the coverage percentage of the module from the last test run so it knows roughly how much of it is already tested.
Show answer and explanation
Correct answer: C. Include only the test files that exercise the changed module, found through its imports, and ask for scenarios those files do not cover.
Explanation
The relevant context for avoiding duplicates is the tests that already exercise the changed module; a focused context gives better answers and costs less than a whole suite that mostly concerns other code. A coverage percentage says how much is tested but not which scenarios, so Claude still cannot avoid specific duplicates. Moving the whole suite after the instructions keeps the same noise and goes against the guidance to place long data above the query, and a second review job is an over-engineered fix for missing context.
Official references
- Question 5Domain: Agentic Architecture & OrchestrationMedium
A team running an insurance-claims agent on the Claude Agent SDK set maxTurns to 5 as the way runs finish. Logs show complex claims often ending with the error_max_turns subtype and no final response, while simple claims finish in two turns. The team wants complete answers and still needs a guard against runaway sessions. Which approach should you take?
- A.Tell Claude in the system prompt to finish every claim within five tool calls, and keep maxTurns at 5 as the main stopping rule.
- B.Remove maxTurns and end each run as soon as the latest AssistantMessage includes the words claim processed in its text.
- C.Let runs end when Claude produces a response with no tool calls, keeping a generous maxTurns or maxBudgetUsd only as a safety limit.
- D.Keep maxTurns at 5 and, whenever error_max_turns occurs, present the text of the latest AssistantMessage as the final answer.
Show answer and explanation
Correct answer: C. Let runs end when Claude produces a response with no tool calls, keeping a generous maxTurns or maxBudgetUsd only as a safety limit.
Explanation
The agent loop ends on its own when Claude produces output with no tool calls; maxTurns and maxBudgetUsd are limits, and hitting them returns an error subtype with no result field. Using a generous cap or a budget as a safety net meets both requirements. Presenting the latest AssistantMessage after error_max_turns returns unfinished work, a prompt instruction is only probabilistic, and matching the words claim processed replaces the cap with natural-language parsing.
Official references
- Question 6Domain: Agentic Architecture & OrchestrationMedium
A coordinator built on the Claude Agent SDK must gather findings from three independent search subagents and then have a synthesis subagent combine them. To save time, it currently emits all four Agent tool calls in the same response, and the synthesis report often says that no findings were provided. Which approach should you take?
- A.Give the synthesis subagent the SendMessage tool so that it can request the findings from the search subagents itself.
- B.Run all four subagents one after another in separate turns so that every step waits until the previous one has finished.
- C.Keep the four calls in one response and tell the synthesis subagent in its prompt to wait until the search results appear.
- D.Emit the three search calls together in one response, then spawn synthesis with their findings once all reports return.
Show answer and explanation
Correct answer: D. Emit the three search calls together in one response, then spawn synthesis with their findings once all reports return.
Explanation
Only independent subtasks belong in the same response. A subagent receives its context through the Agent tool prompt at the moment it is spawned, so a synthesis subagent launched alongside the searches can never receive their findings. Spawning the searches together and synthesis afterwards keeps the parallel speed-up where it applies. Telling the synthesis subagent to wait cannot add findings to a prompt that was already sent, and running everything sequentially gives up the parallelism.
Official references
- Question 7Domain: Prompt Engineering & Structured OutputMedium
A logistics firm extracts delivery_date from shipping notes written in the UK and the US, using structured outputs with format: date on the field. Every output is a valid ISO date, but audits show "03/04/2026" in UK notes is often extracted as 4 March instead of 3 April. Which approach should you take?
- A.Keep the schema and add prompt rules for reading UK and US slashed dates before writing ISO 8601.
- B.Switch from JSON outputs to a strict tool with the same schema so the date field is validated more rigorously.
- C.Change delivery_date to a plain string with no format and let the downstream system interpret the original text.
- D.Add a pattern to the field that matches ISO dates so that only correctly ordered day and month values can be produced.
Show answer and explanation
Correct answer: A. Keep the schema and add prompt rules for reading UK and US slashed dates before writing ISO 8601.
Explanation
The schema guarantees the shape of the output, a valid date string, but not how an ambiguous source value is interpreted, so the normalisation rule has to be stated in the prompt next to the strict schema. A pattern only constrains the characters of the output, and strict tool use applies the same schema guarantee as JSON outputs, so neither can tell day-first from month-first. Dropping the format moves the inconsistency downstream instead of resolving it.
Official references
- Question 8Domain: Prompt Engineering & Structured OutputMedium
A team has finished tuning an extraction prompt and is about to submit 80,000 requests in one Message Batch. The requests were assembled by a new script that adds a tool definition, a system prompt and a custom_id to each one. The team has never sent this exact request shape before and wants to avoid a batch full of validation errors. What should it do first?
- A.Dry run one request of the same shape with the Messages API and fix any validation error first.
- B.Add stream: true to each batched request so validation problems are reported while the batch is running.
- C.Submit the batch and cancel it if the first results show validation errors, then fix the script and resubmit.
- D.Submit the batch in its current form, since requests that fail validation are not billed by the batch API.
Show answer and explanation
Correct answer: A. Dry run one request of the same shape with the Messages API and fix any validation error first.
Explanation
The batch documentation recommends a dry run of a single request shape with the Messages API to avoid validation errors, which catches a bad request structure in seconds before 80,000 copies are queued. Cancelling after the fact still costs time, and cancellation might not take effect immediately. stream: true is not supported in batch requests and itself causes a validation error, and although errored requests are not billed, a batch of failures still wastes the processing window.
Official references
- Question 9Domain: Tool Design & MCP IntegrationMedium
An invoice-processing pipeline on the Messages API must always call extract_invoice_header before any enrichment tools such as lookup_vendor or convert_currency run, because they need its output. During testing you observe Claude sometimes calling lookup_vendor first. The model you use supports forced tool use, and after the header is extracted Claude should choose the enrichment steps itself. How should you configure tool_choice?
- A.Send tool_choice forcing extract_invoice_header on every request in the loop so that the ordering can never be violated.
- B.Keep tool_choice auto and add a system prompt instruction saying that extract_invoice_header must always be called first.
- C.Send tool_choice {"type": "tool", "name": "extract_invoice_header"} on the first request, then auto on the follow-up requests.
- D.Send tool_choice {"type": "any"} on the first request so that Claude must begin the conversation with a tool call.
Show answer and explanation
Correct answer: C. Send tool_choice {"type": "tool", "name": "extract_invoice_header"} on the first request, then auto on the follow-up requests.
Explanation
A tool_choice of type tool forces Claude to call that specific tool, which guarantees the first step, and switching back to auto afterwards lets Claude pick the enrichment tools it needs. A tool_choice of any forces a tool call but not a particular one, so lookup_vendor could still come first. A system prompt instruction is probabilistic where the order is a hard requirement, and forcing the header tool on every request would keep calling it instead of moving on to enrichment.
Official references
- Question 10Domain: Tool Design & MCP IntegrationMedium
An incident-triage agent with the Grep tool must estimate the effort of replacing the error message "Session token expired" across a service. The report it produces needs the number of occurrences in each file and an overall total, not the matching lines themselves. How should the agent call Grep?
- A.Use output_mode count, which returns the match count per file followed by a total across all the matching files.
- B.Use the default output mode, files_with_matches, and count the returned paths to get the number of occurrences per file.
- C.Use output_mode content with multiline: true, so that every match comes back with its file and line number to be tallied.
- D.Use the type parameter set to count, which tells Grep to return the totals per file instead of the matching lines.
Show answer and explanation
Correct answer: A. Use output_mode count, which returns the match count per file followed by a total across all the matching files.
Explanation
Grep's count mode returns the match count per file followed by a total across all matching files, which is exactly the data the report needs. files_with_matches, the default, returns only paths, so it cannot show how many times the message appears in each file. content returns the lines themselves, which the report does not need, and type filters by language rather than choosing an output mode.
Official references
How to use these CCAR-F sample questions
Answer each question before opening the explanation, and write down why you discarded the other options. On CCAR-F, most mistakes come from choosing an option that is technically possible but does not meet every requirement in the scenario.
These 10 questions are a taste of the format, not a diagnostic. To know which domains you fail, practice by domain for free and take a timed mock exam that mirrors the official weights and duration.
Practice CCAR-F with hundreds more questions
Start for free, no sign-up or card. Every question includes an explanation like the ones above, and the mock exam reproduces the official CCAR-F format.