Question 110
Tests for a contract clause extraction workflow will pass only if only one approved write tool is callable in a sensitive stage and if near-overlapping retrieval tools are selected by actual boundary. Which proposed design directly satisfies both checks?
- let the model select from a broad global list of tools; and document examples and conditions where each tool must not be used
- let the model select from a broad global list of tools; and rely exclusively on short tool names for routing
- restrict the stage's allowed tool set and verify permissions in the executor; and rely exclusively on short tool names for routing
- restrict the stage's allowed tool set and verify permissions in the executor; and document examples and conditions where each tool must not be used
Explanation
Correct Answer
D:In a contract clause extraction workflow, capability scoping narrows possible side effects before model selection; alongside this, contrastive guidance helps tool choice when resource names look similar, satisfying the distinct requirements that only one approved write tool is callable in a sensitive stage and that near-overlapping retrieval tools are selected by actual boundary.
Incorrect Answers
A:In a contract clause extraction workflow, contrastive guidance helps tool choice when resource names look similar, but excess capabilities create avoidable routing and authorization risk; therefore the separate requirement that only one approved write tool is callable in a sensitive stage would remain unsatisfied.
B:In a contract clause extraction workflow, excess capabilities create avoidable routing and authorization risk and names alone may not capture the distinction in scope or authorization; the design would fail both conditions: only one approved write tool is callable in a sensitive stage and near-overlapping retrieval tools are selected by actual boundary.
C:In a contract clause extraction workflow, capability scoping narrows possible side effects before model selection, but names alone may not capture the distinction in scope or authorization; therefore the separate requirement that near-overlapping retrieval tools are selected by actual boundary would remain unsatisfied.
Question 111
In a frontend component repair effort, the engineering team must guarantee that a code investigation finds where a function is referenced. What is the most appropriate control?
- discover paths using Glob before reading contents
- ask for broad prose summaries of every package first
- use Grep to locate occurrences before opening focused files
- trace imports and call sites from the touched module outward
Explanation
Correct Answer
C:For a frontend component repair effort, symbol searching narrows the evidence to files that mention the target; this directly establishes that a code investigation finds where a function is referenced instead of relying on an unrelated workflow control.
Incorrect Answers
A:Although staged path discovery prevents unrelated modules from saturating the context, that only supports the distinct goal that a coding assistant first identifies relevant files in a large repository, not the requirement that a code investigation finds where a function is referenced in a frontend component repair effort.
B:In a frontend component repair effort, high-level summaries can miss the exact call site; as a result, the stated requirement that a code investigation finds where a function is referenced would still not be met.
D:Although dependency-focused exploration spots affected behavior without indiscriminate reading, that only supports the distinct goal that a source change is validated against the right dependency chain, not the requirement that a code investigation finds where a function is referenced in a frontend component repair effort.
Question 112
A team operating an order-cancellation service wants to establish two separate behaviors: a missing value is represented without fabricating a string; in addition, source identity survives multi-agent research handoffs. Which plan implements both?
- allow null in the field schema and define its semantics; and strip all citation fields before sending the writer its inputs
- allow null in the field schema and define its semantics; and carry citation identifiers and retrieval context through synthesis
- force the model to populate every unknown value with a guess; and strip all citation fields before sending the writer its inputs
- force the model to populate every unknown value with a guess; and carry citation identifiers and retrieval context through synthesis
Explanation
Correct Answer
B:In an order-cancellation service, explicit nullable types distinguish genuine absence from empty or invented data; alongside this, provenance metadata must remain attached when intermediate summaries are merged, satisfying the distinct requirements that a missing value is represented without fabricating a string and that source identity survives multi-agent research handoffs.
Incorrect Answers
A:In an order-cancellation service, explicit nullable types distinguish genuine absence from empty or invented data, but the writer cannot reliably reconstruct which source supports each conclusion; therefore the separate requirement that source identity survives multi-agent research handoffs would remain unsatisfied.
C:In an order-cancellation service, fabricated values preserve schema appearance but destroy factual accuracy and the writer cannot reliably reconstruct which source supports each conclusion; the design would fail both conditions: a missing value is represented without fabricating a string and source identity survives multi-agent research handoffs.
D:In an order-cancellation service, provenance metadata must remain attached when intermediate summaries are merged, but fabricated values preserve schema appearance but destroy factual accuracy; therefore the separate requirement that a missing value is represented without fabricating a string would remain unsatisfied.
Question 113
For a legacy service decomposition, a reviewer identifies two independent obligations: a coding assistant first identifies relevant files in a large repository and a handoff retains only action-relevant context. Which proposal should be approved?
- read the entire repository recursively into one prompt; and send every previous chat turn to each new worker
- discover paths using Glob before reading contents; and pass a compact structured record of facts, decisions, pending tasks, and sources
- discover paths using Glob before reading contents; and send every previous chat turn to each new worker
- read the entire repository recursively into one prompt; and pass a compact structured record of facts, decisions, pending tasks, and sources
Explanation
Correct Answer
B:In a legacy service decomposition, staged path discovery prevents unrelated modules from saturating the context; alongside this, focused handoffs reduce context size while protecting continuity-critical details, satisfying the distinct requirements that a coding assistant first identifies relevant files in a large repository and that a handoff retains only action-relevant context.
Incorrect Answers
A:In a legacy service decomposition, large context dumps bury important code among irrelevant files and large histories include irrelevant or outdated information; the design would fail both conditions: a coding assistant first identifies relevant files in a large repository and a handoff retains only action-relevant context.
C:In a legacy service decomposition, staged path discovery prevents unrelated modules from saturating the context, but large histories include irrelevant or outdated information; therefore the separate requirement that a handoff retains only action-relevant context would remain unsatisfied.
D:In a legacy service decomposition, focused handoffs reduce context size while protecting continuity-critical details, but large context dumps bury important code among irrelevant files; therefore the separate requirement that a coding assistant first identifies relevant files in a large repository would remain unsatisfied.
Question 114
In a shared-library improvement effort, the acceptance criteria require that the agent executes tests and examines their exit status and that only one approved write tool is callable in a sensitive stage. Which paired implementation meets both?
- inspect the test configuration only with Read and claim tests passed; and restrict the stage's allowed tool set and verify permissions in the executor
- use Bash with an approved test command; and let the model select from a broad global list of tools
- inspect the test configuration only with Read and claim tests passed; and let the model select from a broad global list of tools
- use Bash with an approved test command; and restrict the stage's allowed tool set and verify permissions in the executor
Explanation
Correct Answer
D:In a shared-library improvement effort, the shell can run build tools and return execution feedback that Read cannot supply; alongside this, capability scoping narrows possible side effects before model selection, satisfying the distinct requirements that the agent executes tests and examines their exit status and that only one approved write tool is callable in a sensitive stage.
Incorrect Answers
A:In a shared-library improvement effort, capability scoping narrows possible side effects before model selection, but reading configuration does not execute a test suite; therefore the separate requirement that the agent executes tests and examines their exit status would remain unsatisfied.
B:In a shared-library improvement effort, the shell can run build tools and return execution feedback that Read cannot supply, but excess capabilities create avoidable routing and authorization risk; therefore the separate requirement that only one approved write tool is callable in a sensitive stage would remain unsatisfied.
C:In a shared-library improvement effort, reading configuration does not execute a test suite and excess capabilities create avoidable routing and authorization risk; the design would fail both conditions: the agent executes tests and examines their exit status and only one approved write tool is callable in a sensitive stage.
Question 115
In a service dependency exploration tool, the acceptance criteria require that a new source file is created from supplied content and that a required validation step runs before the final response even when the model does not support forced tool choice. Which paired implementation meets both?
- use Grep to create the source file; and enforce the validator in application control flow, using forced tool_choice only with compatible models
- use Write for file creation; and rely on a prompt asking the model to call the validator
- use Write for file creation; and enforce the validator in application control flow, using forced tool_choice only with compatible models
- use Grep to create the source file; and rely on a prompt asking the model to call the validator
Explanation
Correct Answer
C:In a service dependency exploration tool, writing a new artifact is appropriate when no existing target needs surgical modification; alongside this, application-level orchestration guarantees the required stage across models, while forced tool_choice is limited to compatible models and settings, satisfying the distinct requirements that a new source file is created from supplied content and that a required validation step runs before the final response even when the model does not support forced tool choice.
Incorrect Answers
A:In a service dependency exploration tool, application-level orchestration guarantees the required stage across models, while forced tool_choice is limited to compatible models and settings, but search utilities do not create code artifacts; therefore the separate requirement that a new source file is created from supplied content would remain unsatisfied.
B:In a service dependency exploration tool, writing a new artifact is appropriate when no existing target needs surgical modification, but prompt instructions do not guarantee execution of the validator or override model-specific tool-choice restrictions; therefore the separate requirement that a required validation step runs before the final response even when the model does not support forced tool choice would remain unsatisfied.
D:In a service dependency exploration tool, search utilities do not create code artifacts and prompt instructions do not guarantee execution of the validator or override model-specific tool-choice restrictions; the design would fail both conditions: a new source file is created from supplied content and a required validation step runs before the final response even when the model does not support forced tool choice.
Question 116
When designing a document field validation service, the requirement is not satisfied unless partial data is not presented as a complete successful result and a synthesized statement can be traced to its supporting source. Which implementation addresses the two independent conditions?
- silently omit records that failed to load; and attach source IDs and relevant excerpts to individual claims
- return an explicit partial status with missing-item identifiers; and attach source IDs and relevant excerpts to individual claims
- return an explicit partial status with missing-item identifiers; and publish a source list detached from the statements it supports
- silently omit records that failed to load; and publish a source list detached from the statements it supports
Explanation
Correct Answer
B:In a document field validation service, failure metadata preserves the difference between a sparse valid response and incomplete execution; alongside this, claim-level provenance enables an auditor to verify each assertion, satisfying the distinct requirements that partial data is not presented as a complete successful result and that a synthesized statement can be traced to its supporting source.
Incorrect Answers
A:In a document field validation service, claim-level provenance enables an auditor to verify each assertion, but the coordinator could publish an inaccurate completeness claim; therefore the separate requirement that partial data is not presented as a complete successful result would remain unsatisfied.
C:In a document field validation service, failure metadata preserves the difference between a sparse valid response and incomplete execution, but a bibliography alone does not show which evidence backs each claim; therefore the separate requirement that a synthesized statement can be traced to its supporting source would remain unsatisfied.
D:In a document field validation service, the coordinator could publish an inaccurate completeness claim and a bibliography alone does not show which evidence backs each claim; the design would fail both conditions: partial data is not presented as a complete successful result and a synthesized statement can be traced to its supporting source.
Question 117
A team operating a code-reference retrieval assistant wants to establish two separate behaviors: an existing file receives a precise localized replacement; in addition, several requested client tools are returned in one response. Which plan implements both?
- use Edit for an exact targeted change; and execute only the first returned tool call
- overwrite the whole file with a newly generated copy; and execute only the first returned tool call
- overwrite the whole file with a newly generated copy; and execute every tool_use block and return a result with each corresponding ID
- use Edit for an exact targeted change; and execute every tool_use block and return a result with each corresponding ID
Explanation
Correct Answer
D:In a code-reference retrieval assistant, surgical edits preserve unrelated lines and provide reviewable diffs; alongside this, a multi-tool assistant turn can request independent actions and must receive all matching outcomes, satisfying the distinct requirements that an existing file receives a precise localized replacement and that several requested client tools are returned in one response.
Incorrect Answers
A:In a code-reference retrieval assistant, surgical edits preserve unrelated lines and provide reviewable diffs, but the unanswered tool uses remain unresolved and later reasoning loses evidence; therefore the separate requirement that several requested client tools are returned in one response would remain unsatisfied.
B:In a code-reference retrieval assistant, full replacement risks losing unrelated code and formatting and the unanswered tool uses remain unresolved and later reasoning loses evidence; the design would fail both conditions: an existing file receives a precise localized replacement and several requested client tools are returned in one response.
C:In a code-reference retrieval assistant, a multi-tool assistant turn can request independent actions and must receive all matching outcomes, but full replacement risks losing unrelated code and formatting; therefore the separate requirement that an existing file receives a precise localized replacement would remain unsatisfied.
Question 118
An audit of a branch protection review bot asks how to make sure that a pull-request bot runs with minimum necessary authority. Which implementation should be selected?
- give the bot administrator credentials to avoid permission failures
- scope runner credentials, worktree access, and allowed tools to its task
- persist structured errors, relevant logs, and a bounded diagnostic summary
- request the CLI JSON output format and parse its documented structure
Explanation
Correct Answer
B:For a branch protection review bot, CI identity and tool permissions control real write capabilities independent of model instructions; this directly establishes that a pull-request bot runs with minimum necessary authority instead of relying on an unrelated workflow control.
Incorrect Answers
A:In a branch protection review bot, broad credentials increase the blast radius of a compromised or mistaken job; as a result, the stated requirement that a pull-request bot runs with minimum necessary authority would still not be met.
C:Although stable artifacts help maintainers reproduce the problem without rerunning a chat, that only supports the distinct goal that CI failures provide actionable evidence to maintainers, not the requirement that a pull-request bot runs with minimum necessary authority in a branch protection review bot.
D:Although machine-readable envelopes avoid brittle extraction from colored console prose, that only supports the distinct goal that the CI parser receives predictable machine-readable Claude output, not the requirement that a pull-request bot runs with minimum necessary authority in a branch protection review bot.
Question 119
While preparing an after-sales issue resolver for deployment, engineers must ensure that a paused server-side tool loop can continue without losing work; they must also ensure that the assistant can use external service capabilities via MCP. Which combination best satisfies those requirements?
- preserve the paused assistant response and resume the server-tool turn; and configure a compatible MCP server and expose its declared tools to the client
- preserve the paused assistant response and resume the server-tool turn; and describe the external API in a prompt without connecting any tool
- restart from a blank conversation whenever pause_turn occurs; and describe the external API in a prompt without connecting any tool
- restart from a blank conversation whenever pause_turn occurs; and configure a compatible MCP server and expose its declared tools to the client
Explanation
Correct Answer
A:In an after-sales issue resolver, pause_turn indicates an internal tool loop pause rather than a user-facing conclusion; alongside this, MCP bridges a client to provider-defined capabilities rather than inventing a Claude built-in, satisfying the distinct requirements that a paused server-side tool loop can continue without losing work and that the assistant can use external service capabilities via MCP.
Incorrect Answers
B:In an after-sales issue resolver, pause_turn indicates an internal tool loop pause rather than a user-facing conclusion, but instructions cannot create an executable integration endpoint; therefore the separate requirement that the assistant can use external service capabilities via MCP would remain unsatisfied.
C:In an after-sales issue resolver, dropping tool context can repeat work and omit intermediate evidence and instructions cannot create an executable integration endpoint; the design would fail both conditions: a paused server-side tool loop can continue without losing work and the assistant can use external service capabilities via MCP.
D:In an after-sales issue resolver, MCP bridges a client to provider-defined capabilities rather than inventing a Claude built-in, but dropping tool context can repeat work and omit intermediate evidence; therefore the separate requirement that a paused server-side tool loop can continue without losing work would remain unsatisfied.
Question 120
The architect for a code-reference retrieval assistant needs to ensure that a tool receives a typed and bounded request. What should the team implement?
- separate read-only lookup from side-effecting update interfaces
- declare an operation enum in the schema and reject values outside it in the tool handler
- define required properties and types in the input schema and validate arguments at the execution boundary
- accept one unstructured free-text argument for every operation
Explanation
Correct Answer
C:For a code-reference retrieval assistant, input schemas describe legal arguments, while explicit validation prevents unsupported values from reaching tool logic; this directly establishes that a tool receives a typed and bounded request instead of relying on an unrelated workflow control.
Incorrect Answers
A:Although clear operation boundaries support least privilege and understandable approvals, that only supports the distinct goal that each tool interface has a single clear operation boundary, not the requirement that a tool receives a typed and bounded request in a code-reference retrieval assistant.
B:Although schema constraints guide valid selections and runtime validation blocks unsupported operation values, that only supports the distinct goal that a selector accepts only supported operation names, not the requirement that a tool receives a typed and bounded request in a code-reference retrieval assistant.
D:In a code-reference retrieval assistant, unconstrained prose leaves parsing and validation errors to ad hoc handler inference; as a result, the stated requirement that a tool receives a typed and bounded request would still not be met.