Question 180
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 frontend users from receiving unrestricted backend tool credentials. Which two implementation actions directly satisfy the stated requirements? Choose TWO.
- Record authenticated approval events with actor, scope, and request correlation.
- Check resource-level authorization for every sensitive tool request.
- Record result metadata in a post-tool hook.
- Pause execution for explicit approval at the high-impact action boundary.
- Use a server-side workload identity or scoped service credential.
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 frontend users from receiving unrestricted backend tool credentials.
E:The test to stop frontend users from receiving unrestricted backend tool credentials is met because service identities tie privileges to a runtime workload and avoid exposing long-lived secrets to browsers or untrusted users; 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 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 frontend users from receiving unrestricted backend tool credentials.
B:The action is useful for the separate capability to stop an authenticated user from reading another tenant's records via a tool because proving identity does not grant access to every object; the backend must enforce tenant and resource permissions separately; however, the required test outcomes are to require a person to approve an irreversible administrative change and to stop frontend users from receiving unrestricted backend tool credentials.
C:The action is useful for the separate capability to capture outcomes of agent command execution for security review because post-execution hooks can log and inspect what happened; they are unsuitable as the sole barrier to a side effect that already occurred; however, the required test outcomes are to require a person to approve an irreversible administrative change and to stop frontend users from receiving unrestricted backend tool credentials.
Question 181
To ship a production tool-calling agent, the application must inspect the result of a completed tool call before later model reasoning consumes it and block an unsafe shell or file operation before a tool executes. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.
- Attach a post-execution observation hook to the tool lifecycle.
- Give an agent a bounded objective and a tool-selection loop.
- Add a deterministic pre-execution hook for the sensitive operation.
- Use isolated branch state and a controlled reconciliation step.
- Apply limits for steps, elapsed time, and token or tool expenditure.
Explanation
Correct Answers
A:To inspect the result of a completed tool call before later model reasoning consumes it as part of a design that must also block an unsafe shell or file operation before a tool executes, post-tool inspection can record or validate outcomes after execution, but it cannot retroactively prevent side effects from the completed call; this is why the action is one of the two required selections.
C:To block an unsafe shell or file operation before a tool executes as part of a design that must also inspect the result of a completed tool call before later model reasoning consumes it, a pre-tool boundary can reject a forbidden action independently of model judgment; enforcement must occur before side effects happen; this is why the action is one of the two required selections.
Incorrect Answers
B:This alternative serves the separate goal to pursue an open-ended investigation where the next action depends on intermediate evidence because agentic control lets the model choose among permitted steps as observations arrive; budgets and termination conditions still bound its autonomy; the required outcomes are instead to inspect the result of a completed tool call before later model reasoning consumes it and to block an unsafe shell or file operation before a tool executes.
D:This alternative serves the separate goal 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 required outcomes are instead to inspect the result of a completed tool call before later model reasoning consumes it and to block an unsafe shell or file operation before a tool executes.
E:This alternative serves the separate goal to impose predictable maximum cost and wall-clock exposure on autonomous execution because runtime budgets are external constraints on agent activity and must be enforced by the host, not inferred from a cooperative natural-language instruction; the required outcomes are instead to inspect the result of a completed tool call before later model reasoning consumes it and to block an unsafe shell or file operation before a tool executes.
Question 182
A release check on a Python Claude API backend found two unsatisfied conditions: the service must prevent duplicate purchases or tickets if an agent repeats a tool call, and it must have the server parse a JSON request body predictably. Which complete engineering plan satisfies both?
- Perform both steps: (1) Give mutating operations an application-level idempotency key; (2) use asynchronous sdk calls with bounded concurrency.
- Perform both steps: (1) Place a valid secret in the documented API authentication header; (2) set the appropriate application/json content type and serialize a valid payload.
- Perform both steps: (1) Place a valid secret in the documented API authentication header; (2) use asynchronous sdk calls with bounded concurrency.
- Perform both steps: (1) Give mutating operations an application-level idempotency key; (2) set the appropriate application/json content type and serialize a valid payload.
Explanation
Correct Answer
D:The first change enables the team to prevent duplicate purchases or tickets if an agent repeats a tool call because idempotency ensures replays of the same intended action do not create duplicate real-world effects even when orchestration retries; the second addresses the separate need 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.
Incorrect Answers
A:The first step is appropriate for the requirement to prevent duplicate purchases or tickets if an agent repeats a tool call because idempotency ensures replays of the same intended action do not create duplicate real-world effects even when orchestration retries; the other step instead aims to serve many concurrent network-bound Claude requests without blocking worker threads unnecessarily because async I/O can overlap network waits, but it does not remove provider limits or make CPU-heavy postprocessing nonblocking, which does not meet the second requirement to have the server parse a JSON request body predictably.
B:The second step meets the requirement 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; the first step would only help to authenticate a server-to-server Claude API request because API authentication is a request transport concern; placing a key inside the prompt body neither authenticates the request nor protects it, leaving the separate requirement to prevent duplicate purchases or tickets if an agent repeats a tool call unmet.
C:Both steps target different results—authenticate a server-to-server Claude API request and serve many concurrent network-bound Claude requests without blocking worker threads unnecessarily—because API authentication is a request transport concern; placing a key inside the prompt body neither authenticates the request nor protects it and async I/O can overlap network waits, but it does not remove provider limits or make CPU-heavy postprocessing nonblocking; the required capabilities are instead to prevent duplicate purchases or tickets if an agent repeats a tool call and to have the server parse a JSON request body predictably.
Question 183
An architecture review of an enterprise agent deployment asks how to prevent generated advice that violates the product's publication rules from being shown. Which action is the best fit?
- Validate or moderate final content before release.
- Use layered policy enforcement and restrict powerful tools independently of chat text.
- Check resource-level authorization for every sensitive tool request.
- Enforce a pre-tool hook that denies the disallowed call.
Explanation
Correct Answer
A:To prevent generated advice that violates the product's publication rules from being shown in this enterprise agent deployment, output checks catch issues emerging during generation; they complement rather than replace input controls and tool restrictions; the proposed implementation directly supplies that capability.
Incorrect Answers
B:The proposed alternative helps to prevent an adversarial user from bypassing safety policy by roleplay instructions because adversarial prompting can target instruction hierarchy, so product controls and tool authorization must remain effective when wording is manipulated; that mechanism does not meet the different requirement to prevent generated advice that violates the product's publication rules from being shown.
C:The proposed alternative helps to stop an authenticated user from reading another tenant's records via a tool because proving identity does not grant access to every object; the backend must enforce tenant and resource permissions separately; that mechanism does not meet the different requirement to prevent generated advice that violates the product's publication rules from being shown.
D:The proposed alternative helps to stop a coding agent from running commands that match a prohibited destructive pattern because a deterministic hook checks the proposed command before execution, providing a stronger control than asking the agent to self-police; that mechanism does not meet the different requirement to prevent generated advice that violates the product's publication rules from being shown.
Question 184
An operational review of a model-family migration plan reports distinct failures: it cannot reduce inconsistent labeling across nuanced examples, and it cannot allow supported models to vary internal reasoning effort according to task difficulty. Which two repairs are required? Choose TWO.
- Configure supported adaptive thinking behavior rather than forcing a fixed pattern.
- Use the model's documented thinking capability within the latency budget.
- Benchmark an Opus-family model on the hardest cases.
- Include several carefully selected and diverse demonstrations.
- Select an available effort level after measuring task performance.
Explanation
Correct Answers
A:To allow supported models to vary internal reasoning effort according to task difficulty as part of a design that must also reduce inconsistent labeling across nuanced examples, adaptive reasoning responds to problem complexity, but supported modes differ by model and release and should not be assumed universal; this is why the action is one of the two required selections.
D:To reduce inconsistent labeling across nuanced examples as part of a design that must also allow supported models to vary internal reasoning effort according to task difficulty, multiple examples communicate decision boundaries and desired formatting, although irrelevant or misleading demonstrations can bias the model; this is why the action is one of the two required selections.
Incorrect Answers
B:This alternative serves the separate goal to allocate additional reasoning effort to a complex multistep decision where supported because reasoning settings can change token consumption and response latency and should be evaluated for the particular workload; the required outcomes are instead to reduce inconsistent labeling across nuanced examples and to allow supported models to vary internal reasoning effort according to task difficulty.
C:This alternative serves the separate goal to solve demanding multistep reasoning tasks where quality matters more than lowest unit price because higher-capability tiers may improve difficult-task performance, but their cost and latency still need objective justification; the required outcomes are instead to reduce inconsistent labeling across nuanced examples and to allow supported models to vary internal reasoning effort according to task difficulty.
E:This alternative serves the separate goal 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; the required outcomes are instead to reduce inconsistent labeling across nuanced examples and to allow supported models to vary internal reasoning effort according to task difficulty.
Question 185
While planning a developer workstation running Claude Code, the product owner specifies that it must delegate an independent code review without filling the main coding session with details. Which solution fulfills the requirement?
- Place a path-targeted rule in the repository's rules configuration.
- Invoke the supported noninteractive or print-mode command interface.
- Configure a specialized Claude Code subagent with a narrow remit.
- Initialize project guidance and review the resulting CLAUDE.md content.
Explanation
Correct Answer
C:To delegate an independent code review without filling the main coding session with details in this developer workstation running Claude Code, subagents can focus on a task and return a summary, limiting noise in the parent session and allowing separate permissions when configured; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to apply a coding convention only when Claude Code edits a particular path because scoped rules keep specialized instructions close to their applicable files, avoiding global instructions that conflict with other modules; that mechanism does not meet the different requirement to delegate an independent code review without filling the main coding session with details.
B:The proposed alternative helps to run a Claude Code task from an automated CI job without an interactive terminal because headless operation outputs results for automation and requires explicit credential, permission, and failure handling in the CI environment; that mechanism does not meet the different requirement to delegate an independent code review without filling the main coding session with details.
D:The proposed alternative helps 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; that mechanism does not meet the different requirement to delegate an independent code review without filling the main coding session with details.
Question 186
A team maintaining a multi-tool integration must meet 2 separate acceptance criteria: (1) process several requested independent tools without mixing their outputs; (2) invoke a proprietary internal pricing database unavailable through a built-in feature. Which two implementation actions directly satisfy the stated requirements? Choose TWO.
- Return an explicit tool error indication and an informative safe message.
- Correlate each tool result with its matching tool_use_id.
- Put an approval gate in the host-side write handler.
- Publish a properly described MCP tool and its input contract.
- Write a custom tool whose handler runs in the application.
Explanation
Correct Answers
B:The test to process several requested independent tools without mixing their outputs is met because multi-tool responses can interleave operations, so identifier-based correlation is essential for safe continuation; the remaining selection covers the separate need to invoke a proprietary internal pricing database unavailable through a built-in feature.
E:The test to invoke a proprietary internal pricing database unavailable through a built-in feature is met because custom tools expose application-specific actions while retaining control over authentication, validation, and network access; the remaining selection covers the separate need to process several requested independent tools without mixing their outputs.
Incorrect Answers
A:The action is useful for the separate capability to let Claude distinguish a failed database lookup from an empty successful result because an error result preserves failure semantics, preventing the model from inventing a no-record finding for a call that never succeeded; however, the required test outcomes are to process several requested independent tools without mixing their outputs and to invoke a proprietary internal pricing database unavailable through a built-in feature.
C:The action is useful for the separate capability to ensure an agent obtains explicit authorization before updating a customer record because an irreversible or sensitive write must be permitted by trusted application logic, not merely because the model selected a tool; however, the required test outcomes are to process several requested independent tools without mixing their outputs and to invoke a proprietary internal pricing database unavailable through a built-in feature.
D:The action is useful for the separate capability to let an MCP client invoke a business capability through a standard server interface because MCP tools represent callable operations with typed parameters; the server executes authorized behavior rather than only providing reference text; however, the required test outcomes are to process several requested independent tools without mixing their outputs and to invoke a proprietary internal pricing database unavailable through a built-in feature.
Question 187
A production readiness review of a hosted document-processing service finds that the team cannot yet shield customer traffic when inference capacity is exhausted or keep application policy separate from a user's question. Which paired changes directly remedy the two gaps?
- Perform both steps: (1) Queue or reject excess requests using bounded admission control; (2) assemble messages with correct user and assistant roles.
- Perform both steps: (1) Validate generated fields against domain rules after parsing; (2) assemble messages with correct user and assistant roles.
- Perform both steps: (1) Queue or reject excess requests using bounded admission control; (2) place stable application rules in system instructions and untrusted requests in user content.
- Perform both steps: (1) Validate generated fields against domain rules after parsing; (2) place stable application rules in system instructions and untrusted requests in user content.
Explanation
Correct Answer
C:The first change enables the team to shield customer traffic when inference capacity is exhausted because controlled queuing protects system latency and prevents unbounded retries from overwhelming downstream provider quotas; the second addresses the separate need to keep application policy separate from a user's question because instruction placement preserves the distinction between developer intent and user-supplied data; concatenating everything blurs that boundary.
Incorrect Answers
A:The first step is appropriate for the requirement to shield customer traffic when inference capacity is exhausted because controlled queuing protects system latency and prevents unbounded retries from overwhelming downstream provider quotas; the other step instead aims to distinguish an end user's request from previous assistant turns in a dialogue because conversation structure influences how the model interprets dialogue and tool history; flattening roles into one text string loses that structure, which does not meet the second requirement to keep application policy separate from a user's question.
B:Both steps target different results—stop a well-formed JSON response from introducing an impossible customer status and distinguish an end user's request from previous assistant turns in a dialogue—because a syntactically valid object may still contain invalid business values; server-side semantics determine whether it is acceptable and conversation structure influences how the model interprets dialogue and tool history; flattening roles into one text string loses that structure; the required capabilities are instead to shield customer traffic when inference capacity is exhausted and to keep application policy separate from a user's question.
D:The second step meets the requirement to keep application policy separate from a user's question because instruction placement preserves the distinction between developer intent and user-supplied data; concatenating everything blurs that boundary; the first step would only help to stop a well-formed JSON response from introducing an impossible customer status because a syntactically valid object may still contain invalid business values; server-side semantics determine whether it is acceptable, leaving the separate requirement to shield customer traffic when inference capacity is exhausted unmet.
Question 188
In a token-consumption optimization sprint, testing reveals that the system cannot reduce repeated cost for a stable lengthy policy prefix reused many times and cannot explain a billing increase after lengthy system instructions are added. Select the two targeted actions that close these gaps. Choose TWO.
- Alert on unusual per-job token and tool-call growth.
- Benchmark a suitable Haiku-family model for the simple task.
- Iterate the SDK or HTTP event stream until its terminal event.
- Measure cache-write overhead against subsequent cache-read savings.
- Measure input-token usage per request and track the prompt components.
Explanation
Correct Answers
D:To reduce repeated cost for a stable lengthy policy prefix reused many times as part of a design that must also explain a billing increase after lengthy system instructions are added, cache writes may cost extra while hits are cheaper; the reuse frequency determines whether the optimization saves money; this is why the action is one of the two required selections.
E:To explain a billing increase after lengthy system instructions are added as part of a design that must also reduce repeated cost for a stable lengthy policy prefix reused many times, repeated prefixes and conversation history consume billable input, so cost cannot be inferred from output length alone; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal to detect a looping agent that suddenly multiplies token consumption because monitoring consumption across an entire agent run catches runaway workflows that per-request logs may not reveal; the required outcomes are instead to reduce repeated cost for a stable lengthy policy prefix reused many times and to explain a billing increase after lengthy system instructions are added.
B:This alternative serves the separate goal to serve high-volume straightforward classification at a tight latency and cost target because lightweight model tiers can favor speed and unit economics, but accuracy must still meet the specific evaluation threshold; the required outcomes are instead to reduce repeated cost for a stable lengthy policy prefix reused many times and to explain a billing increase after lengthy system instructions are added.
C:This alternative serves the separate goal to process partial model output as it is delivered over a streaming connection because streaming clients must handle both content deltas and final status rather than assuming the first chunk is the complete response; the required outcomes are instead to reduce repeated cost for a stable lengthy policy prefix reused many times and to explain a billing increase after lengthy system instructions are added.
Question 189
An architecture review of a tool-calling Claude workflow asks how to offer users a reusable parameterized instruction template from an MCP server. Which action is the best fit?
- Package the connector behind an MCP server.
- Implement the appropriate MCP capability listing and metadata endpoints.
- Register a prompt template with its required arguments.
- Configure the built-in capability instead of recreating it as a local handler.
Explanation
Correct Answer
C:To offer users a reusable parameterized instruction template from an MCP server in this tool-calling Claude workflow, MCP prompts provide structured prompt content, but by themselves do not perform external business actions; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps 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; that mechanism does not meet the different requirement to offer users a reusable parameterized instruction template from an MCP server.
B:The proposed alternative helps to help a client learn which callable and informational capabilities a server offers because discovery advertises tools, resources, or prompts so clients can use supported contracts rather than guessing names or arguments; that mechanism does not meet the different requirement to offer users a reusable parameterized instruction template from an MCP server.
D:The proposed alternative helps to obtain a capability already provided as a supported Anthropic server tool because provider tools simplify execution ownership, though availability, cost, and data handling still require assessment; that mechanism does not meet the different requirement to offer users a reusable parameterized instruction template from an MCP server.
Question 190
An end-to-end test for an operations research assistant checks whether it can pursue an open-ended investigation where the next action depends on intermediate evidence and stop iterative tool use when a success condition or resource budget is reached. Which plan should be approved to satisfy both checks?
- Perform both steps: (1) Give an agent a bounded objective and a tool-selection loop; (2) implement an application-owned messages api agent loop.
- Perform both steps: (1) Define structured inputs, expected outputs, and failure states for each delegate; (2) enforce explicit completion checks and a maximum iteration budget.
- Perform both steps: (1) Give an agent a bounded objective and a tool-selection loop; (2) enforce explicit completion checks and a maximum iteration budget.
- Perform both steps: (1) Define structured inputs, expected outputs, and failure states for each delegate; (2) implement an application-owned messages api agent loop.
Explanation
Correct Answer
C:The first change enables the team to pursue an open-ended investigation where the next action depends on intermediate evidence because agentic control lets the model choose among permitted steps as observations arrive; budgets and termination conditions still bound its autonomy; the second addresses the separate need 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.
Incorrect Answers
A:The first step is appropriate for the requirement to pursue an open-ended investigation where the next action depends on intermediate evidence because agentic control lets the model choose among permitted steps as observations arrive; budgets and termination conditions still bound its autonomy; the other step instead aims to require precise control over message assembly, tool dispatch, and stopping behavior because a custom loop explicitly owns each model call, tool result, state update, and budget decision, trading flexibility for more engineering responsibility, which does not meet the second requirement to stop iterative tool use when a success condition or resource budget is reached.
B:The second step meets the requirement 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; the first step would only help to prevent specialists from producing incompatible artifacts for the orchestrator because explicit delegation contracts make multi-agent integration testable; free-form handoffs often obscure whether a child finished its assigned task, leaving the separate requirement to pursue an open-ended investigation where the next action depends on intermediate evidence unmet.
D:Both steps target different results—prevent specialists from producing incompatible artifacts for the orchestrator and require precise control over message assembly, tool dispatch, and stopping behavior—because explicit delegation contracts make multi-agent integration testable; free-form handoffs often obscure whether a child finished its assigned task and a custom loop explicitly owns each model call, tool result, state update, and budget decision, trading flexibility for more engineering responsibility; the required capabilities are instead to pursue an open-ended investigation where the next action depends on intermediate evidence and to stop iterative tool use when a success condition or resource budget is reached.