Question 470
An end-to-end test for an operations research assistant checks whether it can send distinct request types to specialized handlers while keeping the routing rule inspectable and keep a large source-reading task from crowding the coordinator's working context. Which plan should be approved to satisfy both checks?
- Perform both steps: (1) Run independent branches concurrently and merge their outputs afterward; (2) delegate source analysis to a subagent and return a concise result.
- Perform both steps: (1) Classify the request and dispatch to an appropriate specialized workflow; (2) delegate source analysis to a subagent and return a concise result.
- Perform both steps: (1) Run independent branches concurrently and merge their outputs afterward; (2) enforce explicit completion checks and a maximum iteration budget.
- Perform both steps: (1) Classify the request and dispatch to an appropriate specialized workflow; (2) enforce explicit completion checks and a maximum iteration budget.
Explanation
Correct Answer
B:The first change enables the team to send distinct request types to specialized handlers while keeping the routing rule inspectable because routing separates distinct pathways without making the entire task autonomously planned; the classification decision must be observable and tested; the second addresses the separate need to keep a large source-reading task from crowding the coordinator's working context because isolated workspaces let a specialist process extensive material while the parent receives only task-relevant evidence instead of every intermediate token.
Incorrect Answers
A:The second step meets the requirement to keep a large source-reading task from crowding the coordinator's working context because isolated workspaces let a specialist process extensive material while the parent receives only task-relevant evidence instead of every intermediate token; the first step would only help to reduce elapsed time for independent extraction tasks that do not share mutable state because parallel orchestration shortens the critical path when calls have no dependencies, while the merger checks completeness before proceeding, leaving the separate requirement to send distinct request types to specialized handlers while keeping the routing rule inspectable unmet.
C:Both steps target different results—reduce elapsed time for independent extraction tasks that do not share mutable state and stop iterative tool use when a success condition or resource budget is reached—because parallel orchestration shortens the critical path when calls have no dependencies, while the merger checks completeness before proceeding and bounded loops avoid unending tool calls and uncontrolled spend while making incomplete work visible instead of silently continuing; the required capabilities are instead to send distinct request types to specialized handlers while keeping the routing rule inspectable and to keep a large source-reading task from crowding the coordinator's working context.
D:The first step is appropriate for the requirement to send distinct request types to specialized handlers while keeping the routing rule inspectable because routing separates distinct pathways without making the entire task autonomously planned; the classification decision must be observable and tested; the other step instead aims to stop iterative tool use when a success condition or resource budget is reached because bounded loops avoid unending tool calls and uncontrolled spend while making incomplete work visible instead of silently continuing, which does not meet the second requirement to keep a large source-reading task from crowding the coordinator's working context.
Question 471
An architecture review of a Claude API workload benchmark asks how to know why a long prompt plus a proposed response may exceed the model's accepted context. Which action is the best fit?
- Select an available effort level after measuring task performance.
- Use more exploratory sampling where supported and measure quality.
- Configure supported adaptive thinking behavior rather than forcing a fixed pattern.
- Budget total context for instructions, history, tools, and output.
Explanation
Correct Answer
D:To know why a long prompt plus a proposed response may exceed the model's accepted context in this Claude API workload benchmark, a context window bounds what can be processed in one request; large tool results consume it along with user messages; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to trade answer latency and computation against solution quality on supported models because reasoning effort is an inference-time tradeoff; lowering it may reduce costs or latency while harming difficult-case accuracy; that mechanism does not meet the different requirement to know why a long prompt plus a proposed response may exceed the model's accepted context.
B:The proposed alternative helps to invite stylistic variety during noncritical brainstorming because higher sampling randomness broadens candidate phrasing but can reduce predictability, so it suits ideation better than strict extraction; that mechanism does not meet the different requirement to know why a long prompt plus a proposed response may exceed the model's accepted context.
C:The proposed alternative helps to allow supported models to vary internal reasoning effort according to task difficulty because adaptive reasoning responds to problem complexity, but supported modes differ by model and release and should not be assumed universal; that mechanism does not meet the different requirement to know why a long prompt plus a proposed response may exceed the model's accepted context.
Question 472
A release check on an enterprise MCP client found two unsatisfied conditions: the service must expose a business lookup with predictable typed arguments, and it must reject a date or identifier that violates business constraints before a service call. Which complete engineering plan satisfies both?
- Perform both steps: (1) Define a descriptive tool name and validated input schema; (2) return a concise task-relevant projection from the tool handler.
- Perform both steps: (1) Package the connector behind an MCP server; (2) validate model-supplied tool arguments against schema and domain rules.
- Perform both steps: (1) Define a descriptive tool name and validated input schema; (2) validate model-supplied tool arguments against schema and domain rules.
- Perform both steps: (1) Package the connector behind an MCP server; (2) return a concise task-relevant projection from the tool handler.
Explanation
Correct Answer
C:The first change enables the team to expose a business lookup with predictable typed arguments because well-described schemas help Claude select a capability and emit usable arguments; the backend still validates authorization and meaning; the second addresses the separate need to reject a date or identifier that violates business constraints before a service call because even syntactically correct generated inputs can violate account scope or allowed values, so execution must validate both levels.
Incorrect Answers
A:The first step is appropriate for the requirement to expose a business lookup with predictable typed arguments because well-described schemas help Claude select a capability and emit usable arguments; the backend still validates authorization and meaning; the other step instead aims to reduce context bloat caused by a tool returning a thousand irrelevant fields because tool output is subsequently consumed as model context; minimizing it reduces both token cost and distractions, which does not meet the second requirement to reject a date or identifier that violates business constraints before a service call.
B:The second step meets the requirement to reject a date or identifier that violates business constraints before a service call because even syntactically correct generated inputs can violate account scope or allowed values, so execution must validate both levels; the first step would only help to share one integration with several compatible AI clients or agent runtimes because MCP standardizes capability exposure across clients, reducing duplicate integration logic compared with proprietary tool schemas everywhere, leaving the separate requirement to expose a business lookup with predictable typed arguments unmet.
D:Both steps target different results—share one integration with several compatible AI clients or agent runtimes and reduce context bloat caused by a tool returning a thousand irrelevant fields—because MCP standardizes capability exposure across clients, reducing duplicate integration logic compared with proprietary tool schemas everywhere and tool output is subsequently consumed as model context; minimizing it reduces both token cost and distractions; the required capabilities are instead to expose a business lookup with predictable typed arguments and to reject a date or identifier that violates business constraints before a service call.
Question 473
The technical owner of a business workflow that calls Claude has to trust a callback only after verifying who actually sent it. A separate requirement is to debug a failed request without exposing the user's confidential document. Which two-part remediation covers both?
- Perform both steps: (1) Authenticate incoming callbacks and validate their signatures where supported; (2) enable streaming and consume server-sent events in order.
- Perform both steps: (1) Set the appropriate application/json content type and serialize a valid payload; (2) enable streaming and consume server-sent events in order.
- Perform both steps: (1) Authenticate incoming callbacks and validate their signatures where supported; (2) log status, timing, and correlation ids with sensitive fields redacted.
- Perform both steps: (1) Set the appropriate application/json content type and serialize a valid payload; (2) log status, timing, and correlation ids with sensitive fields redacted.
Explanation
Correct Answer
C:The first change enables the team to trust a callback only after verifying who actually sent it because network arrival alone does not prove a webhook's origin; authenticity checks prevent forged events from changing agent state; the second addresses the separate need to debug a failed request without exposing the user's confidential document because operational records can identify a failure path without retaining raw secrets or protected prompt content.
Incorrect Answers
A:The first step is appropriate for the requirement to trust a callback only after verifying who actually sent it because network arrival alone does not prove a webhook's origin; authenticity checks prevent forged events from changing agent state; the other step instead aims to show generated text progressively instead of waiting for the full response because streaming transmits partial deltas and completion events, allowing earlier display while requiring the client to assemble content safely, which does not meet the second requirement to debug a failed request without exposing the user's confidential document.
B:Both steps target different results—have the server parse a JSON request body predictably and show generated text progressively instead of waiting for the full response—because a JSON body requires both correct serialization and matching HTTP metadata; raw language-model text cannot replace a valid request object and streaming transmits partial deltas and completion events, allowing earlier display while requiring the client to assemble content safely; the required capabilities are instead to trust a callback only after verifying who actually sent it and to debug a failed request without exposing the user's confidential document.
D:The second step meets the requirement to debug a failed request without exposing the user's confidential document because operational records can identify a failure path without retaining raw secrets or protected prompt content; the first step would only help to have the server parse a JSON request body predictably because a JSON body requires both correct serialization and matching HTTP metadata; raw language-model text cannot replace a valid request object, leaving the separate requirement to trust a callback only after verifying who actually sent it unmet.
Question 474
A team maintaining a safety-critical automation must meet 2 separate acceptance criteria: (1) require a person to approve an irreversible administrative change; (2) stop an authenticated user from reading another tenant's records via a tool. Which two implementation actions directly satisfy the stated requirements? Choose TWO.
- Combine prompt boundaries, scoped credentials, validation, and approval gates.
- Record authenticated approval events with actor, scope, and request correlation.
- Enforce outbound destination allowlists at the tool execution layer.
- Pause execution for explicit approval at the high-impact action boundary.
- Check resource-level authorization for every sensitive tool request.
Explanation
Correct Answers
D:The test to require a person to approve an irreversible administrative change is met because human approval is a policy-enforced transition, not a note written in the model's plan or a message displayed afterward; the remaining selection covers the separate need to stop an authenticated user from reading another tenant's records via a tool.
E:The test to stop an authenticated user from reading another tenant's records via a tool is met because proving identity does not grant access to every object; the backend must enforce tenant and resource permissions separately; the remaining selection covers the separate need to require a person to approve an irreversible administrative change.
Incorrect Answers
A:The action is useful for the separate capability to secure an agent against both malicious retrieved text and unsafe tool execution because defense in depth assumes individual filters can fail; independent enforcement boundaries reduce the chance of harmful side effects; however, the required test outcomes are to require a person to approve an irreversible administrative change and to stop an authenticated user from reading another tenant's records via a tool.
B:The action is useful for the separate capability to demonstrate who approved a privileged tool action and when because an audit trail binds authorization to a specific action, making privilege use reviewable without treating model-generated text as proof of consent; however, the required test outcomes are to require a person to approve an irreversible administrative change and to stop an authenticated user from reading another tenant's records via a tool.
C:The action is useful for the separate capability to stop a model-requested webhook from sending sensitive case text to an unapproved host because network restrictions prevent data egress even if injected instructions convince a model to request the call; however, the required test outcomes are to require a person to approve an irreversible administrative change and to stop an authenticated user from reading another tenant's records via a tool.
Question 475
The technical owner of a shared tool gateway for Claude has to launch a local MCP server as a subprocess managed by a compatible client. A separate requirement is to offer users a reusable parameterized instruction template from an MCP server. Which two-part remediation covers both?
- Perform both steps: (1) Use the MCP stdio transport with properly framed protocol messages; (2) register a prompt template with its required arguments.
- Perform both steps: (1) Define a descriptive tool name and validated input schema; (2) register a prompt template with its required arguments.
- Perform both steps: (1) Use the MCP stdio transport with properly framed protocol messages; (2) configure the supported tool_choice behavior for the request.
- Perform both steps: (1) Define a descriptive tool name and validated input schema; (2) configure the supported tool_choice behavior for the request.
Explanation
Correct Answer
A:The first change enables the team to launch a local MCP server as a subprocess managed by a compatible client because standard input and output suit local process integration, where protocol output must not be mixed with arbitrary logging noise; the second addresses the separate need to offer users a reusable parameterized instruction template from an MCP server because MCP prompts provide structured prompt content, but by themselves do not perform external business actions.
Incorrect Answers
B:The second step meets the requirement to offer users a reusable parameterized instruction template from an MCP server because MCP prompts provide structured prompt content, but by themselves do not perform external business actions; the first step would only help to expose a business lookup with predictable typed arguments because well-described schemas help Claude select a capability and emit usable arguments; the backend still validates authorization and meaning, leaving the separate requirement to launch a local MCP server as a subprocess managed by a compatible client unmet.
C:The first step is appropriate for the requirement to launch a local MCP server as a subprocess managed by a compatible client because standard input and output suit local process integration, where protocol output must not be mixed with arbitrary logging noise; the other step instead aims to require or restrict tool use for a specific turn when the API supports that control because tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems, which does not meet the second requirement to offer users a reusable parameterized instruction template from an MCP server.
D:Both steps target different results—expose a business lookup with predictable typed arguments and require or restrict tool use for a specific turn when the API supports that control—because well-described schemas help Claude select a capability and emit usable arguments; the backend still validates authorization and meaning and tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems; the required capabilities are instead to launch a local MCP server as a subprocess managed by a compatible client and to offer users a reusable parameterized instruction template from an MCP server.
Question 476
A production readiness review of a specialist-agent orchestration service finds that the team cannot yet stop two parallel branches from overwriting the same mutable record or plan another step only after inspecting the result of a requested external operation. Which paired changes directly remedy the two gaps?
- Perform both steps: (1) Use isolated branch state and a controlled reconciliation step; (2) run side-effect-free tool calls concurrently when their inputs are independent.
- Perform both steps: (1) Write selected durable facts to a controlled external memory store; (2) alternate model tool-use requests with tool results until completion.
- Perform both steps: (1) Use isolated branch state and a controlled reconciliation step; (2) alternate model tool-use requests with tool results until completion.
- Perform both steps: (1) Write selected durable facts to a controlled external memory store; (2) run side-effect-free tool calls concurrently when their inputs are independent.
Explanation
Correct Answer
C:The first change enables the team to stop two parallel branches from overwriting the same mutable record because explicit merge rules are required when outputs converge; concurrent mutation without arbitration causes nondeterministic results; the second addresses the separate need to plan another step only after inspecting the result of a requested external operation because the loop returns observations to the model so subsequent decisions are informed by actual tool output rather than imagined execution.
Incorrect Answers
A:The first step is appropriate for the requirement to stop two parallel branches from overwriting the same mutable record because explicit merge rules are required when outputs converge; concurrent mutation without arbitration causes nondeterministic results; the other step instead aims to speed up independent data lookups without causing write-order races because read-only independent calls can safely overlap; mutating operations need explicit ordering or concurrency control, which does not meet the second requirement to plan another step only after inspecting the result of a requested external operation.
B:The second step meets the requirement to plan another step only after inspecting the result of a requested external operation because the loop returns observations to the model so subsequent decisions are informed by actual tool output rather than imagined execution; the first step would only help to preserve durable user-approved facts across agent sessions outside the context window because external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end, leaving the separate requirement to stop two parallel branches from overwriting the same mutable record unmet.
D:Both steps target different results—preserve durable user-approved facts across agent sessions outside the context window and speed up independent data lookups without causing write-order races—because external memory allows selective retrieval in later sessions, unlike temporary model context that disappears when calls end and read-only independent calls can safely overlap; mutating operations need explicit ordering or concurrency control; the required capabilities are instead to stop two parallel branches from overwriting the same mutable record and to plan another step only after inspecting the result of a requested external operation.
Question 477
A team maintaining a shared Claude Code repository has two different engineering requirements: (1) run a Claude Code task from an automated CI job without an interactive terminal, and (2) apply a coding convention only when Claude Code edits a particular path. Which TWO independent changes directly meet them? Choose TWO.
- Create a project skill with the documented skill metadata and content.
- Define policy in the appropriate managed or shared settings scope.
- Place a path-targeted rule in the repository's rules configuration.
- Initialize project guidance and review the resulting CLAUDE.md content.
- Invoke the supported noninteractive or print-mode command interface.
Explanation
Correct Answers
C:To apply a coding convention only when Claude Code edits a particular path as part of a design that must also run a Claude Code task from an automated CI job without an interactive terminal, scoped rules keep specialized instructions close to their applicable files, avoiding global instructions that conflict with other modules; this is why the action is one of the two required selections.
E:To run a Claude Code task from an automated CI job without an interactive terminal as part of a design that must also apply a coding convention only when Claude Code edits a particular path, headless operation outputs results for automation and requires explicit credential, permission, and failure handling in the CI environment; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal to make a reusable development procedure available to Claude Code with supporting files because a skill packages guidance or a workflow for reuse across relevant tasks; it is not identical to granting a runtime tool permission; the required outcomes are instead to run a Claude Code task from an automated CI job without an interactive terminal and to apply a coding convention only when Claude Code edits a particular path.
B:This alternative serves the separate goal to enforce a team-approved permission policy despite local developer preferences because Claude Code has multiple configuration scopes; binding policy to the required scope matters more than placing a rule in an arbitrary JSON file; the required outcomes are instead to run a Claude Code task from an automated CI job without an interactive terminal and to apply a coding convention only when Claude Code edits a particular path.
D:This alternative serves the separate goal to introduce Claude Code to an unfamiliar codebase's conventions and commands because repository setup discovers useful project practices, but autogenerated guidance still needs a human check for accuracy and unnecessary detail; the required outcomes are instead to run a Claude Code task from an automated CI job without an interactive terminal and to apply a coding convention only when Claude Code edits a particular path.
Question 478
A design review for a model-output validation layer asks for support to block a technically well-formed refund record with an unauthorized amount, together with a way to avoid processing a truncated structured response as a complete record. Select the two appropriate changes. Choose TWO.
- Apply domain-specific authorization and business rules after schema validation.
- Reserve an output budget while enforcing input-context limits.
- Hold evaluation inputs constant and compare prompt versions.
- Require a completed stop condition before accepting the parsed result.
- State explicit priority and conflict resolution for the task constraints.
Explanation
Correct Answers
A:To block a technically well-formed refund record with an unauthorized amount as part of a design that must also avoid processing a truncated structured response as a complete record, type correctness is not permission to act; amounts, account ownership, and policy limits need independent checks; this is why the action is one of the two required selections.
D:To avoid processing a truncated structured response as a complete record as part of a design that must also block a technically well-formed refund record with an unauthorized amount, a response cut off by token limits may parse incompletely or omit required content; completion status matters in addition to syntax; this is why the action is one of the two required selections.
Incorrect Answers
B:This alternative serves the separate goal to leave space for a model to generate a complete answer after adding source documents because input instructions, history, and evidence share the overall model capacity with generation, so filling it entirely can truncate output; the required outcomes are instead to block a technically well-formed refund record with an unauthorized amount and to avoid processing a truncated structured response as a complete record.
C:This alternative serves the separate goal to measure whether a changed instruction actually improves extraction accuracy because a reproducible prompt test isolates the change being studied; anecdotal output from unrelated cases does not show improvement; the required outcomes are instead to block a technically well-formed refund record with an unauthorized amount and to avoid processing a truncated structured response as a complete record.
E:This alternative serves the separate goal to prioritize mandatory legal requirements over optional stylistic preferences because without a priority rule, competing directives can create ambiguous outputs; hard requirements should guide how optional preferences are applied; the required outcomes are instead to block a technically well-formed refund record with an unauthorized amount and to avoid processing a truncated structured response as a complete record.
Question 479
In a customer-facing AI feature, testing reveals that the system cannot account accurately for token consumption when a response is streamed and cannot ask questions about information in a user-provided PDF through a supported document input. Select the two targeted actions that close these gaps. Choose TWO.
- Handle stop_reason max_tokens as truncation and continue or revise the limit.
- Read the completed stream's usage and final message metadata.
- Attach the PDF using the supported document content form.
- Inspect response.content blocks and metadata through the SDK's typed representation.
- Enable streaming and consume server-sent events in order.
Explanation
Correct Answers
B:To account accurately for token consumption when a response is streamed as part of a design that must also ask questions about information in a user-provided PDF through a supported document input, early text deltas do not necessarily carry authoritative final usage or stop information; accounting must wait for the appropriate terminal event; this is why the action is one of the two required selections.
C:To ask questions about information in a user-provided PDF through a supported document input as part of a design that must also account accurately for token consumption when a response is streamed, document analysis depends on actual supported content blocks and size limits; a local file path alone is not accessible to the remote model; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal to recover when a response ends because its generation budget was reached because a truncated completion may contain unfinished content, so treating it as a validated final answer risks losing required fields; the required outcomes are instead to account accurately for token consumption when a response is streamed and to ask questions about information in a user-provided PDF through a supported document input.
D:This alternative serves the separate goal to avoid assuming a structured SDK response is a plain string because the SDK exposes block types, stop reason, and usage separately; naïve string concatenation can lose tool requests or other content; the required outcomes are instead to account accurately for token consumption when a response is streamed and to ask questions about information in a user-provided PDF through a supported document input.
E:This alternative serves the separate goal to show generated text progressively instead of waiting for the full response because streaming transmits partial deltas and completion events, allowing earlier display while requiring the client to assemble content safely; the required outcomes are instead to account accurately for token consumption when a response is streamed and to ask questions about information in a user-provided PDF through a supported document input.
Question 480
For a multi-stage support automation, a design is acceptable only if it can coordinate explicit graph transitions among multiple model and tool nodes while also being able to pass reliable machine-readable outputs between independently developed agent stages. Which paired implementation is sufficient?
- Perform both steps: (1) Choose a graph-based orchestration framework when state transitions justify it; (2) compact prior progress into an accurate working summary.
- Perform both steps: (1) Run side-effect-free tool calls concurrently when their inputs are independent; (2) compact prior progress into an accurate working summary.
- Perform both steps: (1) Choose a graph-based orchestration framework when state transitions justify it; (2) define and validate a typed schema at the handoff.
- Perform both steps: (1) Run side-effect-free tool calls concurrently when their inputs are independent; (2) define and validate a typed schema at the handoff.
Explanation
Correct Answer
C:The first change enables the team to coordinate explicit graph transitions among multiple model and tool nodes because graph orchestration clarifies conditional edges and resumability; it adds complexity when a short linear function would suffice; the second addresses the separate need to pass reliable machine-readable outputs between independently developed agent stages because typed outputs make downstream contracts inspectable and reduce ambiguity caused by free-form prose passed as control data.
Incorrect Answers
A:The first step is appropriate for the requirement to coordinate explicit graph transitions among multiple model and tool nodes because graph orchestration clarifies conditional edges and resumability; it adds complexity when a short linear function would suffice; the other step instead aims to continue a long agent run after intermediate observations dominate the context because compaction preserves decisions and unresolved work while reducing token pressure; losing constraints in the summary can still cause errors, which does not meet the second requirement to pass reliable machine-readable outputs between independently developed agent stages.
B:Both steps target different results—speed up independent data lookups without causing write-order races and continue a long agent run after intermediate observations dominate the context—because read-only independent calls can safely overlap; mutating operations need explicit ordering or concurrency control and compaction preserves decisions and unresolved work while reducing token pressure; losing constraints in the summary can still cause errors; the required capabilities are instead to coordinate explicit graph transitions among multiple model and tool nodes and to pass reliable machine-readable outputs between independently developed agent stages.
D:The second step meets the requirement to pass reliable machine-readable outputs between independently developed agent stages because typed outputs make downstream contracts inspectable and reduce ambiguity caused by free-form prose passed as control data; the first step would only help to speed up independent data lookups without causing write-order races because read-only independent calls can safely overlap; mutating operations need explicit ordering or concurrency control, leaving the separate requirement to coordinate explicit graph transitions among multiple model and tool nodes unmet.