Multiple-Choice Practice Questions
Independent educational resource, not an official Anthropic course. Facts about the API, prices and limits were checked against Anthropic's documentation on 15 November 2026 and the code was run against a local mock of the API, not the live service. Check the linked official pages before relying on a number, and test with your own key.
Reading is not the same as recalling. Practice questions are where you find out which parts of the course you can actually use. These 30 questions are original: we wrote them from the course and from Anthropic's public documentation. They are not exam questions, we don't know what's on the exam, and nobody should treat passing them as proof of passing it. What they're good for is spotting gaps, so every answer links back to the lesson to review.
What you'll learn
- Which topics from Modules 1 to 8 you can already use, and which need another pass.
- How single-answer and "select two" questions work, and how to read them.
- A repeatable way to review: answer, check, find the lesson, write down the gap.
Before you start
How to use these questions
- Cover the explanation. Answer from memory, in your head or on paper, before you open anything.
- Commit to an answer, then open the explanation. Don't peek first: recognising a right answer feels like knowing it, and it isn't.
- For every miss, open the linked lesson and write one sentence on what you got wrong. A miss you can't explain is a gap, not bad luck.
- Come back in three days and answer only the ones you missed.
Some questions say Select TWO. You need both correct options and no wrong one. Anthropic's FAQ describes the real exam as using multiple choice and scenario-based multiple response questions, so practise both. Note that the options aren't ordered to hint at the answer: we checked that the correct option isn't consistently the longest, and that the correct letters are spread evenly.
The 30 questions
1. A response comes back with stop_reason "tool_use". What must your code do next?
A. Run the requested tools and return each result as a tool_result block with the matching tool_use_id.
B. Show the response text to the user as the final answer and wait for their next message before doing anything else.
C. Increase max_tokens and resend the same request, because the reply was probably cut short before it finished.
D. Retry the identical request on a fallback model, since a tool_use stop reason signals a model failure.
Answer and explanation
Answer: A. tool_use means Claude is asking you to run something. The loop only continues if you return a result for every tool_use block, matched by tool_use_id. Review: 4.4 Executing Tool Calls.
2. A response has stop_reason "max_tokens". What does that tell you?
A. The request failed on the server and must be retried with exponential backoff before any text is trusted.
B. The conversation has ended naturally and the text can be treated as a finished, complete answer.
C. Claude declined to answer for safety reasons and gave a partial explanation instead of the full answer.
D. The reply was cut off at your limit, so it may be incomplete.
Answer and explanation
Answer: D. max_tokens means the output limit was reached, perhaps mid-sentence or mid-JSON. Raise the limit, continue the reply or hand over to a person. Review: 8.5 AI Response Validation.
3. Which description of a refusal is correct?
A. An HTTP 429 response that includes a retry-after header, after which the same request will usually succeed.
B. A normal HTTP 200 response with stop_reason "refusal" and a stop_details field.
C. An HTTP 403 error with a permission_error type, returned whenever the content violates your organisation's settings.
D. An authentication failure that means the API key has been revoked and a new one must be created.
Answer and explanation
Answer: B. Safety classifiers return refusal as a successful response, not an error. Check stop_reason before you use the text. Review: 8.5 AI Response Validation.
4. Your requests start failing with HTTP 429, error_code "enforced_spend_limit_reached", and no retry-after header. What is the best response?
A. Retry immediately three times, then switch to a smaller fallback model that might have spare capacity available.
B. Retry with exponential backoff and jitter until the request eventually succeeds again, as with any other 429 response.
C. Rotate to a different API key at random for each retry so that one of them avoids the limit.
D. Do not retry; report the feature as unavailable and restore access by raising the limit or waiting.
Answer and explanation
Answer: D. This 429 is the tier spend cap. It has no retry-after and keeps failing until access resumes, so retrying wastes time and, with the SDK's own retries, requests. Review: 8.8 Reliability and Error Handling.
5. The SDK retries twice by default (three attempts). You wrap each call in your own loop of three attempts without disabling the SDK's retries. What is the worst-case number of HTTP requests for one logical call?
A. Nine
B. Twelve, because every attempt in both layers also triggers one extra request that checks the result
C. Six, because only the SDK's two retries are added to your single outer attempt of each call
D. Three, because the SDK's retries are disabled as soon as you write your own retry loop around the call
Answer and explanation
Answer: A. Layers multiply: three outer attempts times three inner attempts. Keep exactly one layer of retries. Review: 8.8 Reliability and Error Handling.
6. Which failure should NOT be retried automatically?
A. A 529 overloaded_error, because the service may have capacity again after a short wait.
B. A 400 invalid_request_error from a malformed request.
C. A 500 api_error, because an unexpected internal failure on the provider's side may clear up.
D. A dropped network connection, because the request may simply not have reached the service.
Answer and explanation
Answer: B. A malformed request will fail identically every time. Overloads, internal errors and connection problems are transient, so those are worth retrying with backoff. Review: 8.8 Reliability and Error Handling.
7. You added cache_control to a request, but usage shows cache_creation_input_tokens = 0 and cache_read_input_tokens = 0. What is the most likely explanation?
A. Streaming responses can never use caching, so the fields stay at zero whenever stream is set to true.
B. The Batches API always reads from the cache first, which resets both counters to zero on every call.
C. Nothing was cached, for example because the prompt was below the model's minimum length.
D. Caching worked and the savings are shown in output_tokens, so both cache fields are normally reported as zero.
Answer and explanation
Answer: C. If both fields are zero the prompt was not cached. Prompts below the minimum are processed without caching and the API returns no error. Review: 8.9 Performance and Latency.
8. In what order does prompt caching consider the parts of a request, so that a change at one level invalidates everything after it?
A. There is no fixed order, so each block is cached separately and a change affects only itself
B. messages, then system, then tools, because the newest content is checked first for a cache match
C. system, then messages, then tools, because instructions are always matched before anything else is
D. tools, then system, then messages
Answer and explanation
Answer: D. The prefix is built tools, then system, then messages. Changing a tool definition therefore invalidates all three levels. Review: 8.9 Performance and Latency.
9. According to the prompt caching documentation, what is the total number of input tokens in a request that used caching?
A. input_tokens + output_tokens, because the total is whatever the model read plus whatever it wrote
B. cache_read_input_tokens + cache_creation_input_tokens + input_tokens
C. input_tokens alone, because it already includes everything that was read from or written to the cache
D. cache_read_input_tokens alone, because tokens that are cached are the only ones that count as input
Answer and explanation
Answer: B. input_tokens counts only tokens after the last cache breakpoint. Add the cache reads and cache writes for the full input. Review: 8.10 Cost Management.
10. The Message Batches API charges usage at what share of standard prices?
A. 75 percent, because only the output tokens receive a discount on batch requests
B. 50 percent
C. 25 percent, because asynchronous work is billed at a quarter of the interactive price
D. 10 percent, because batches use spare capacity that is otherwise wasted
Answer and explanation
Answer: B. Batch usage is charged at 50 percent of standard prices, in exchange for asynchronous processing. Review: 8.9 Performance and Latency.
11. How should you match results from a Message Batch to the requests you sent?
A. By position in the results file, because the API guarantees results are returned in the same order as the requests.
B. By the timestamp on each result, because earlier requests always finish before the ones submitted after them.
C. By custom_id, because results can arrive in any order.
D. By the model name in each result, because every request in a batch uses a different model from the others.
Answer and explanation
Answer: C. The documentation says batch results can come back in any order and might not match request order. Always use custom_id. Review: 8.9 Performance and Latency.
12. Where do tool results go in the conversation?
A. In the next user message, each tool_result referring to its tool_use_id.
B. In query parameters on the next request, which the API reads before it looks at the messages.
C. In an assistant message that your code writes on the model's behalf after the tool has finished.
D. In the system prompt, which is rebuilt by your code before each request in the loop is sent.
Answer and explanation
Answer: A. The model asked in an assistant turn; you answer in the next user turn with tool_result blocks. Review: 4.4 Executing Tool Calls.
13. A tool you run times out. What is the best way to handle it in the loop?
A. Retry the tool silently in a loop, without telling the model, until it finally returns a result.
B. Return a tool_result with is_error and a message the model can act on.
C. Let the exception propagate so the whole conversation stops and the user sees the original stack trace.
D. Return an empty string so the model assumes the tool succeeded and carries on with its next step.
Answer and explanation
Answer: B. A failed tool is information for the model. A clear error result lets it recover or explain, and a limit on iterations stops endless retrying. Review: 4.4 Executing Tool Calls.
14. What separates an agent from a workflow in Anthropic's definition?
A. In a workflow, code paths you wrote decide the steps; in an agent, the model decides dynamically.
B. Agents always use more than one model, while workflows are limited to a single model call per request.
C. Agents never need limits, because the model can be relied on to stop itself at a sensible point.
D. Workflows can never call tools, while agents are the only systems allowed to use tool definitions.
Answer and explanation
Answer: A. The test is who decides the next step. Your code in a workflow, the model in an agent. Review: 6.1 What Are AI Agents?.
15. What is a sound way to bound a runaway agent loop?
A. Rely on the model to decide when it has already used enough tokens, since it can see its own usage.
B. Check iteration, token, time and tool-call limits before every model call.
C. Limit only the number of iterations, because the cost of each iteration is roughly the same everywhere.
D. Raise an unhandled exception on the first tool error so the loop never reaches a costly later step.
Answer and explanation
Answer: B. Ten iterations can be cheap or very expensive depending on what they read, so use several limits. Returning a status lets the caller escalate to a person. Review: 6.4 Agent Loops.
16. Anthropic's write-up of its multi-agent research system reported roughly how token use compared with a plain chat?
A. About half as much, because splitting work across workers means each one reads fewer documents.
B. About four times for agents and about fifteen times for multi-agent systems.
C. About one hundred times for any agent, because every tool call restarts the conversation from scratch.
D. About the same for all three, because workers share the lead's context and so add almost nothing.
Answer and explanation
Answer: B. Those figures come from their research workload. They are a warning about direction of cost, so measure your own. Review: 6.7 Multi-Agent Architecture.
17. Where should the approval of a high-impact action, such as a refund, take place?
A. Inside the conversation, by asking the model whether it approves the action and trusting a clear yes.
B. In the system prompt, by writing a rule such as "approve refunds under fifty dollars automatically".
C. Outside the conversation, as an authenticated person's decision sent to your own code.
D. In the tool result itself, so that the tool marks its own request as approved before it runs.
Answer and explanation
Answer: C. Text in a conversation can come from customers or documents, so it can talk a model into approving itself. A call from your own authenticated code cannot be forged that way. Review: 6.9 Human-in-the-Loop Workflows.
18. In MCP, what is the relationship between a host and its clients?
A. The host is itself a server that many clients connect to in order to discover the available tools.
B. Clients run inside the servers and report back to the host whenever a tool has been requested.
C. Every host has exactly one client, which is shared by all the servers it uses at the same time.
D. The host creates one MCP client for each MCP server it connects to.
Answer and explanation
Answer: D. A host such as Claude Code keeps one client per server, each with a dedicated connection. Review: 7.2 MCP Architecture.
19. Why must an MCP server using the stdio transport never write to standard output with print()?
A. print() is not available in server code, so calling it raises an error as soon as the server starts.
B. stdout carries the JSON-RPC messages, so extra output corrupts the stream.
C. stdout is encrypted by the transport, so anything written there is unreadable to the client.
D. Text printed to stdout is passed to the model automatically, which makes the output appear in replies.
Answer and explanation
Answer: B. On stdio the protocol runs over the process's stdin and stdout. Use the logging module, which writes to stderr. Review: 7.2 MCP Architecture.
20. In MCP's control model, who decides when each primitive is used?
A. Tools by the user, resources by the model, prompts by the application that hosts the connection.
B. Tools by the model, resources by the application, prompts by the user.
C. All three by the model, which decides for itself which primitive is the best fit for each turn.
D. All three by the server, which pushes whichever primitive it likes to the client at any time.
Answer and explanation
Answer: B. That split explains why tools carry the most risk: the model decides when to call them. Review: 7.5 MCP Resources and Prompts.
21. A server marks a tool readOnlyHint = true. How should your client treat that annotation?
A. As an untrusted hint, with approvals decided from your own policy.
B. As a signal that argument validation can be skipped, since a read-only tool cannot do any damage.
C. As a guarantee that the tool cannot change anything, so it can safely skip any confirmation step.
D. As an instruction the model must obey, so the model is not allowed to call the tool with write data.
Answer and explanation
Answer: A. The specification says clients must consider tool annotations untrusted unless they come from trusted servers. Review: 7.4 MCP Tools.
22. Select TWO accurate statements about the Messages API MCP connector (beta).
A. Resources and prompts are supported alongside tools, so a server's whole feature set is available.
B. No beta header is needed, and any server running on your own laptop can be reached from the API.
C. A local stdio server cannot be connected directly; the server must be reachable over HTTP.
D. Only tool calls from the MCP feature set are supported.
Answer and explanation
Answer: C and D. The documentation lists both limitations. Resources and prompts do not come through the connector, and a local stdio server needs your own client instead. Review: 7.7 Connecting Claude to an MCP Server.
23. What does the MCP security guidance say about token passthrough?
A. It is allowed whenever the token is encrypted while it travels between the two services.
B. A server must not accept tokens that were not issued for it, or pass them on.
C. It is recommended, so that downstream APIs can identify the user directly from the original token.
D. It is required for OAuth to work, because the downstream service needs the very same token again.
Answer and explanation
Answer: B. Passthrough breaks audit trails and bypasses controls that depend on who a token was issued to. Review: 7.9 MCP Security and Permissions.
24. How does Claude Code treat the contents of CLAUDE.md?
A. As context rather than enforced configuration; use permissions or hooks for rules that must hold.
B. As secrets that are hidden from the model and only used by Claude Code's own internal tools.
C. As hard rules that Claude can never break, because the file is loaded before anything else happens.
D. As a list of shell commands that Claude Code executes automatically each time a session begins.
Answer and explanation
Answer: A. The docs say CLAUDE.md is delivered as context. If something must be guaranteed, enforce it with a deny rule or a hook. Review: 5.4 Understanding CLAUDE.md.
25. A PreToolUse hook script exits with code 2. What happens?
A. The call is blocked, and stderr is sent to Claude as the reason.
B. Claude Code exits, because a non-zero hook status is treated as a fatal configuration error.
C. The call is approved without asking you, because exit code 2 is the signal that the check passed.
D. The hook is ignored and the tool runs, because only exit code 1 is treated as an objection.
Answer and explanation
Answer: A. Exit 0 means no objection (and does not approve the call by itself). Exit 2 blocks, with stderr as the explanation. Review: 5.7 Hooks and Permissions.
26. What does a Claude Code subagent know when it starts?
A. Everything in the main conversation, including every file that Claude has already read there.
B. Nothing at all, not even its own system prompt, until the first tool call returns some text.
C. Only the very first message of the main conversation, which is copied over when it is created.
D. Its own system prompt, the delegation message and CLAUDE.md files, but not your conversation history.
Answer and explanation
Answer: D. A fresh context is the point of a subagent, and also why the delegation message must contain what it needs. Review: 5.8 Subagents.
27. A small-model screening request is declined (stop_reason "refusal"). How should you treat that result?
A. As a clean pass, because the screen did not report anything harmful in the content it was given.
B. As a network error to retry in a loop until a verdict is finally returned by the model.
C. As proof that the content is safe, because a refusal only happens for harmless text.
D. As a positive verdict: fail closed and send the content to a person.
Answer and explanation
Answer: D. The documentation notes that a small model's safety classifiers can decline the screening request itself. No verdict means no clearance. Review: 8.3 Prompt Injection and Prevention.
28. Which measure most limits the damage when a prompt injection does succeed?
A. Least privilege, plus a person in front of consequential actions.
B. Lowering the maximum output length, so a hijacked model has fewer words in which to cause harm.
C. Converting all user text to upper case before it is added to the prompt so it looks like data.
D. A longer system prompt that says in several different ways that injected instructions must never be obeyed.
Answer and explanation
Answer: A. Prompts reduce the rate of successful attacks; what the model can do bounds the harm of the ones that work. Review: 8.3 Prompt Injection and Prevention.
29. When you use a model to grade another model's output, which practice does Anthropic's guidance suggest?
A. Use the cheapest model available and trust its scores without ever comparing them with people.
B. Always use the same model, because it understands its own writing better than any other would.
C. Never use a model for grading, because only code-based checks can ever be considered reliable.
D. Use a different model from the generator, and check the grader against human judgements.
Answer and explanation
Answer: D. The guidance says it is generally best to evaluate with a different model than the one that generated the output. Review: 8.6 Evaluation and Testing.
30. In an evaluation run, your system raises an exception on one case. How should the harness record it?
A. By aborting the whole run silently, so the problem can be investigated before it is reported.
B. As a passed case, because nothing wrong was actually returned by the system under test.
C. As a skipped case, so that it does not drag down the overall pass rate of the evaluation run.
D. As a failed case, never as a skipped one.
Answer and explanation
Answer: D. Skipping hides real failures and inflates the pass rate. Review: 8.6 Evaluation and Testing.
Scoring yourself
Write your answers as p01:B, p02:A, p22:AC, ... and score them with the small tool we wrote for this module. It reports your percentage, a breakdown by topic, your three weakest topics and the lessons to revisit. The score is a plain percentage, not the official scaled score, which Anthropic doesn't let us reproduce:
from mock_score import parse_answers, score, practice_bank
mine = parse_answers("p01:B, p02:A, p03:C, p22:AC") # fill in all 30
result = score(practice_bank(), mine)
print(result["percent"], "% correct")
print("weakest topics:", result["weakest"])
print("unanswered:", result["unanswered"])
print("review these lessons:", result["review_lessons"])
We tested the scorer: a full set of correct answers scores 100 with nothing to review; a blank sheet scores 0 and lists every lesson; a two-answer question marked wrong if you pick only one correct option or add a wrong one; and a deliberately failed topic appears as the weakest, with its lesson in the review list.
How the bank was checked
A validator runs over every question before we publish it. It checks that each has exactly four distinct options, valid answers, an explanation and a lesson that exists; that "Select TWO" appears exactly when two answers are right; that no letter holds more than 45 percent of the answers; and that the right option isn't usually the longest. It failed our first draft, where the correct option was the longest in nearly 90 percent of questions. That kind of pattern is a test-taking trick, and we'd rather you learn the material, so we rewrote the options.
Real-world use case (illustrative scenario)
This scenario is an invented example to show how the ideas fit together. It is not a case study and its details are not measured results.
A developer finishes the 30 questions and scores 21. The breakdown shows MCP and caching are fine, but both agent questions on human approval and both on cost were missed. They reread lessons 6.9 and 8.10, rewrite the two ideas in their own words and retake only the missed questions three days later. The point is the loop of testing, finding the gap and fixing it. The score itself matters less.
Mistakes to avoid
- Memorising these answers. The exam will word things differently.
- Reading the explanation before committing to an answer.
- Treating a high score here as a prediction of the real exam.
- Skipping the questions you found boring: that's where the gaps are.
Security notes
Don't go looking for leaked or "dump" questions. They may be wrong, they teach recall instead of skill, and sitting a certification exam usually means agreeing to rules about exactly this. Everything in this module was written from public documentation and our own course.
Cost and speed
The set takes about forty minutes, plus review time. If you're short on time, do ten questions a day from different topics instead of all thirty at once. Spaced practice beats one long session.
Key takeaways
- Answer first, check second, and log every miss against a lesson.
- Practise "select two" questions: both right, nothing extra.
- Use the topic breakdown to choose what to study next.
- These are original practice questions, not exam content.
Lesson recap: answer, check, log misses and let the topic breakdown steer your study.
Official references and further reading
Related tutorials