CCAR-F Sample Questions With Explanations

About these questions

These five questions are original. We wrote them to show the style of scenario-based judgment that the CCAR-F exam guide describes, and each one covers a different domain. They are not Anthropic’s questions and they are not a preview of what you will see on exam day. Questions on that exam are confidential, and we do not claim to know them.

How to use these

Try each question without looking at the answer, and decide how sure you are. Then open the answer and read the explanation, including why the closest wrong option fails. If you miss one, find the matching task statement in Anthropic’s exam guide and study that topic by building a small example.

Question 1 (Agentic Architecture & Orchestration)

An IT help desk agent built with the Agent SDK ends its loop when the reply text contains words such as “resolved” or “finished”. Sometimes the loop ends while a reset_password call is still pending. Other times the agent finishes the job but never uses those words, so the loop keeps running. What is the best fix?

  • A. Branch on the stop_reason value of each response: continue while it says a tool is requested, and finish when the turn has ended.
  • B. Add more completion words, such as “completed” and “all done”, to the list.
  • C. Instruct the agent to end every final reply with the marker [FINISHED].
  • D. Stop the loop after five iterations and treat that as completion.
Show the answer and explanation

Correct answer: A. The API already returns a structured signal that tells you whether the model wants a tool run or has finished its turn, so the loop should follow that signal. Reading text for completion is fragile because wording varies and text can sit next to a pending tool call. Option C is the closest wrong answer: a marker feels structured, but it is still a text convention the model can skip or misplace. Options B and D keep the same weakness, and an arbitrary cap can cut work off or end it too late.

Question 2 (Tool Design & MCP Integration)

A flight booking tool exposed through MCP returns the same message, “Request could not be completed”, whether the card was declined, the service timed out, or the seat was already taken. The agent retries every failure three times, which wastes calls and sometimes repeats a declined charge attempt. What change helps most?

  • A. Return structured errors with a category, a flag that says whether retrying makes sense, and a readable description.
  • B. Raise the retry limit to ten so that transient failures eventually succeed.
  • C. Tell the agent in its system prompt never to retry any tool call.
  • D. Return an empty result for every failure so the agent stops asking.
Show the answer and explanation

Correct answer: A. With a category and a retry flag, the agent can retry the timeout, explain the taken seat, and hand off the declined card instead of treating all three the same. Option C is the closest wrong answer, because it stops pointless retries but also stops useful ones for transient failures. Option B makes the waste larger, and option D is the worst choice: an empty result looks like a successful query with no match, so real failures disappear from view.

Question 3 (Claude Code Configuration & Workflows)

In a large monorepo, files named *.module.css sit in dozens of folders. The team wants Claude Code to follow its naming conventions whenever it edits any of these files, and to leave them out of its context otherwise. What is the best approach?

  • A. A rule file in .claude/rules/ with a path pattern such as “**/*.module.css”.
  • B. A separate CLAUDE.md in every folder that holds such a file.
  • C. One long root CLAUDE.md that lists every convention for every file type.
  • D. The conventions in the user-level file in each developer’s home directory.
Show the answer and explanation

Correct answer: A. A path-scoped rule applies by file pattern, so one file covers every matching stylesheet in any folder and loads only when those files are in play. Option B is the closest wrong answer: it would work for a single folder but means many copies that drift apart, and it keys off location rather than file type. Option C loads everything all the time, which wastes context, and option D is not shared with teammates through version control.

Question 4 (Prompt Engineering & Structured Output)

A receipt extraction tool classifies each receipt with an enum of travel, meals, and lodging. Receipts for software subscriptions keep being labeled as meals, which makes the reports wrong. Which schema change is best?

  • A. Keep the enum and add a prompt line telling the model to choose carefully.
  • B. Add an “other” value to the enum and a free-text detail field that describes the case.
  • C. Replace the enum with a free string field and clean up the values later.
  • D. Add forty more categories so that every possible receipt has an exact match.
Show the answer and explanation

Correct answer: B. A closed list that cannot cover real inputs pushes the model to force a bad fit. An “other” value with a detail field keeps the main categories clean and records the odd cases honestly, and the detail text shows you which new categories are worth adding. Option A is the closest wrong answer, because pressure to be careful does not create a place for a case that fits nowhere. Option C gives up the consistency the enum provides, and option D is slow to build and still never complete.

Question 5 (Context Management & Reliability)

A support agent handles long conversations. Each order lookup returns about forty fields, and older turns are summarized to save space. The summaries are blurring refund amounts and promised delivery dates. Choose two changes that address the problem.

  • A. Keep a persistent block of exact case facts, such as order numbers, amounts, and dates, and send it with each request outside the summarized history.
  • B. Trim each lookup result to the few fields the task needs before it is added to the context.
  • C. Ask the summarizer to round amounts so that summaries stay short.
  • D. Place all the facts in the first message of the conversation and never repeat them.
  • E. Remove the order lookup tool so that no large results enter the context.
Show the answer and explanation

Correct answers: A and B. The persistent block keeps exact values safe from summarization, and trimming stops irrelevant fields from crowding the context in the first place. Option D is the closest wrong answer: a fact left in an early message can be summarized away or overlooked as the conversation grows. Option C makes the blurring worse on purpose, and option E removes the data the agent needs to do its job.

Next step

For more practice across all five domains, see our CCAR-F practice tests. To see where these topics fit, read domains explained.