Question 1 Domain 3: Claude Code Configuration & Workflows · Task 3.1 FlagIn a monorepo, packages/web and packages/api use different lint and test commands. When editing API code, Claude keeps running the web commands. What is the best fix?
A. List both sets of commands in the root CLAUDE.md under one heading B. Add a CLAUDE.md in each package with that package's own commands C. Ask engineers to start Claude Code only from inside the right package D. Put the API commands in each engineer's user-level CLAUDE.md file
Show answerQuestion 2 Domain 3: Claude Code Configuration & Workflows · Task 3.1 FlagClaude keeps creating new helper modules that duplicate utilities the codebase already has in src/lib/. What should you add to the project CLAUDE.md?
A. A rule that Claude must never create any new file anywhere in the project B. A reminder that duplicated code is bad practice and should always be avoided C. A short architecture note saying where shared utilities live and to reuse them D. A full listing of every function in src/lib/ with its complete source code
Show answerQuestion 3 Domain 3: Claude Code Configuration & Workflows · Task 3.2 FlagAn engineer wants a /standup command that summarises their own commits each morning. Nobody else on the team needs it. Where should it live?
A. In their personal ~/.claude/ commands or skills folder, not in the repo B. In the repository's .claude/ folder, so it is backed up with the code C. In a shared team folder that every engineer then has to sync by hand D. In the project CLAUDE.md, as a section that describes the standup steps
Show answerQuestion 4 Domain 3: Claude Code Configuration & Workflows · Task 3.2 FlagA /db-migrate skill is triggered whenever anyone mentions "database", even when they only ask a question about a query. What should you change?
A. Rename the skill so that the word database no longer appears in its name B. Add more steps to the skill body so it handles every database question C. Delete the skill and paste its steps into the project CLAUDE.md instead D. Narrow its description to say it is only for creating schema migrations
Show answerQuestion 5 Domain 3: Claude Code Configuration & Workflows · Task 3.3 FlagFiles under src/generated/ are produced from a schema and must never be edited by hand. Claude sometimes edits them directly. How should you tell Claude this?
A. A comment at the top of each generated file asking people not to edit it B. A skill named regenerate that engineers must remember to run each time C. A rule with paths src/generated/** saying to edit the schema and regenerate D. A sentence in the root CLAUDE.md that loads for every single task in the project
Show answerQuestion 6 Domain 3: Claude Code Configuration & Workflows · Task 3.4 FlagA new feature needs a charting library, and three options look viable, each with different trade-offs. How should the engineer start working with Claude?
A. Ask Claude to build the feature three times, once with each library B. Skip the comparison and pick the library with the most GitHub stars C. Use direct execution with the first library that Claude happens to pick D. Use plan mode to compare the options and agree on one before coding
Show answerQuestion 7 Domain 3: Claude Code Configuration & Workflows · Task 3.5 FlagClaude's first implementation is close, but its variable names don't follow the team's style in a few places. What is the most effective next step?
A. Say "the names are wrong" and let Claude work out which ones to change B. Point to the specific lines and say what each name should be instead C. Ask Claude to start again from scratch and write the feature once more D. Accept the code as it is, since naming has no effect on how it runs
Show answerQuestion 8 Domain 1: Agentic Architecture & Orchestration · Task 1.7 FlagAn engineer has dozens of past sessions and needs the one from last Tuesday about the payments bug, which they never named. What should they run?
A. claude --resume, then pick the payments session from the list shown B. claude --compact, which merges every past session into a new one C. claude --init, which rebuilds old sessions from the project files D. claude --continue, which always reopens last Tuesday's conversation
Show answerQuestion 9 Domain 1: Agentic Architecture & Orchestration · Task 1.7 FlagA script runs Claude Code headlessly twice: first to analyse a bug, then to write the fix with the analysis still in context. How should the second call continue the first?
A. Run both steps in one call with a single, very long combined prompt B. Paste the full text of the first call's output into the second prompt C. Start the second call fresh, since headless runs can't share context D. Read session_id from the first call's JSON output and pass it to --resume
Show answerQuestion 10 Domain 1: Agentic Architecture & Orchestration · Task 1.3 FlagThe team's reviewer subagent in .claude/agents/ should only read code, never change it. How should this be set?
A. Add a note to the project CLAUDE.md describing the reviewer's role B. Write "please don't edit files" at the top of its system prompt C. Limit the tools field in its frontmatter to read and search tools D. Name the file read-only-reviewer.md so Claude treats it that way
Show answerQuestion 11 Domain 1: Agentic Architecture & Orchestration · Task 1.5 FlagThe team wants every file Claude edits to be formatted with Prettier automatically, without relying on Claude to remember. What should you configure?
A. A PostToolUse hook on Edit and Write that runs Prettier on the file B. A PreToolUse hook that blocks any edit until the file is formatted C. A weekly job that formats the entire repository every Sunday night D. A CLAUDE.md line asking Claude to run Prettier after it edits a file
Show answerQuestion 12 Domain 2: Tool Design & MCP Integration · Task 2.4 FlagOne engineer wants an MCP server available only in this project, only for themselves, and not committed to the repo. Which scope fits, according to current Claude Code docs?
A. CLAUDE.md, with the server URL written in a section for that user B. Local scope, stored for that project in their own ~/.claude.json C. Project scope, in the .mcp.json file committed to the repository D. User scope, which makes the server available in every project
Show answerQuestion 13 Domain 2: Tool Design & MCP Integration · Task 2.5 FlagClaude needs to create a brand-new config file, and later change one value in a large existing file. Which tools fit these two jobs?
A. Write for both, since rewriting a whole file is always the safest way B. Bash with echo for both, since shell commands handle any kind of file C. Write for the new file, and Edit for the single change in the big file D. Edit for the new file, and Write to replace the whole big file at once
Show answerQuestion 14 Domain 5: Context Management & Reliability · Task 5.4 FlagClaude has been reading thousands of lines of test logs in the main session, and its answers about the code are getting vaguer. What should the engineer do next time?
A. Keep everything in the main session but restart the computer first B. Paste even more logs so Claude has more evidence to reason about C. Ask Claude to read the logs faster so they take up less of the context D. Delegate the log analysis to a subagent that returns only key failures
Show answerQuestion 15 Domain 5: Context Management & Reliability · Task 5.4 FlagAfter running /compact, Claude no longer has the exact error message the engineer was debugging. How can this be avoided?
A. Run /compact twice in a row so the summary contains more of the detail B. Keep critical exact strings in a scratchpad file, or tell /compact to keep them C. Never run /compact, whatever happens to the context in a long session D. Ask Claude to try to remember the error message as well as it possibly can
Show answerQuestion 16 Domain 2: Tool Design & MCP Integration · Task 2.4 FlagThe tool connects to eight MCP servers "just in case", and tool selection errors have gone up. What is the best change?
A. Connect only the servers this tool actually needs for its tasks B. Keep all eight and add a prompt listing which servers to prefer C. Keep all eight and switch to a model with a larger context window D. Keep all eight but reorder them so the useful servers come first
Show answerQuestion 17 Domain 2: Tool Design & MCP Integration · Task 2.4 FlagAn MCP server fails to authenticate, and its logs show the header value is literally ${GITHUB_TOKEN}. What is the most likely cause?
A. The server can only read tokens that are stored in CLAUDE.md files B. The GITHUB_TOKEN environment variable isn't set where Claude runs C. Environment variable expansion isn't supported in .mcp.json files D. The token must be written directly in the file without any braces
Show answerQuestion 18 Domain 2: Tool Design & MCP Integration · Task 2.5 FlagAn engineer asks the tool to run the project's test suite and report which tests fail. Which built-in tool is the right one?
A. Bash, since running the test command is a shell operation B. Glob, listing every test file so the engineer can run them C. Grep, searching the test files for the word fail or error D. Read, opening each test file to judge whether it would pass
Show answerQuestion 19 Domain 2: Tool Design & MCP Integration · Task 2.5 FlagThe engineer wants to know what went wrong near the end of a 200,000-line log file. What is the efficient way to look at it?
A. Glob for every log file in the system and read each one completely B. Read the entire file into context first, then search it for errors C. Write a new copy of the log file and then read the copy from the top D. Read only the relevant part, using an offset and limit near the end
Show answerQuestion 20 Domain 2: Tool Design & MCP Integration · Task 2.1 FlagA custom generate_boilerplate tool often receives template names that don't exist. Its description says only "Generates boilerplate from a template". What should the description add?
A. Nothing; the error message after a bad call is enough to correct it B. A note that the tool is very powerful and should be used with care C. The list of valid template names, with a short example of a call D. The internal implementation details of how templates are rendered
Show answerQuestion 21 Domain 1: Agentic Architecture & Orchestration · Task 1.1 FlagClaude requests a tool named run_linter, but the loop has no handler for it and crashes with a KeyError. How should the loop handle unknown tool names?
A. Skip the call silently and send the next request with no tool result B. Crash the run so the engineer can add the missing handler right away C. Pick whichever defined tool has the most similar name and then run that one D. Return an error tool_result saying the tool doesn't exist, then continue
Show answerQuestion 22 Domain 1: Agentic Architecture & Orchestration · Task 1.2 FlagTwo module subagents give contradictory explanations of how a legacy job scheduler works. What should the coordinator do?
A. Spot the conflict and send a targeted check before writing the answer B. Merge both explanations into one answer without mentioning the conflict C. Report whichever explanation came back first, since it ran fastest D. Discard both explanations and answer from general knowledge instead
Show answerQuestion 23 Domain 1: Agentic Architecture & Orchestration · Task 1.3 FlagA boilerplate subagent keeps generating code that ignores the team's conventions, which are documented in docs/conventions.md. The coordinator's Task prompt just says "Generate a new service." What should change?
A. Assume the subagent already knows the conventions from the coordinator B. Ask the subagent to search the web for common service conventions before starting C. Include the relevant conventions, or the file to read, in the Task prompt D. Fix the generated code by hand afterwards every time it is generated
Show answerQuestion 24 Domain 1: Agentic Architecture & Orchestration · Task 1.6 FlagThe tool must move 10 services to a new logging library. Each service goes through the same high-level steps, but the code changes differ in each. Which approach fits?
A. A fully dynamic plan that is invented from scratch for every service B. A fixed checklist for every service, with adaptive edits inside each step C. One identical script of text replacements applied to all ten services D. A single prompt asking for all ten migrations in one long response
Show answerQuestion 25 Domain 1: Agentic Architecture & Orchestration · Task 1.7 FlagIn your Agent SDK tool, an engineer wants to try an alternative fix from the current point without losing the original line of work. Which SDK option supports this?
A. Resume the same session and overwrite it with the alternative attempt B. Copy the session's transcript into a text file and edit it manually C. Start a brand-new session and repeat every earlier step by hand first D. Resume the session with fork_session enabled, creating a new branch
Show answerQuestion 26 Domain 1: Agentic Architecture & Orchestration · Task 1.4 FlagThe tool can run shell commands. The team requires human approval before any destructive command, such as rm -rf or DROP TABLE. How should this be enforced?
A. A log of every command, which the team reviews at the end of each week B. A request that engineers watch the agent closely whenever it runs any commands C. A hook or permission rule that stops those commands until a person approves D. A line in the system prompt asking the agent to be careful with commands
Show answerQuestion 27 Domain 3: Claude Code Configuration & Workflows · Task 3.4 FlagAn engineer in plan mode asks Claude to fix a typo, but nothing changes in the file. Why?
A. The file must be added to CLAUDE.md before it can be changed B. Plan mode is read-only; switch to execution to make the change C. Plan mode only allows edits to files that are larger than 1 MB D. Typos can only be fixed through a dedicated spelling skill file
Show answerQuestion 28 Domain 5: Context Management & Reliability · Task 5.4 FlagAn engineer asks a question about the billing package in a huge monorepo, and the tool starts by searching the entire repository. What is the more efficient approach?
A. Start the search inside the billing package, then widen it only if needed B. Read every file in the billing package before running any search at all C. Ask the engineer to copy the billing package into a new repository first D. Search the whole monorepo every time, so that no relevant file is ever missed
Show answerQuestion 29 Domain 5: Context Management & Reliability · Task 5.1 FlagA Grep for user returns 2,000 matches, and all of them go into context. The engineer only cares about where users are created. What should the tool do?
A. Add all 2,000 matches, since any of them might matter to the question B. Give up on Grep and ask the engineer where users are created instead C. Read every file that appears in the 2,000 matches from start to end D. Narrow the pattern, for example to createUser, before adding results
Show answerQuestion 30 Domain 5: Context Management & Reliability · Task 5.3 FlagA Bash build command exits with an error, but the agent tells the engineer "Build complete." What should the agent do with failed commands?
A. Hide errors from the engineer, since build output is hard to understand B. Report success whenever a command finishes, whatever its exit status was C. Check the exit status and report the failure with the key error output D. Retry the command silently until it succeeds, without telling anyone
Show answerQuestion 31 Domain 3: Claude Code Configuration & Workflows · Task 3.6 FlagThe CI review needs extra instructions, such as "post at most 10 comments", that shouldn't affect developers' local sessions. Where should these go?
A. In the project CLAUDE.md, so that both CI and local sessions get them B. In a CI-only prompt file passed with --append-system-prompt-file C. In a code comment at the top of every file the review might examine D. In each developer's user-level CLAUDE.md, marked as CI instructions
Show answerQuestion 32 Domain 3: Claude Code Configuration & Workflows · Task 3.6 FlagThe CI job's GitHub token can push to any branch and delete releases, but the review only posts PR comments. What should you change?
A. Give the job a token scoped to reading code and writing PR comments B. Remove the token entirely, so the review can't post any comments C. Keep the broad token but run the review job only during work hours D. Keep the broad token, since the review prompt never asks Claude to push
Show answerQuestion 33 Domain 3: Claude Code Configuration & Workflows · Task 3.6 FlagDevelopers notice that re-running the review on the same PR gives slightly different comments. What is the most realistic response?
A. Expect identical output on every run once the prompt is right B. Tighten the criteria, examples and schema, and accept some variation C. Run the review ten times and post every comment from every run D. Stop using CI review, since varied output means it is unreliable
Show answerQuestion 34 Domain 3: Claude Code Configuration & Workflows · Task 3.6 FlagReviews of very large PRs exceed the CI job's time limit. How should the pipeline handle them?
A. Review files in parallel jobs, then run one integration pass at the end B. Review only the first file and assume the others are similar enough C. Skip the review for any PR that has more than ten changed files D. Raise the CI time limit to 24 hours so any review can always finish
Show answerQuestion 35 Domain 4: Prompt Engineering & Structured Output · Task 4.1 FlagThe reviewer comments on test fixtures and generated files, which developers never change by hand. What should the review criteria say?
A. Review every file equally, since problems can appear anywhere B. Post fixture comments as low priority so they are easy to skip C. Exclude those paths explicitly, and review only hand-written code D. Ask the reviewer to use its judgment about which files matter
Show answerQuestion 36 Domain 4: Prompt Engineering & Structured Output · Task 4.1 FlagMany review comments repeat problems the linter already catches and blocks. What should the review criteria state?
A. Report linter issues too, since a second reminder does no harm B. Report linter issues only when the linter run has been skipped C. Report only the linter issues and skip every other kind of problem D. Do not report issues that the linter already checks and enforces
Show answerQuestion 37 Domain 4: Prompt Engineering & Structured Output · Task 4.2 FlagThe reviewer often comments on code that is actually fine, such as intentional early returns. Which kind of example would help most?
A. More examples of serious bugs, so the reviewer recognises real problems B. A single example showing what a perfect review comment looks like C. Examples of acceptable code that should get no comment, with reasons D. Examples taken from a different language the team doesn't use at all
Show answerQuestion 38 Domain 4: Prompt Engineering & Structured Output · Task 4.2 FlagGenerated tests use inconsistent names and structures across the codebase. What is the most effective way to fix this?
A. Rename all the generated tests by hand after each CI run completes B. Give two or three examples of well-named, well-structured team tests C. Ask Claude to choose whatever names seem descriptive to it each time D. Tell Claude that consistency matters a great deal to the whole team
Show answerQuestion 39 Domain 4: Prompt Engineering & Structured Output · Task 4.4 FlagSome review comments refer to line numbers that aren't in the PR's diff, so they can't be posted. What should the pipeline do?
A. Post the comments on line 1 of the file whenever the given line is invalid B. Ask developers to work out which line each comment was meant for C. Drop the invalid comments without telling anyone about the problem D. Check line numbers against the diff and retry with the specific error
Show answerQuestion 40 Domain 4: Prompt Engineering & Structured Output · Task 4.5 FlagEvery night, a job summarises all stale open PRs for a morning report. Results are matched to PRs by custom_id. Why is custom_id needed?
A. Batch results can come back in any order, so each needs its own ID B. custom_id tells the model which PR to prioritise during processing C. The batch API refuses to run any request without a numeric custom_id D. custom_id makes the batch run faster than a standard synchronous call
Show answerQuestion 41 Domain 4: Prompt Engineering & Structured Output · Task 4.5 FlagWhich of these jobs is the best fit for the Message Batches API?
A. Reviewing a PR while the developer waits to merge it into main B. Answering a developer's question about a failing test right away C. Generating summaries of all stale PRs overnight for a morning report D. Approving a hotfix deploy that must go out within the next few minutes
Show answerQuestion 42 Domain 4: Prompt Engineering & Structured Output · Task 4.6 FlagAn independent instance reviews code that another instance generated. What should the reviewer receive?
A. The generator's own self-review, so it can simply confirm the results B. The generator's full conversation, so it knows why choices were made C. Only the PR title, so that the review stays completely unbiased D. The diff and the requirements, but not the generator's reasoning
Show answerQuestion 43 Domain 4: Prompt Engineering & Structured Output · Task 4.6 FlagYou want to use the reviewer's confidence scores to decide which findings to post automatically. What should you do first?
A. Check the scores against a labelled set of past PR findings B. Ask the reviewer to report its scores more conservatively C. Post every finding above 0.7, since that is a common cut-off D. Average the scores and post findings above the average value
Show answerQuestion 44 Domain 1: Agentic Architecture & Orchestration · Task 1.6 FlagTest generation for a large module produces shallow tests. How could the work be decomposed better?
A. Generate all tests for the module in one request with a much longer limit B. Generate tests function by function, then add a pass for interactions C. Generate tests only for the module's first function and stop there D. Generate the same tests three times and keep the longest version
Show answerQuestion 45 Domain 1: Agentic Architecture & Orchestration · Task 1.4 FlagPolicy says no PR may merge until the CI review job has passed, but people sometimes merge early. How should this be enforced?
A. Ask reviewers in the PR template to wait for the review to finish B. Send a reminder email to the team whenever a PR merges too early C. Add a line in CLAUDE.md telling Claude to block early merges D. Make the review job a required status check in branch protection
Show answerQuestion 46 Domain 4: Prompt Engineering & Structured Output · Task 4.3 FlagSome invoices list several tax lines, such as state and city tax, but the schema has a single tax number, so the model sums them or keeps one. What should change?
A. Model tax as an array of objects, each with its own type and amount B. Remove tax from the schema, since it can be calculated downstream C. Keep one tax field and tell the model to always add the lines up D. Keep one tax field and tell the model to keep only the largest line
Show answerQuestion 47 Domain 4: Prompt Engineering & Structured Output · Task 4.4 FlagSome contract extractions have an end date that falls before the start date. How should the pipeline handle this?
A. Delete the end date so the record no longer looks inconsistent B. Check field consistency in code and retry with the specific error C. Accept the dates as they are, since they came from the document D. Swap the two dates automatically whenever they seem to be out of order
Show answerQuestion 48 Domain 4: Prompt Engineering & Structured Output · Task 4.2 FlagPaid invoices carry a large "PAID" stamp, and the model sometimes reads the stamp's date as the invoice date. What is the most effective fix?
A. Tell the model that stamps are sometimes present on invoices B. Extract every date on the page and let finance choose the right one C. Add examples of stamped invoices showing which date to extract D. Remove every image of a stamp from the documents before extraction
Show answerQuestion 49 Domain 5: Context Management & Reliability · Task 5.5 FlagYou are switching the extraction pipeline to a new model version. What should you do about the confidence thresholds used for routing?
A. Re-check calibration on labelled data, since scores may shift B. Stop using confidence until the next model version is released C. Keep the old thresholds, since confidence works the same way D. Raise every threshold by 0.1 to be on the safe side for a while
Show answerQuestion 50 Domain 5: Context Management & Reliability · Task 5.5 FlagThe business requires 99% accuracy on documents that skip human review. How should the auto-approve confidence threshold be chosen?
A. Choose the threshold that auto-approves the largest share of documents B. Let the model choose its own threshold for each document it processes C. Pick 0.9, since a high number should give high accuracy by itself D. Use labelled data to find the threshold that meets 99% on that segment
Show answerQuestion 51 Domain 5: Context Management & Reliability · Task 5.6 FlagThe pipeline calculates total_due by adding line items when a document doesn't state a total. How should the output show this?
A. Present the calculated total exactly as if it had been printed on the page B. Mark total_due as calculated, not extracted, and say how it was derived C. Leave total_due empty whenever the document does not state one itself D. Round the calculated total so it looks like a typical invoice amount
Show answerQuestion 52 Domain 5: Context Management & Reliability · Task 5.6 FlagThe same invoice was submitted twice, once as a PDF and once as a photo, and the extracted totals differ. What should the pipeline do?
A. Average the two totals and post the result as the invoice amount B. Keep the higher total, since that protects the company if one is wrong C. Keep both extractions, flag the duplicate conflict, and send it to review D. Keep the PDF version and discard the photo without any further check
Show answerQuestion 53 Domain 1: Agentic Architecture & Orchestration · Task 1.2 FlagA coordinator splits a 200-page loan file across extraction subagents, one per section type. Today it sends the whole 200-page file to every subagent. What should it send instead?
A. The whole file to every subagent, so none of them can miss anything B. Only the pages relevant to each subagent's section, with page numbers C. A short summary of the whole file, written by the coordinator first D. Nothing at all, and let each subagent search for the file it needs
Show answerQuestion 54 Domain 2: Tool Design & MCP Integration · Task 2.1 Flaglookup_vendor returns one vendor even when the name is ambiguous, and sometimes it is the wrong one. How should its output be designed?
A. Return an error for every lookup that finds more than one result B. Return only the vendor ID, so the output stays as short as possible C. Return the first vendor in alphabetical order whenever names match D. Return the candidate matches with scores, so ambiguity is visible
Show answerQuestion 55 Domain 2: Tool Design & MCP Integration · Task 2.2 FlagA PDF is corrupted and can't be parsed at all. How should parse_document report this?
A. A non-retryable error explaining the file is corrupt, for manual review B. An empty document, so the extraction returns a record with no fields C. A transient error, so the pipeline keeps retrying the same corrupt file D. A success result containing the raw bytes of the file as plain text
Show answerQuestion 56 Domain 2: Tool Design & MCP Integration · Task 2.2 FlagOCR fails on pages 4 and 5 of a 10-page contract but succeeds on the rest. What should the OCR tool return?
A. The text of the eight pages only, presented as the complete document B. Invented text for pages 4 and 5, based on the content of other pages C. The text of the eight pages that worked, plus which pages failed and why D. A single error for the whole document, with none of the successful page text
Show answerQuestion 57 Domain 2: Tool Design & MCP Integration · Task 2.3 FlagThe extraction agent was given direct, full access to the vendor database "to look things up". What is the better design?
A. A narrow lookup_vendor tool that only returns the fields it needs B. No vendor access at all, so the agent guesses vendor details instead C. Full database access, but only for documents from trusted vendors D. Full database access, with a prompt telling it to only read data
Show answerQuestion 58 Domain 1: Agentic Architecture & Orchestration · Task 1.1 FlagThe extraction step can call lookup_vendor before returning its result, but the pipeline code makes only one model call and then reads the reply. What happens, and what is the fix?
A. It fails because tools can't be used in extraction requests at all B. It stops at the tool_use reply; loop until stop_reason is end_turn C. It returns the vendor directly, so no further call is ever required D. It works fine, since the model runs lookup_vendor by itself in one call
Show answerQuestion 59 Domain 1: Agentic Architecture & Orchestration · Task 1.6 FlagA team plans to split every two-page receipt into a separate request per page and then merge the results. What is the likely effect?
A. Lower cost overall, since smaller requests are always cheaper in total B. Better accuracy on every receipt, since each page gets full attention C. Extra cost and merge errors, since short documents fit well in one pass D. No effect at all, since splitting and merging never change the output
Show answerQuestion 60 Domain 1: Agentic Architecture & Orchestration · Task 1.4 FlagWhen a document is routed to human review, reviewers have to re-run the analysis to see what went wrong. What should the handoff include?
A. Only the document ID, so the reviewer starts from a clean slate B. A note that the document "needs attention" with no other detail C. The full model transcript, including every intermediate attempt D. Which fields failed, the errors, and the source text for each one
Show answer