Question 1 Domain 3: Claude Code Configuration & Workflows · Task 3.1 FlagClaude Code keeps running npm test, but the project actually uses pnpm vitest run, so its test runs fail. What is the best fix?
A. Correct Claude each time it runs the wrong command during a session B. Put the exact build and test commands in the project CLAUDE.md file C. Rename the test script in package.json so that npm test also works D. Add the commands to each engineer's personal user-level CLAUDE.md
Show answerQuestion 2 Domain 3: Claude Code Configuration & Workflows · Task 3.1 FlagAn engineer wants to put the staging database password in the project CLAUDE.md so Claude can run migrations without asking. What should you advise?
A. Keep secrets out of CLAUDE.md and supply them through environment variables B. Add the password to CLAUDE.md but mark that section as confidential C. Put the password in a user-level CLAUDE.md, since that file is safe for secrets D. Add the password to CLAUDE.md and remove it before every git commit
Show answerQuestion 3 Domain 3: Claude Code Configuration & Workflows · Task 3.2 FlagA /new-service workflow needs a template directory and a setup script alongside its instructions. Which form should it take?
A. A wiki page that engineers read before they start building a new service B. A single command file with the template pasted into its body C. A skill folder with SKILL.md plus the template and script files D. A section in CLAUDE.md that describes the template in prose
Show answerQuestion 4 Domain 3: Claude Code Configuration & Workflows · Task 3.2 FlagAn /audit-deps skill should only read files and must never modify them. Following the exam guide, which frontmatter field restricts it?
A. context: fork, so the skill runs inside an isolated subagent B. description, telling Claude that the skill is meant to be safe C. argument-hint, describing which directory the audit should cover D. allowed-tools, listing read-only tools such as Read, Grep and Glob
Show answerQuestion 5 Domain 3: Claude Code Configuration & Workflows · Task 3.3 FlagOne rules file should apply to both React components (src/**/*.tsx) and their CSS modules (src/**/*.module.css). How should its frontmatter be written?
A. Use the single glob src/*/ so the rule covers every file under src B. List both globs under paths, so the rule loads for either file type C. Leave out paths, so the rule loads in every session automatically D. Create two identical rules files, one for each of the two file types
Show answerQuestion 6 Domain 3: Claude Code Configuration & Workflows · Task 3.5 FlagChanging an API response shape will break the client's parser, and both need fixing. How should the engineer give Claude these two issues?
A. In two separate sessions, so each fix starts with a clean context B. One at a time, fixing the API first and mentioning the client later C. Only the API change, and let Claude discover the parser problem D. Together in one message, since the two changes depend on each other
Show answerQuestion 7 Domain 3: Claude Code Configuration & Workflows · Task 3.5 FlagAn engineer reports, "The date parser breaks sometimes." Claude's fixes keep missing the real bug. What should the engineer provide instead?
A. A specific failing input, the actual output and the expected output B. A request that Claude rewrite the whole parser from scratch to be safe C. A note that the bug is urgent so Claude puts more effort into the fix D. A longer description of how often the parser seems to break each week
Show answerQuestion 8 Domain 1: Agentic Architecture & Orchestration · Task 1.7 FlagAn engineer closed their terminal by mistake and wants to pick up the most recent conversation in this project as quickly as possible. What should they run?
A. claude --init, which reloads the last session from CLAUDE.md B. claude --compact, which restores the session from a summary C. claude --continue, which reopens the most recent conversation D. claude --fork, which copies the previous session into a new one
Show answerQuestion 9 Domain 1: Agentic Architecture & Orchestration · Task 1.7 FlagAn engineer has just finished a bug fix and now wants to start an unrelated feature. Their current session is long and full of debugging output. What should they do?
A. Resume an older session from last week that is about a similar feature B. Fork the session, so the feature work keeps all of the debugging context C. Continue in the same session, since Claude already knows the codebase well D. Start a new session, so the feature work begins without irrelevant context
Show answerQuestion 10 Domain 1: Agentic Architecture & Orchestration · Task 1.3 FlagThe team wants a security-reviewer subagent that every engineer can use in Claude Code. Where should it be defined?
A. As a file in the repository's .claude/agents/ folder, committed to git B. In each engineer's home directory, copied there during their onboarding C. In a shared document that engineers paste into Claude when they need it D. As a paragraph in the project CLAUDE.md that describes how to review code
Show answerQuestion 11 Domain 1: Agentic Architecture & Orchestration · Task 1.5 FlagThe team wants to make sure Claude Code can never run git push --force, whatever the conversation says. What should you configure?
A. A line in CLAUDE.md asking Claude never to force-push to any branch B. A skill named safe-push that engineers are asked to use for pushing C. A PreToolUse hook on Bash that blocks commands containing push --force D. A PostToolUse hook that reports any force-push after it has happened
Show answerQuestion 12 Domain 2: Tool Design & MCP Integration · Task 2.4 FlagAn internal MCP server holds about 500 runbook documents that Claude should be able to consult while debugging. How should the server expose them?
A. As one huge tool result that returns every runbook on the first call B. As MCP resources that Claude can browse and read when it needs them C. As 500 separate tools, one named after each of the runbook documents D. As text pasted into CLAUDE.md so each runbook is always in context
Show answerQuestion 13 Domain 2: Tool Design & MCP Integration · Task 2.5 FlagAn engineer wants Claude to find every TODO comment, but only in TypeScript files. Which approach fits best?
A. Grep for TODO, filtered to files that match .ts and .tsx B. Glob for *.ts files, then read each file in turn looking for TODO C. Read the project README to see where the TODO items are listed D. Grep for TODO across the whole repo and skim past other file types
Show answerQuestion 14 Domain 5: Context Management & Reliability · Task 5.4 FlagA refactor runs in three phases. Phase 1 analysed 120 files. Before phase 2 starts, what should be carried forward into its context?
A. Nothing at all, since phase 2 can work everything out again by itself B. The full contents of all 120 files exactly as they were read in phase 1 C. The complete phase 1 conversation transcript, including all tool output D. A concise summary of phase 1 decisions and the list of files it changed
Show answerQuestion 15 Domain 5: Context Management & Reliability · Task 5.4 FlagSeveral subagents explore different modules over a long task, and each needs to know what the others have already found. What is a good way to share their discoveries?
A. Have each one repeat the full exploration of every module done by others B. Have each one keep its findings private and report only at the very end C. Have each one append findings to a shared scratchpad file the others read D. Have the subagents send their entire conversations to each other directly
Show answerQuestion 16 Domain 1: Agentic Architecture & Orchestration · Task 1.2 FlagReports repeat the same findings several times, because three search subagents covered overlapping ground. What should the coordinator change?
A. Have the report generator delete any paragraph that looks familiar B. Give each subagent a distinct, non-overlapping scope when delegating C. Merge the three subagents into one so that only one search is made D. Ask each subagent to write shorter findings to reduce the repetition
Show answerQuestion 17 Domain 1: Agentic Architecture & Orchestration · Task 1.2 FlagThe coordinator passes its entire conversation history to every subagent "so they have full context". What is the main problem?
A. Passing history makes the coordinator skip its own synthesis step later B. History is only allowed in system prompts, not in a subagent's message C. Subagents get irrelevant material that costs tokens and dilutes focus D. Subagents can't read history from another agent under any circumstances
Show answerQuestion 18 Domain 1: Agentic Architecture & Orchestration · Task 1.3 FlagThe coordinator writes subagent prompts as long, step-by-step procedures, and subagents fail whenever a step doesn't fit what they find. How should the prompts be written?
A. Copy the coordinator's own system prompt into each subagent's prompt B. State the research goal and the quality criteria, not a fixed procedure C. Give no instructions at all, so the subagents decide everything freely D. Add even more detailed steps so that every possible case is covered
Show answerQuestion 19 Domain 1: Agentic Architecture & Orchestration · Task 1.3 FlagThe synthesis subagent can't tell which finding came from which source, because the coordinator pastes all findings as one block of text. How should findings be passed?
A. As separate subagent calls, one for each finding and its source URL B. As one longer block of text with a list of every URL added at the end C. As a short summary written by the coordinator, without any sources D. As structured entries that keep each finding with its source metadata
Show answerQuestion 20 Domain 1: Agentic Architecture & Orchestration · Task 1.6 FlagEvery Monday the system produces the same four-section market update from the same set of sources. Which approach fits this report?
A. A fixed prompt chain that runs the same four steps each week B. A single prompt that writes the report without using any tools C. A dynamic plan that the coordinator rethinks from zero weekly D. An open-ended agent that chooses new sources every single week
Show answerQuestion 21 Domain 1: Agentic Architecture & Orchestration · Task 1.4 FlagFor some questions the sources are too thin to support a reliable answer, and an analyst must take over. What should the system hand to the analyst?
A. Only the original question, so the analyst can start from a clean slate B. A best-guess report written anyway, with a disclaimer at the very end C. What was found, which sources were checked, and the gaps that remain D. The raw logs from every subagent, so the analyst can see all the work
Show answerQuestion 22 Domain 2: Tool Design & MCP Integration · Task 2.3 FlagThe coordinator often runs web searches itself instead of delegating, and its context fills with raw search results. What is the best change?
A. Give the coordinator a bigger context window for search results B. Let the coordinator search only on Mondays to reduce its load C. Ask the coordinator in its prompt to delegate the searches more often D. Remove the search tools from the coordinator so it has to delegate
Show answerQuestion 23 Domain 2: Tool Design & MCP Integration · Task 2.3 FlagWhich tool set best fits the web search subagent?
A. A few focused tools such as web_search, fetch_page and extract_quotes B. The report generator's formatting tools plus its own search tools C. No tools at all, with the search results written into its prompt D. Every tool in the system, so it never has to wait for another agent
Show answerQuestion 24 Domain 2: Tool Design & MCP Integration · Task 2.2 FlagA search for a very niche topic returns zero results, and the API call itself succeeded. How should the search subagent report this?
A. As an error with isError true, since no results is a failure state B. As a successful result that says no matches were found for the query C. As a transient error, so the coordinator retries the same query later D. By inventing a few likely results so the report is not left empty
Show answerQuestion 25 Domain 2: Tool Design & MCP Integration · Task 2.1 FlagThe search subagent uses web_search for questions about internal company policies, which actually live in the document store reached by search_internal. What should you change?
A. Remove web_search so the subagent can only search the internal store B. Put search_internal first in the tool list so it is picked more often C. Add a rule that every query must call both tools and merge the results D. Say in each description what the tool covers and when to use the other
Show answerQuestion 26 Domain 5: Context Management & Reliability · Task 5.3 FlagOne search subagent timed out on a very broad query. Other topics are covered. What should the coordinator do first?
A. Leave the topic out of the report silently and publish the rest as is B. Cancel the whole report, since one failed subagent spoils every result C. Retry that topic with a narrower query or another source, then reassess D. Retry the identical broad query in a tight loop until it finally works
Show answerQuestion 27 Domain 5: Context Management & Reliability · Task 5.6 FlagCitations exist in the subagent outputs but are missing from the final report. Which design keeps them?
A. Require every agent to carry claim-to-source mappings through each step B. Ask the report generator to cite the sources it thinks are most likely C. Add citations at the end by searching for sources that match each claim D. Keep citations only in the logs, so the report itself stays easy to read
Show answerQuestion 28 Domain 5: Context Management & Reliability · Task 5.6 FlagA 2019 study says 12% of firms use a technology, and a 2025 survey says 41%. How should the report present these figures?
A. Average the two figures and report about 27% as the current adoption B. Show both with their dates, as a change over time rather than a conflict C. Report only the 2019 figure, since it comes from a peer-reviewed study D. Flag the two figures as contradictory and leave both out of the report
Show answerQuestion 29 Domain 4: Prompt Engineering & Structured Output · Task 4.3 FlagA downstream dashboard needs every finding in the same shape: claim, source URL, excerpt and publication date. How should the synthesis subagent return findings?
A. As a table image, so that the formatting always looks the same B. As a Markdown report, which the dashboard then parses with regexes C. Through a tool whose JSON schema defines those fields for each finding D. As free text with a request to "use a consistent format" each time
Show answerQuestion 30 Domain 4: Prompt Engineering & Structured Output · Task 4.6 FlagAnalysts found several claims in reports that their cited excerpts don't actually support. Which addition would catch these best?
A. An independent verification pass that checks each claim against its excerpt B. A request that the synthesis subagent double-check all of its claims as it writes C. A longer report format so each claim can be explained in more detail D. A rule that every claim must cite at least three sources to be included
Show answerQuestion 31 Domain 2: Tool Design & MCP Integration · Task 2.4 FlagAn MCP server should connect to production by default, but engineers sometimes point it at a local instance. How can .mcp.json support both without edits?
A. Commit two .mcp.json files and ask engineers to rename the one they want B. Use ${API_URL:-https://api.example.com} so a default applies when unset C. Put both URLs in CLAUDE.md and let Claude choose which server to call D. Hardcode the production URL and ask engineers to edit it when needed
Show answerQuestion 32 Domain 2: Tool Design & MCP Integration · Task 2.4 FlagThe tool needs GitHub access for issues and pull requests. A well-maintained community MCP server already exists. What should you do?
A. Build a custom GitHub server so the team controls every line of the code B. Copy the community server's code into the repo and edit it on day one C. Skip MCP and have the agent call the GitHub API with Bash and curl D. Use the existing server, and build custom ones only for unique systems
Show answerQuestion 33 Domain 2: Tool Design & MCP Integration · Task 2.5 FlagLogs show the agent using Bash with cat to read source files. Why should it use the Read tool instead?
A. Read is the dedicated tool, with clearer output and permission control B. Read automatically fixes syntax errors in the files that it opens up C. Bash cannot open source files that are larger than one kilobyte in size D. Bash commands are always blocked in Agent SDK applications by default
Show answerQuestion 34 Domain 2: Tool Design & MCP Integration · Task 2.5 FlagAn engineer asks how a payment request flows through an unfamiliar service. What is the most efficient way for the tool to explore?
A. Ask the engineer to paste the relevant files into the conversation B. Grep for entry points, then Read and follow the imports step by step C. Read every file in the repository in alphabetical order before answering D. Glob for every file, then summarise the folder names as the answer
Show answerQuestion 35 Domain 2: Tool Design & MCP Integration · Task 2.1 FlagAn internal MCP tool, query_db, is described only as "Runs a query". The agent uses it for tasks other tools handle better, and sometimes tries to write data. What should the description say?
A. A full copy of the database schema with every table and column B. Nothing more, since the tool name already explains what it is for C. That the agent should think carefully before it runs any query D. Which database it reads, that it is read-only, and when to use it
Show answerQuestion 36 Domain 3: Claude Code Configuration & Workflows · Task 3.4 FlagAn engineer and Claude have agreed a plan in plan mode for adding a caching layer. What should happen next?
A. Stay in plan mode and ask Claude to write the code in its plan text B. Ask a second engineer to implement the plan by hand without Claude C. Switch to execution and implement the approved plan step by step D. Start a new session and ask Claude to design a fresh plan from zero
Show answerQuestion 37 Domain 1: Agentic Architecture & Orchestration · Task 1.6 FlagAn engineer asks the tool to explain an unfamiliar legacy system whose structure is unknown. Which approach to breaking down the task fits?
A. Read the oldest files first, because legacy systems start from those B. Follow a fixed ten-step checklist written for a different codebase C. Explain the system from its folder names alone, without reading code D. Adapt the plan as exploration reveals how the system is actually built
Show answerQuestion 38 Domain 1: Agentic Architecture & Orchestration · Task 1.7 FlagYour Agent SDK tool should let an engineer return tomorrow and continue an earlier conversation with the agent. What should the tool do?
A. Ask the engineer to describe yesterday's work again from memory B. Store the session ID and pass it as resume when the engineer returns C. Keep the agent process running overnight so the session never ends D. Save the final answer only and paste it into a fresh session tomorrow
Show answerQuestion 39 Domain 1: Agentic Architecture & Orchestration · Task 1.2 FlagWhy does the tool use separate subagents to analyse different modules of a large codebase, instead of one agent reading everything?
A. Each subagent works in its own context and returns only a summary B. Subagents make every answer deterministic across repeated runs C. A single agent is not able to call the Read tool more than once D. Subagents always cost fewer tokens in total than one single agent
Show answerQuestion 40 Domain 1: Agentic Architecture & Orchestration · Task 1.3 FlagAn explorer subagent should only read and search code, never edit it. Where should that limit be set?
A. In CLAUDE.md, with a note saying the explorer must stay read-only B. In the explorer's name, by calling it read-only-explorer instead C. In its AgentDefinition, by listing only Read, Grep and Glob as tools D. In the coordinator's prompt, asking the explorer not to edit files
Show answerQuestion 41 Domain 1: Agentic Architecture & Orchestration · Task 1.1 FlagA tool in the agent loop throws an exception when a file is missing, and the whole run crashes. How should the loop handle tool failures?
A. Retry the same tool call forever until the missing file finally appears B. Let the exception crash the run so that the engineer notices the problem C. Return an empty tool_result so the loop can carry on as if nothing failed D. Return a tool_result marked as an error, with a message Claude can act on
Show answerQuestion 42 Domain 5: Context Management & Reliability · Task 5.4 FlagAn exploration subagent returns the full text of the 30 files it read to the main agent, which quickly runs out of context. What should the subagent return instead?
A. The full text, but compressed into a zip file for the main agent B. The full text of only the first ten files it opened, in order C. A concise summary of what it found, with paths to the key files D. A single sentence saying that the exploration is now complete
Show answerQuestion 43 Domain 5: Context Management & Reliability · Task 5.4 FlagAcross a long task, the agent keeps re-reading the same large configuration files to recall a few settings. What would help most?
A. Record the key settings in a scratchpad note it can consult later B. Re-read every configuration file at the start of each new turn C. Paste all of the configuration files into the system prompt instead D. Ask the engineer to repeat the settings whenever they are needed
Show answerQuestion 44 Domain 5: Context Management & Reliability · Task 5.1 FlagA Bash test run prints 5,000 lines, of which 12 describe failures. The output is added to context as it is. What should the tool do?
A. Drop the whole output and simply note that some tests have failed B. Keep the failing tests and their error messages, and drop the rest C. Keep all 5,000 lines, since any line could matter to the next step D. Keep only the last 50 lines, since failures are usually printed last
Show answerQuestion 45 Domain 5: Context Management & Reliability · Task 5.3 FlagOne analysis subagent can't access a private repository and returns "no usages found" for a function. The final answer says the function is unused. What went wrong?
A. The function name was too short for the search to find B. The coordinator should have trusted a different subagent C. An access failure was reported as a valid empty result D. The subagent searched too quickly and missed some files
Show answerQuestion 46 Domain 3: Claude Code Configuration & Workflows · Task 3.6 FlagThe CI review job only needs to read code and post comments. How should Claude Code's permissions be set for this job?
A. Allow only the Write tool, so Claude can save its comments to a local file B. Allow every tool but ask Claude in the prompt to avoid changing any files C. Allow every tool, since the CI runner is isolated from production systems D. Allow only the read and search tools that the review needs, nothing else
Show answerQuestion 47 Domain 3: Claude Code Configuration & Workflows · Task 3.6 FlagWhere should the Anthropic API key used by the CI review job be stored?
A. In the CI system's secret store, exposed to the job as an environment variable B. In the pipeline YAML file, written inline next to the claude command C. In the project CLAUDE.md, so that Claude Code can find it in every single CI run D. In a committed .env file, so that every pipeline gets the same key
Show answerQuestion 48 Domain 3: Claude Code Configuration & Workflows · Task 3.6 FlagTests generated in CI often fail when they are first run. How should the pipeline handle this before opening a PR?
A. Delete every failing test and keep only the ones that pass at once B. Run the tests and feed the failures back to Claude to fix in a loop C. Regenerate all the tests from scratch until they happen to pass D. Open the PR anyway and let reviewers fix the failing tests by hand
Show answerQuestion 49 Domain 3: Claude Code Configuration & Workflows · Task 3.6 FlagThe CI reviewer comments on old code in files that the PR barely touched, and developers find this noisy. What should the review focus on?
A. The lines changed in the PR, using the diff as the main input B. Only files that were changed in the last thirty days or so C. Only the file with the most lines changed in each pull request D. Every file in the repository, to catch all problems at once
Show answerQuestion 50 Domain 4: Prompt Engineering & Structured Output · Task 4.1 FlagDevelopers say many review comments are vague, such as "this might cause issues". What criterion would make comments more actionable?
A. Report an issue only if you feel at least 80 percent confident about it B. Report an issue only if you can name the line and a concrete failure case C. Report every possible issue, so that developers can decide for themselves D. Report issues in a friendlier tone, so that developers read them more often
Show answerQuestion 51 Domain 4: Prompt Engineering & Structured Output · Task 4.1 FlagThe prompt says "check for security issues", and results are inconsistent. How should the criteria be rewritten?
A. Ask for a security score from 1 to 10 for every file in the change B. Keep the wording and add "be thorough" at the end of the instruction C. Add the full OWASP website as background text for every review run D. Name the specific issues to report, such as SQL built by concatenation
Show answerQuestion 52 Domain 4: Prompt Engineering & Structured Output · Task 4.2 FlagThe team allows broad except Exception blocks in CLI entry points but not in library code. The reviewer flags both. What is the most effective fix?
A. Move all CLI entry points into the library so that one rule applies B. Add "use good judgment about exceptions" to the review instructions C. Add examples showing the allowed case and the flagged case, with reasons D. Tell the reviewer to stop reporting exception handling issues altogether
Show answerQuestion 53 Domain 4: Prompt Engineering & Structured Output · Task 4.2 FlagYou are adding few-shot examples to the review prompt. Which examples help most?
A. One example copied from a public blog post about general code quality B. Examples that show only the final label, with the reasoning left out C. Twenty obvious bugs, so the reviewer sees as many examples as possible D. Two to four borderline cases, each showing why it was flagged or not
Show answerQuestion 54 Domain 4: Prompt Engineering & Structured Output · Task 4.4 FlagDevelopers dismiss many findings, but nobody knows why, so the prompt can't be improved. What should the findings schema add?
A. A detected_pattern field naming the pattern behind each finding B. A longer explanation field so each finding is easier to understand C. A field holding the developer's name for every reviewed pull request D. A timestamp field recording the exact second each finding was made
Show answerQuestion 55 Domain 4: Prompt Engineering & Structured Output · Task 4.5 FlagA weekly code-health report must be ready by 9 a.m. Monday. Batches can take up to 24 hours. When is the latest safe time to submit the batch?
A. Sunday at 11 p.m., since overnight batches always run faster B. Monday at 9 a.m., at the same time as the report is needed C. Sunday morning, a little over 24 hours before the deadline D. Monday at 8 a.m., since most batches finish within an hour
Show answerQuestion 56 Domain 4: Prompt Engineering & Structured Output · Task 4.5 FlagA review job lets Claude decide which extra files to read, calling tools over several turns, before it writes the review. Why is this a poor fit for the Batches API?
A. Batches reject any request that defines more than one tool at all B. A batch request can't get your tool results back partway through C. Batches can only hold requests that use the smallest Claude model D. Batches cost more than synchronous requests for jobs with tools
Show answerQuestion 57 Domain 4: Prompt Engineering & Structured Output · Task 4.6 FlagThe reviewer posts many false positives. How could a multi-pass design reduce them?
A. A second pass rewrites each finding so that it sounds more confident B. A second pass sorts the findings by length before they are posted C. A second pass adds more findings that the first pass may have missed D. A second pass checks each candidate finding and drops unsupported ones
Show answerQuestion 58 Domain 4: Prompt Engineering & Structured Output · Task 4.6 FlagClaude Code generates tests in one CI step, and you want them reviewed in the next. Which reviewer setup is best?
A. A separate instance that didn't generate the tests reviews them B. The same session that generated the tests reviews all of its own work C. No review at all, since generated tests are checked by running D. The same session reviews them twice, with a pause in between
Show answerQuestion 59 Domain 4: Prompt Engineering & Structured Output · Task 4.3 FlagSome review findings apply to a whole file, so they have no line number. The schema requires line as an integer, and the model makes one up. What should change?
A. Remove line from the schema for every finding the reviewer makes B. Keep line required and tell the model to use line 1 by default C. Make line nullable, so a whole-file finding can leave it empty D. Keep line required and drop any finding that has no line number
Show answerQuestion 60 Domain 1: Agentic Architecture & Orchestration · Task 1.6 FlagThe review pipeline always runs the same stages: lint, per-file review, cross-file integration check, then a summary comment. Which decomposition fits?
A. A dynamic plan that the agent invents again for every new PR B. A fixed sequence of stages, the same for every pull request C. A single prompt that does all four stages in one long response D. A coordinator that spawns research subagents for each stage
Show answer