Skip to main content

Full Mock Exam: 60 Questions

How to use this mock exam

This is the full-length rehearsal: 60 scenario questions in 120 minutes, the same length and time as the real exam. The questions cover the five domains, close to the weights in the exam guide:

DomainWeightQuestions here
1. Agentic architecture and orchestration27%17
2. Tool design and MCP integration18%11
3. Claude Code configuration and workflows20%11
4. Prompt engineering and structured output20%14
5. Context management and reliability15%7

The real exam groups its questions around scenarios: each sitting draws four scenarios at random from a bank of six. This mock uses six scenarios with ten questions each, most of them not about TestPilot. Recognising the same patterns in someone else’s system is the skill the exam tests.

The real exam also has multiple-response questions, where more than one option is correct. The questions here have one correct answer each; read every option anyway, as if more than one could be right.

How to take it:

  1. Set a timer for 120 minutes and take it in one sitting, without notes or other tools.
  2. Write down your answer for every question before you open any explanation.
  3. Score yourself per domain with the answer key at the end, then read the explanations of every question you got wrong.

All questions are written by Learn Automated Testing as practice for the exam domains. None come from the real exam.

Scenario 1 · A support agent for a bike-rental company

Quiz

1. The agent can issue refunds through a refund tool. Policy: refunds above €150 need a human. The system prompt says so in capitals, yet last week it refunded €300 on its own. What is the most reliable fix?

  • A. Add three few-shot examples of refunds above €150 being escalated
  • B. Lower the temperature so the model follows the policy more consistently
  • C. Check the amount inside the refund tool; above €150 it creates an approval request and returns “pending approval” instead of refunding
  • D. Repeat the policy at the end of every user message
Show answer

C. A rule with a real cost belongs in code, where it cannot be ignored. The others make the right behaviour more likely; only C makes the wrong one impossible.

Domain 1 · lesson 54

Quiz

2. A customer has to be handed over to a human agent. What should the hand-off contain?

  • A. The full transcript, so the human can read everything
  • B. A structured summary: customer and booking id, the problem, what the agent already checked and did, what is still needed, plus a link to the transcript
  • C. A one-line note: “customer needs help”
  • D. Nothing; the human asks the customer to explain again
Show answer

B. The human needs to act in seconds without redoing the agent’s work. A transcript alone buries the facts; the customer should never have to start over.

Domain 1 · lesson 55

Quiz

3. The agent loop ends when response.content[0].type == "text". Sometimes the model writes a sentence and then requests a tool in the same response, and the loop stops early. What is the correct check?

  • A. Stop when the response contains no text at all
  • B. Stop when the text contains the word “done”
  • C. Stop after a fixed number of turns, whatever the response
  • D. Continue while stop_reason is tool_use; handle end_turn, max_tokens and the other stop reasons explicitly
Show answer

D. A response can hold text and tool_use blocks together. stop_reason is the signal the loop must use; text content is not.

Domain 1 · lesson 27

Quiz

4. The tools lookup_order(orderId) and lookup_customer(customerId) are often mixed up: the model passes an order number to lookup_customer. What do you change first?

  • A. The tool descriptions: state the id format each one expects (e.g. R- plus 6 digits for orders), give an example and say when not to use the tool
  • B. Add a system-prompt line: “Use the right tool”
  • C. Remove lookup_customer
  • D. Switch to a larger model
Show answer

A. The description is what the model selects on. Precise input formats and when-not-to-use lines fix mix-ups at the source.

Domain 2 · lesson 25

Quiz

5. The bookings API sometimes times out for a few seconds. What should the get_booking tool do?

  • A. Throw the exception so the loop crashes and the job is restarted
  • B. Return an empty booking so the conversation continues
  • C. Retry in code with backoff; if it still fails, return an error result marked retryable, with a plain message and a suggestion for the agent
  • D. Return the raw stack trace so the model can diagnose the problem
Show answer

C. Transient errors are retried in the tool first. If they persist, a structured error lets the model choose a sensible next step. Never leak internals or fake an empty result.

Domain 2 · lesson 28

Quiz

6. Every incoming ticket must be routed by intent (one of five) and urgency (low/normal/high). Downstream code reads these fields. How do you get reliable output?

  • A. Ask for “JSON only” in the prompt and parse the text
  • B. Use structured output (a JSON schema, or a forced tool whose input schema is the routing object) and validate the result in code before routing
  • C. Ask the model to answer in a markdown table
  • D. Let the model write free text and parse it with regular expressions
Show answer

B. A schema makes the shape reliable; your validation makes it certain. Prompt-only JSON and free text break on the first unexpected wording.

Domain 4 · lesson 9

Quiz

7. Replies are too long. The prompt already says “Be concise!” in three places. What is the most effective change?

  • A. Say “BE CONCISE” in capitals
  • B. Lower max_tokens to 80 so the replies get cut off
  • C. Use a smaller model
  • D. Make it concrete: “At most three sentences; answer the question first; no greeting”, plus one example of a good reply
Show answer

D. Vague instructions repeated louder stay vague. Concrete, checkable constraints and an example change behaviour. Cutting answers off with max_tokens produces broken replies.

Domain 4 · lesson 16

Quiz

8. In long chats, the agent forgets the booking number and the refund amount agreed twenty turns earlier. Older turns are summarised to save tokens. What fixes this?

  • A. A case-facts block kept by your code (booking number, agreed amount, decisions), sent verbatim with every request and never summarised
  • B. A larger context window
  • C. Asking the model to “remember important details”
  • D. Summarising more often
Show answer

A. Summaries drop exactly the numbers and ids that matter. Facts kept verbatim in a block owned by code survive any amount of summarising.

Domain 5 · lesson 56

Quiz

9. The 40-page rental policy is sent with every request, between the system prompt and the conversation. The agent often misses a rule on page 23. What helps most?

  • A. Send the policy twice
  • B. Retrieve only the sections relevant to this question and place them right before the question
  • C. Raise max_tokens
  • D. Move the whole policy to the very end of the conversation
Show answer

B. Information buried in the middle of a long context is used less reliably (lost in the middle). Less text, placed close to the question, helps on both counts.

Domain 5 · lesson 57

Quiz

10. The team caches the tools and system prompt with cache_control. Then they add the current date and time at the start of the system prompt, and cache hits drop to zero. Why?

  • A. Caching does not work with system prompts
  • B. Timestamps are not allowed in prompts
  • C. The cached prefix now changes on every request; anything that varies must come after the cached part
  • D. The cache needs a larger max_tokens
Show answer

C. A cache hit needs an identical prefix. Put stable content first, mark the cache breakpoint, and add varying content such as the time after it.

Domain 5 · lesson 14

Scenario 2 · A multi-agent research assistant

Quiz

11. The user tells the coordinator “only use EU sources”. The subagents keep citing US sources. What is the most likely cause?

  • A. Subagents do not inherit the coordinator’s conversation; the constraint was not in the brief each subagent received
  • B. The subagents use a smaller model
  • C. The coordinator’s context window is full
  • D. The search tool ignores regions
Show answer

A. A subagent sees only its own system prompt and the brief passed to it. Every constraint it must follow has to be in that brief.

Domain 1 · lesson 37

Quiz

12. Which request justifies a coordinator with parallel subagents rather than a single agent?

  • A. Summarise one 20-page report
  • B. Compare 12 vendors on price, security and support, each needing its own searches
  • C. Translate a summary into French
  • D. Answer a factual question from one known document
Show answer

B. Independent parallel parts are what a team is for. The others are single tasks, where a team only adds cost and failure points.

Domain 1 · lesson 33

Quiz

13. Three subagents get overlapping assignments and research the same vendors, while two vendors are covered by nobody. What is the strongest fix?

  • A. Tell the coordinator to “avoid duplicate work”
  • B. Give every subagent the full vendor list
  • C. Use one agent instead
  • D. Have the coordinator produce an assignment plan, check it in code for gaps and duplicates, and send it back once with the problems
Show answer

D. Coverage is checkable, so check it in code, like a test. A plan that still has gaps after one retry goes to a human.

Domain 1 · lesson 36

Quiz

14. Subagents return their findings as prose, and the coordinator sometimes reports figures wrongly. What helps most?

  • A. Ask the coordinator to read more carefully
  • B. A result schema per subagent (claim, figure, unit, source id, exact quote), validated before the coordinator uses it
  • C. Give the coordinator a bigger model
  • D. Let the subagents write the final report themselves
Show answer

B. Between agents, prose is a liability. A schema makes each hand-off something you can validate and test.

Domain 1 · lesson 38

Quiz

15. With the Agent SDK, the coordinator starts its subagents, but every MCP tool call they make is denied. The query runs with permissionMode: "dontAsk", and each subagent lists its MCP tools in its tools field. What is the most likely cause?

  • A. The Agent tool is not in the coordinator’s allowedTools
  • B. The subagents need their own API key
  • C. A subagent’s tools list does not pre-approve those tools; with dontAsk, unapproved calls are denied, so the MCP tools must also be in allowedTools
  • D. The coordinator’s model is too small to delegate
Show answer

C. tools decides which tools a subagent can see; approval is separate. In dontAsk mode anything not pre-approved is denied. The Agent tool itself needs no approval, so A is not the problem.

Domain 1 · lesson 35

Quiz

16. The web_search tool returns 50 results with the full page text of each, and the context fills up after two searches. What is the better design?

  • A. web_search returns the top results with title, URL and a short snippet; a separate fetch_page tool gets the full text of a chosen page
  • B. Keep the tool and raise the context limit
  • C. Summarise every page with a second model inside the tool
  • D. Return only the first result
Show answer

A. Small, predictable outputs. Let the model decide which pages deserve the full text, instead of paying for all of them up front.

Domain 2 · lesson 24

Quiz

17. Which of these belongs in a skill rather than an MCP tool?

  • A. Access to the company’s internal knowledge base, which needs credentials
  • B. Querying the CRM for customer counts
  • C. “How we write a research brief”: structure, citation rules and a template
  • D. Fetching a web page
Show answer

C. A skill teaches how to do something; an MCP tool gives access to a system. The other three are capabilities with their own access and credentials.

Domain 2 · lesson 45

Quiz

18. The final report must cite its sources, but the model sometimes cites a source that was never fetched. How should the prompt be structured to make this rarer?

  • A. Put each fetched document in its own XML tag with an id, before the instructions and the question; require every claim to cite a document id and quote it
  • B. Add “never invent sources” in capitals
  • C. Ask for URLs at the end of the report
  • D. Remove the sources and ask the model to cite from memory
Show answer

A. Clearly separated, addressable documents and a citation format give the model something concrete to cite. Code can then check every quote (lesson 58).

Domain 4 · lesson 16

Quiz

19. After three rounds of summarising, the coordinator’s notes say “prices vary widely” where the original finding was “Vendor A €12/user, Vendor B €31/user (pricing pages, 3 March)”. What is happening, and what is the fix?

  • A. The model is lazy; ask for more detail
  • B. The context window is too small; use a larger model
  • C. Summaries should be longer
  • D. Progressive summarisation loses numbers and sources; keep extracted facts verbatim in a separate block that is updated, never summarised
Show answer

D. Each round of summarising a summary drops specifics. Facts with sources live outside the summary.

Domain 5 · lesson 56

Quiz

20. With 30 subagent results, the coordinator’s context approaches its limit, because each result includes the raw pages that were read. What should change?

  • A. Raise max_tokens
  • B. Subagents return compact structured findings with source ids; raw pages stay with the subagent and can be fetched again if needed
  • C. Run fewer subagents
  • D. Ask the coordinator to ignore the raw pages
Show answer

B. The point of a subagent is to absorb the detail and return only what the coordinator needs. Raw text in the hand-off defeats that.

Domain 5 · lesson 37

Scenario 3 · Claude Code for a development team

Quiz

21. Everyone working in the repository must use pnpm, never npm. Where does this go?

  • A. In each developer’s ~/.claude/CLAUDE.md
  • B. In CLAUDE.local.md
  • C. In the project’s CLAUDE.md, committed to the repository
  • D. In a pull-request template
Show answer

C. A rule for everyone who works on this project belongs at project scope, in a committed file. User and local scopes are personal.

Domain 3 · lesson 42

Quiz

22. Security requires that no developer can allow Claude Code to run curl to arbitrary hosts, whatever their own settings say. What enforces this?

  • A. A managed (organisation) settings policy with a deny rule; it overrides user, project and local settings
  • B. A line in the project’s CLAUDE.md
  • C. A deny rule in each developer’s user settings
  • D. A note in the onboarding documentation
Show answer

A. Managed settings sit at the top of the precedence order and cannot be overridden. CLAUDE.md is guidance, not enforcement. For a rule that must hold whatever the command looks like (a full path, sh -c), the sandbox’s network allowlist is stronger still.

Domain 3 · lesson 42

Quiz

23. The team has conventions that only apply to database migrations in db/migrations/. How do you keep them out of every other session’s context?

  • A. Put them at the top of CLAUDE.md
  • B. Put them in a rule file in .claude/rules/ with paths: frontmatter matching db/migrations/**
  • C. Put them in a skill without a description
  • D. Ask developers to paste them when needed
Show answer

B. A path-scoped rule loads only when Claude works on matching files, so it costs nothing elsewhere.

Domain 3 · lesson 44

Quiz

24. A team skill for writing release notes is almost never used unless someone asks for it by name. What is the most likely cause?

  • A. Skills only run when invoked by name
  • B. The skill file is too long
  • C. The skill needs a hook
  • D. The description in its frontmatter is vague and does not say when the skill should be used
Show answer

D. Claude decides from the description whether a skill fits the task. A description that names the situation (“when the user asks for release notes or a changelog”) gets it used.

Domain 3 · lesson 45

Quiz

25. The team wants the formatter to run automatically after every file Claude Code edits. Which mechanism fits?

  • A. A PostToolUse hook on the edit and write tools that runs the formatter
  • B. A line in CLAUDE.md asking Claude to run the formatter
  • C. A PreToolUse hook that blocks edits until the file is formatted
  • D. A skill called “format”
Show answer

A. Something that must happen every time is a hook, not a request. It runs after the edit, so it is PostToolUse.

Domain 3 · lesson 46

Quiz

26. Someone wrote a PostToolUse hook to stop Claude Code from editing .env files. The files still get changed. Why?

  • A. The hook needs to exit with code 0
  • B. PostToolUse runs after the tool has already run; blocking needs a PreToolUse hook (exit code 2) or a deny rule in the permissions
  • C. Hooks do not work on .env files
  • D. The hook must be in CLAUDE.md
Show answer

B. PostToolUse can react to a change, not prevent it. Prevention happens before the call: a PreToolUse hook or, simpler, a deny permission rule.

Domain 3 · lesson 46

Quiz

27. Which task benefits most from plan mode?

  • A. Fixing a typo in an error message
  • B. Renaming one local variable
  • C. Replacing the authentication library across 30 files when the migration approach is not yet clear
  • D. Adding a missing semicolon
Show answer

C. Plan mode pays off when the change is large, risky and the approach still needs agreeing. For small, obvious edits it only adds a step.

Domain 3 · lesson 48

Quiz

28. After a long investigation session, a developer wants to try two different fixes, each starting from exactly what Claude has already found. What fits?

  • A. Start two fresh sessions and repeat the investigation
  • B. Continue the same session and try both fixes one after the other
  • C. Copy the transcript into a new session
  • D. Resume the session twice with --fork-session, so each attempt branches from the same state without changing the original
Show answer

D. Forking gives two independent continuations from one shared starting point. Continuing in one session mixes the attempts.

Domain 1 · lesson 49

Quiz

29. The project’s .mcp.json for the issue-tracker server contains a hard-coded API token. What should it contain instead?

  • A. A reference to an environment variable, such as ${TRACKER_TOKEN}, set by each developer outside the repository
  • B. The token, encrypted with a team password
  • C. The token in a separate committed file
  • D. No authentication; trust the network
Show answer

A. .mcp.json is committed and shared. Secrets come from each developer’s environment, never from the repository.

Domain 2 · lesson 31

Quiz

30. The team defines a reviewer subagent in .claude/agents/ with only read and search tools. What is the main benefit over asking the main session to review?

  • A. It runs on a cheaper model by default
  • B. It can push commits after reviewing
  • C. It starts with its own clean context and limited tools, so it reviews the change without the reasoning that produced it
  • D. It remembers previous reviews across sessions
Show answer

C. A fresh context gives an independent look; scoped tools keep a reviewer from changing what it reviews.

Domain 1 · lesson 52

Scenario 4 · Claude Code in CI/CD

Quiz

31. Claude Code must run in a GitHub Actions job without any interaction, and the job must read the result. What is the basis of the command?

  • A. claude in interactive mode with a timeout
  • B. claude -p "<task>" --output-format json
  • C. claude --continue in the job
  • D. Run the Claude desktop app on the runner
Show answer

B. -p runs headless: one prompt, one result, no interaction. JSON output gives the script something it can parse.

Domain 3 · lesson 51

Quiz

32. In CI, the review step reports that it could not run npm test: the call was denied. Locally, Claude Code asks for permission to run it and you approve. What is the fix?

  • A. Run the job on a bigger runner
  • B. Increase the job timeout
  • C. Pre-approve exactly the tools the job needs, e.g. --allowedTools "Bash(npm test)", because nobody can answer a permission prompt in CI
  • D. Remove npm test from the repository
Show answer

C. In a headless run, a call that needs approval is denied, because nobody is there to answer. Pre-approve the specific calls the job needs, and nothing more.

Domain 3 · lesson 51

Quiz

33. Where does the API key for the CI review job belong?

  • A. In the workflow file, so the job can read it
  • B. In .mcp.json
  • C. In the project’s CLAUDE.md
  • D. In the repository’s encrypted secrets, given only to the job that needs it
Show answer

D. Secrets in the CI secret store, scoped to one job. Pull requests from forks do not receive them, which is what you want.

Domain 3 · lesson 22

Quiz

34. A pipeline runs a review in one step and wants to ask a follow-up question about the same review in a later step. How?

  • A. Read the session_id from the first step’s JSON output and run the second step with --resume and that id
  • B. Run the whole review again in the second step
  • C. Pass the first step’s output as an environment variable
  • D. It is impossible in CI
Show answer

A. Sessions are stored and can be resumed by id. The JSON output carries the id the next step needs.

Domain 3 · lesson 49

Quiz

35. The CI review labels similar issues major on one run and minor on the next. What makes severity consistent?

  • A. Ask for “consistent severity”
  • B. Run each review three times and keep the most severe
  • C. An enum in the output schema plus a definition of each level with checkable criteria and one example each
  • D. Let the build fail on any issue
Show answer

C. The schema fixes the allowed values; definitions with criteria and examples fix their meaning.

Domain 4 · lesson 19

Quiz

36. A script parses the review’s JSON, but now and then the answer is wrapped in markdown fences or preceded by a sentence, and the parse fails. What is the best fix?

  • A. Strip fences with a regular expression
  • B. Use structured output with a JSON schema (or a forced tool call), and validate the result
  • C. Add “no markdown” to the prompt
  • D. Retry until the parse succeeds
Show answer

B. Prompting for “only JSON” is a request. Structured output gives schema-shaped JSON by construction; validation makes it safe.

Domain 4 · lesson 9

Quiz

37. The review prompt mixes the instructions and a 2,000-line diff in one block of text. What is the better structure?

  • A. Instructions after the diff, in capitals
  • B. The diff in the system prompt and the instructions in the user message
  • C. Paste the diff twice
  • D. Stable instructions in the system prompt; the diff inside <diff> tags in the user message; the actual question last
Show answer

D. Separating instructions from data with tags, and putting the question last, is the standard structure, and it makes the stable part cacheable.

Domain 4 · lesson 16

Quiz

38. Every pull request needs the same three steps: summarise the changed tests, list the risky files, write a changelog entry. The team built an agent with tools to do this. Costs and runtimes vary a lot. What fits better?

  • A. A fixed workflow: three model calls in a set order, with the inputs prepared in code
  • B. A team of three agents
  • C. A larger model with more tools
  • D. Let the agent decide the order more freely
Show answer

A. Predictable steps do not need an agent to decide them. A workflow is cheaper, faster and easier to test.

Domain 1 · lesson 33

Quiz

39. A release-notes agent in CI sometimes loops for 40 turns calling git log again and again. What protects the pipeline?

  • A. A longer job timeout
  • B. Remove the git log tool
  • C. A maximum number of turns, after which the job reports what it has and stops, plus a test for that path
  • D. Ask the model to stop after ten calls
Show answer

C. Every loop needs a limit enforced in code, and a defined result when the limit is hit.

Domain 1 · lesson 27

Quiz

40. For a 15,000-line pull request, the review finds problems in the first and last files but misses obvious ones in the middle. What helps most?

  • A. Review per file or module in separate calls, then combine the findings
  • B. Ask the model to read more carefully
  • C. Raise max_tokens
  • D. Put the instructions at the start and the end
Show answer

A. Long contexts lose detail in the middle. Smaller, focused reviews avoid the problem instead of fighting it.

Domain 4 · lesson 57

Scenario 5 · Structured extraction from supplier invoices

Quiz

41. Each invoice must be extracted into a fixed structure, and the pipeline must always receive a call to extract_invoice. The pipeline runs on a model that supports forced tool use. Which setting guarantees that?

  • A. tool_choice: { type: "auto" }
  • B. tool_choice: { type: "none" }
  • C. A prompt line: “Always call extract_invoice”
  • D. tool_choice: { type: "tool", name: "extract_invoice" }
Show answer

D. Forcing the tool makes the call certain, and its input is your schema-shaped data: the classic tool_use route to structured output. Some current models (Opus 5.5, Sonnet 5.5, Fable and Mythos 5.x) reject forced tool use; there, use auto with a strict tool and validation, or native structured output.

Domain 4 · lesson 25

Quiz

42. Validation shows that line totals do not add up to the invoice total. What should the pipeline do?

  • A. Accept the extraction; the model is usually right
  • B. Retry once with the specific validation error as feedback; if it still fails, send the invoice to a human queue
  • C. Retry until the numbers add up
  • D. Correct the total in code to match the lines
Show answer

B. A retry with the concrete error lets the model fix a misread. A limit and a human fallback prevent loops and silent corrections.

Domain 4 · lesson 10

Quiz

43. Some invoices have no purchase-order number, and the model then invents one. What is the best fix?

  • A. Make poNumber nullable in the schema and say: “null when the invoice shows no PO number”
  • B. Make poNumber required so the model must look harder
  • C. Remove the field
  • D. Add “do not hallucinate”
Show answer

A. A required field pushes the model to produce something. Allowing an explicit “not present” removes the pressure to invent.

Domain 4 · lesson 9

Quiz

44. Invoices come from 40 suppliers with different layouts; dates are often extracted in the wrong format. What helps most?

  • A. A larger model
  • B. A longer description of date formats
  • C. A few examples covering different layouts, each showing the source text and the expected ISO date
  • D. Post-processing that guesses the format
Show answer

C. Diverse examples showing input and exact output make the behaviour consistent. Keep them varied so the model learns the rule, not one layout.

Domain 4 · lesson 20

Quiz

45. The team turns on extended thinking for hard invoices, and requests with tool_choice forcing extract_invoice now fail. Why, and what works?

  • A. Thinking needs a smaller schema
  • B. Thinking only works without tools
  • C. Thinking requires tool_choice: none
  • D. Forced tool use is not compatible with extended thinking; use auto with clear instructions plus validation, or native structured output
Show answer

D. With thinking on, the model must be free to reason before calling a tool, so forcing is not allowed. Keep the guarantee with validation in code.

Domain 4 · lesson 25

Quiz

46. Every response must call exactly one of two tools: extract_invoice or flag_unreadable. The model supports forced tool use. Which tool_choice fits?

  • A. any
  • B. auto
  • C. none
  • D. tool with extract_invoice
Show answer

A. any requires a tool call but leaves the choice between tools to the model. auto allows plain text; forcing one tool removes the other option. On models that reject forced tool use, use auto, an instruction to always call one of the two, and a check in code.

Domain 2 · lesson 25

Quiz

47. The lookup_supplier(vatId) tool cannot find an unknown VAT id. What should it return?

  • A. An empty object, as a normal result
  • B. An error result (is_error: true) saying the VAT id is not known, that retrying will not help, and suggesting to set the supplier to null and flag the invoice
  • C. An exception that stops the pipeline
  • D. A best guess at the supplier
Show answer

B. A structured, non-retryable error tells the model what happened and what to do. An empty object hides the problem; a guess creates wrong data.

Domain 2 · lesson 28

Quiz

48. get_suppliers returns the full table of 300 suppliers with 40 fields each, and extraction quality dropped since it was added. What is the better design?

  • A. Return the table as CSV to save tokens
  • B. Keep it, but tell the model to ignore irrelevant suppliers
  • C. Put the table in the system prompt
  • D. A lookup_supplier(vatId) tool that returns one supplier with only the fields extraction needs
Show answer

D. Tools answer one question with small, predictable outputs. A whole table wastes tokens and attention.

Domain 2 · lesson 24

Quiz

49. Which extracted invoices should go to a human for review?

  • A. Every invoice where the model reports a confidence below 0.9
  • B. None; validation is enough
  • C. Invoices that fail validation checks or show conflicting values, plus a small random sample of the rest for auditing
  • D. Only invoices above €10,000
Show answer

C. Self-reported confidence is a weak signal. Checks in code catch known problems; a random sample catches the unknown ones and measures quality over time.

Domain 5 · lesson 55

Quiz

50. 10,000 invoices are extracted every night and results are needed the next morning. What reduces cost the most without changing quality?

  • A. The Message Batches API: asynchronous processing at a lower price, finished well within the window
  • B. A smaller model
  • C. Shorter prompts
  • D. Running the job during the day
Show answer

A. Non-urgent, high-volume work is what batches are for: same model and prompts, lower cost, results within hours.

Domain 4 · lesson 14

Scenario 6 · TestPilot in a large QA department

Quiz

51. In the tool loop, a triage response comes back with stop_reason: "max_tokens" and no submit_verdict call. What should the loop do?

  • A. Parse the partial text for a category
  • B. Treat the failure as not triaged (or retry with a higher limit), and never use the partial answer as a verdict
  • C. Classify the failure as unknown
  • D. Send the same request again unchanged until it ends normally
Show answer

B. The answer was cut off. Using it, or calling it unknown, misreports what happened. Raise the limit or report not triaged.

Domain 1 · lesson 27

Quiz

52. A response comes back with stop_reason: "pause_turn" while a server-side tool is still working. What does the loop do?

  • A. Treat it as an error
  • B. Return the text so far as the final answer
  • C. Send the response back as-is in the next request, so the model can continue the turn
  • D. Start a new conversation
Show answer

C. pause_turn means the turn is not finished. Continuing is the loop’s job, not the user’s.

Domain 1 · lesson 27

Quiz

53. The nightly job crashes at failure 23 of 40 when the runner restarts. How should it continue?

  • A. Run all 40 again
  • B. Resume the crashed conversation from its last message
  • C. Skip the remaining failures and report what was done
  • D. Store each failure’s result as it completes, and on restart triage only the failures without a stored result
Show answer

D. Durable state per unit of work makes a job resumable. One long conversation is not a reliable store.

Domain 1 · lesson 40

Quiz

54. Of 40 failures, 12 have the identical error connect ECONNREFUSED 10.0.4.17:8443. What is the most efficient approach?

  • A. Group them in code by error signature and investigate the group once
  • B. Investigate all 12 in parallel
  • C. Ask a model to group them
  • D. Skip them as environment noise
Show answer

A. Grouping by signature needs no model. One investigation explains twelve failures.

Domain 1 · lesson 36

Quiz

55. The coordinator’s plan leaves three failures unassigned and assigns one twice. What happens next?

  • A. Run the plan as it is and fix the report afterwards
  • B. Assign the missing ones randomly
  • C. Code detects the gaps and the duplicate and sends them back to the coordinator once; if the plan still has gaps, a human decides
  • D. Ask the coordinator to double-check its own plan before sending it
Show answer

C. A coverage check in code, one retry with feedback, then a human: the same pattern as every other gate.

Domain 1 · lesson 36

Quiz

56. A colleague proposes replacing all TestPilot tools with one ci_query(sql) tool “for flexibility”. What is the main problem?

  • A. SQL is too slow
  • B. One general tool is hard to describe, hard to permission and pushes the joining logic onto the model; specific tools per question are easier to select and control
  • C. The model cannot write SQL
  • D. MCP does not support SQL tools
Show answer

B. One tool per question: clear descriptions, small typed inputs and permissions that fit each job.

Domain 2 · lesson 24

Quiz

57. Someone adds create_issue to the shared testpilot-mcp server, which both the nightly job and developers’ Claude Code sessions use. What is the best response?

  • A. Fine, as long as the description says to use it carefully
  • B. Fine, because Claude Code asks before every tool call anyway
  • C. Rename it to make the risk obvious
  • D. Keep write tools out of the shared server until gates exist, or expose them only as proposal tools that a human approves
Show answer

D. A shared server multiplies who can trigger a write. Descriptions are not controls; proposals and credentials are.

Domain 2 · lesson 30

Quiz

58. TestPilot’s category definitions should be available to Claude Code sessions that use the MCP server. Should they be a tool or a resource?

  • A. A resource: data the client or user adds to context, rather than an action the model decides to call
  • B. A tool, so the model fetches them when needed
  • C. Neither; paste them into every prompt
  • D. A prompt template
Show answer

A. Tools are chosen by the model; resources are chosen by the application or the user. Reference data fits a resource.

Domain 2 · lesson 30

Quiz

59. With npm run eval -- --repeat 3, one golden case flips between flaky and test_bug across runs. What is it telling you?

  • A. The model is broken for this case
  • B. Raise the temperature to explore more
  • C. The boundary between the two categories is not clear in the definitions or the evidence; sharpen the definitions, or record the second category as acceptable if both are defensible
  • D. Delete the case from the golden set
Show answer

C. Unstable cases are the most valuable ones: they show where definitions are ambiguous. Fix the definition or the label, not the randomness.

Domain 4 · lesson 17

Quiz

60. An investigation of a failing checkout test will continue tomorrow in a new session. What should carry over?

  • A. The full 200-turn conversation, resumed as-is
  • B. Nothing; start the investigation from scratch
  • C. A summary of the conversation written by the model
  • D. A case file kept by code: established facts with sources, what was ruled out, open questions and the next step, used to start a fresh session
Show answer

D. A fresh session started from a short, factual case file is cheaper and more reliable than resuming a long conversation full of rejected paths.

Domain 5 · lesson 56

Answer key and score per domain

Fill in your score per domain before you open the key.

Show the answer key

Domain 1, Agentic architecture and orchestration (17): 1-C, 2-B, 3-D, 11-A, 12-B, 13-D, 14-B, 15-C, 28-D, 30-C, 38-A, 39-C, 51-B, 52-C, 53-D, 54-A, 55-C

Domain 2, Tool design and MCP integration (11): 4-A, 5-C, 16-A, 17-C, 29-A, 46-A, 47-B, 48-D, 56-B, 57-D, 58-A

Domain 3, Claude Code configuration and workflows (11): 21-C, 22-A, 23-B, 24-D, 25-A, 26-B, 27-C, 31-B, 32-C, 33-D, 34-A

Domain 4, Prompt engineering and structured output (14): 6-B, 7-D, 18-A, 35-C, 36-B, 37-D, 40-A, 41-D, 42-B, 43-A, 44-C, 45-D, 50-A, 59-C

Domain 5, Context management and reliability (7): 8-A, 9-B, 10-C, 19-D, 20-B, 49-C, 60-D

What your score tells you

The real exam reports a scaled score (pass at 720 of 1000), and Anthropic does not publish how raw answers map onto it. So treat these bands as our rule of thumb, not as a prediction:

  • 51 or more (85%): book the exam; use the last days for the domains where you dropped the most points.
  • 42–50 (70–84%): close. Revisit the lessons behind every wrong answer, then retake this exam in a week. Questions you got right by luck will show up as wrong.
  • Below 42: work through the module quizzes and lesson 64 again before booking.

Look at the per-domain scores first. One weak domain costs more than a few scattered misses, and Domain 1 carries the most weight.