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.
Question 191
While planning a long-context summarization workflow, the product owner specifies that it must maintain the current task after older dialogue exceeds the active token budget. Which solution fulfills the requirement?
- Retrieve authoritative policy passages and cite those used.
- Summarize prior decisions and preserve unresolved constraints.
- Use properly labeled example inputs and outputs instead of mixing speakers.
- Ground consequential statements in retrieved evidence or external checks.
Explanation
Correct Answer
B:To maintain the current task after older dialogue exceeds the active token budget in this long-context summarization workflow, a faithful rolling summary carries forward objectives and commitments while avoiding a full-history replay on each call; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to answer a company-policy question from current approved records instead of relying on general knowledge because retrieval supplies task-specific facts that pretraining may not include, while source attribution lets the application verify the response; that mechanism does not meet the different requirement to maintain the current task after older dialogue exceeds the active token budget.
C:The proposed alternative helps to maintain label semantics when a few-shot prompt contains dialogue because correct role boundaries keep demonstrations interpretable and prevent an example answer from looking like a live instruction; that mechanism does not meet the different requirement to maintain the current task after older dialogue exceeds the active token budget.
D:The proposed alternative helps to avoid treating fluent model wording as evidence that a claim is verified because linguistic confidence is not a calibrated truth guarantee, so factual correctness requires independent support; that mechanism does not meet the different requirement to maintain the current task after older dialogue exceeds the active token budget.
Question 192
An end-to-end test for an agent access-control assessment checks whether it can avoid accidentally allowing critical writes when a safety check crashes and capture outcomes of agent command execution for security review. Which plan should be approved to satisfy both checks?
- Perform both steps: (1) Use a server-side workload identity or scoped service credential; (2) record result metadata in a post-tool hook.
- Perform both steps: (1) Use a server-side workload identity or scoped service credential; (2) record authenticated approval events with actor, scope, and request correlation.
- Perform both steps: (1) Define fail-closed behavior for an enforcement hook and test failure paths; (2) record result metadata in a post-tool hook.
- Perform both steps: (1) Define fail-closed behavior for an enforcement hook and test failure paths; (2) record authenticated approval events with actor, scope, and request correlation.
Explanation
Correct Answer
C:The first change enables the team to avoid accidentally allowing critical writes when a safety check crashes because a guardrail that silently skips checks on errors is not an effective boundary; failures must prevent the protected action when policy requires it; the second addresses the separate need 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.
Incorrect Answers
A:The second step meets the requirement 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; the first step would only help to stop frontend users from receiving unrestricted backend tool credentials because service identities tie privileges to a runtime workload and avoid exposing long-lived secrets to browsers or untrusted users, leaving the separate requirement to avoid accidentally allowing critical writes when a safety check crashes unmet.
B:Both steps target different results—stop frontend users from receiving unrestricted backend tool credentials and demonstrate who approved a privileged tool action and when—because service identities tie privileges to a runtime workload and avoid exposing long-lived secrets to browsers or untrusted users and an audit trail binds authorization to a specific action, making privilege use reviewable without treating model-generated text as proof of consent; the required capabilities are instead to avoid accidentally allowing critical writes when a safety check crashes and to capture outcomes of agent command execution for security review.
D:The first step is appropriate for the requirement to avoid accidentally allowing critical writes when a safety check crashes because a guardrail that silently skips checks on errors is not an effective boundary; failures must prevent the protected action when policy requires it; the other step instead aims 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, which does not meet the second requirement to capture outcomes of agent command execution for security review.
Question 193
Two acceptance tests block a document investigation agent: one requires the ability to reduce elapsed time for independent extraction tasks that do not share mutable state; the other requires the ability to pursue an open-ended investigation where the next action depends on intermediate evidence. Which plan clears both tests?
- 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) Enforce explicit completion checks and a maximum iteration budget; (2) delegate source analysis to a subagent and return a concise result.
- Perform both steps: (1) Enforce explicit completion checks and a maximum iteration budget; (2) give an agent a bounded objective and a tool-selection loop.
- Perform both steps: (1) Run independent branches concurrently and merge their outputs afterward; (2) give an agent a bounded objective and a tool-selection loop.
Explanation
Correct Answer
D:The first change enables the team 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; the second addresses the separate need 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.
Incorrect Answers
A:The first step is appropriate for the requirement 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; the other step instead aims 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, which does not meet the second requirement to pursue an open-ended investigation where the next action depends on intermediate evidence.
B:Both steps target different results—stop iterative tool use when a success condition or resource budget is reached and keep a large source-reading task from crowding the coordinator's working context—because bounded loops avoid unending tool calls and uncontrolled spend while making incomplete work visible instead of silently continuing and isolated workspaces let a specialist process extensive material while the parent receives only task-relevant evidence instead of every intermediate token; the required capabilities are instead to reduce elapsed time for independent extraction tasks that do not share mutable state and to pursue an open-ended investigation where the next action depends on intermediate evidence.
C:The second step meets 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 first step would only help 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, leaving the separate requirement to reduce elapsed time for independent extraction tasks that do not share mutable state unmet.
Question 194
A test for a high-volume Messages API gateway fails because it cannot verify that generated categorization meets a business-approved standard. Which change fixes the identified failure?
- Maintain links between requirements, implementation changes, and verification cases.
- Detect transport interruption and mark incomplete generated content.
- Inspect changes to content and ordering before the cache breakpoint.
- Convert quality expectations into labeled tests and failure thresholds.
Explanation
Correct Answer
D:To verify that generated categorization meets a business-approved standard in this high-volume Messages API gateway, acceptance is meaningful only with representative cases and explicit quality criteria; subjective demo approval cannot establish production fitness; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to ensure each production feature can be tied to an approved acceptance test because requirement traceability helps prevent a prompt or model update from silently changing behavior outside the agreed product scope; that mechanism does not meet the different requirement to verify that generated categorization meets a business-approved standard.
B:The proposed alternative helps to avoid silently treating a broken streaming connection as a complete answer because network termination before a final message event can leave a partial response, which needs explicit recovery rather than success handling; that mechanism does not meet the different requirement to verify that generated categorization meets a business-approved standard.
C:The proposed alternative helps to explain why a previously cached prompt is now charged as new input because cache reuse depends on matching prefix material; adding text to the front changes what is cached even if later text is unchanged; that mechanism does not meet the different requirement to verify that generated categorization meets a business-approved standard.
Question 195
An architecture review of an enterprise agent deployment asks how to prevent an adversarial user from bypassing safety policy by roleplay instructions. Which action is the best fit?
- Use layered policy enforcement and restrict powerful tools independently of chat text.
- Use a server-side workload identity or scoped service credential.
- Isolate external search results and validate any resulting tool action independently.
- Verify origin and integrity of sensitive external data where supported.
Explanation
Correct Answer
A:To prevent an adversarial user from bypassing safety policy by roleplay instructions in this enterprise agent deployment, adversarial prompting can target instruction hierarchy, so product controls and tool authorization must remain effective when wording is manipulated; the proposed implementation directly supplies that capability.
Incorrect Answers
B:The proposed alternative helps to stop frontend users from receiving unrestricted backend tool credentials because service identities tie privileges to a runtime workload and avoid exposing long-lived secrets to browsers or untrusted users; that mechanism does not meet the different requirement to prevent an adversarial user from bypassing safety policy by roleplay instructions.
C:The proposed alternative helps to reject a malicious instruction inserted into a web-search result rather than the user's direct request because indirect attacks exploit lower-trust retrieval surfaces, so trusting search snippets as operational directives crosses a security boundary; that mechanism does not meet the different requirement to prevent an adversarial user from bypassing safety policy by roleplay instructions.
D:The proposed alternative helps to detect unauthorized modifications to a tool result before it reaches the model because trusted decisions require confidence that tool outputs were not altered; transport and signature checks complement content validation; that mechanism does not meet the different requirement to prevent an adversarial user from bypassing safety policy by roleplay instructions.
Question 196
An operational review of a specialist-agent orchestration service reports distinct failures: it cannot pinpoint which known workflow stage failed when the final artifact is incomplete, and it cannot run the same retrieval, validation, and publishing stages in an approved order for every request. Which two repairs are required? Choose TWO.
- Record stage-level traces and intermediate validation outcomes.
- Chain dependent operations serially with explicit input and output contracts.
- Define structured inputs, expected outputs, and failure states for each delegate.
- Encode a deterministic workflow with explicit transitions between stages.
- Run side-effect-free tool calls concurrently when their inputs are independent.
Explanation
Correct Answers
A:To pinpoint which known workflow stage failed when the final artifact is incomplete as part of a design that must also run the same retrieval, validation, and publishing stages in an approved order for every request, deterministic stages are operationally useful when their boundaries are observable; a final answer alone cannot reveal which step produced the fault; this is why the action is one of the two required selections.
D:To run the same retrieval, validation, and publishing stages in an approved order for every request as part of a design that must also pinpoint which known workflow stage failed when the final artifact is incomplete, known control flow belongs in application code, allowing each stage to be tested and audited without asking a model to improvise the sequence; this is why the action is one of the two required selections.
Incorrect Answers
B:This alternative serves the separate goal to ensure each later tool receives a validated artifact from its preceding stage because later steps cannot safely start until upstream data exists; passing validated outputs prevents races and malformed downstream input; the required outcomes are instead to pinpoint which known workflow stage failed when the final artifact is incomplete and to run the same retrieval, validation, and publishing stages in an approved order for every request.
C:This alternative serves the separate goal 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; the required outcomes are instead to pinpoint which known workflow stage failed when the final artifact is incomplete and to run the same retrieval, validation, and publishing stages in an approved order for every request.
E:This alternative serves the separate goal 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; the required outcomes are instead to pinpoint which known workflow stage failed when the final artifact is incomplete and to run the same retrieval, validation, and publishing stages in an approved order for every request.
Question 197
A team maintaining a machine-readable extraction API must meet 2 separate acceptance criteria: (1) handle a JSON parse failure without silently accepting partial data; (2) keep only evidence that matters to the question when retrieval returns hundreds of documents. Which two implementation actions directly satisfy the stated requirements? Choose TWO.
- Specify the forbidden content alongside an enforceable validation check.
- Rank and select relevant passages before building the model context.
- Catch the parsing error and apply a bounded repair or retry path.
- State the task, audience, scope, and required deliverable explicitly.
- Escape or sanitize model text in the output presentation layer.
Explanation
Correct Answers
B:The test to keep only evidence that matters to the question when retrieval returns hundreds of documents is met because relevance filtering reduces distracting information and token usage; dumping every retrieved page can degrade grounding and exceed limits; the remaining selection covers the separate need to handle a JSON parse failure without silently accepting partial data.
C:The test to handle a JSON parse failure without silently accepting partial data is met because defensive parsing makes failures explicit and limits reattempts; swallowing errors can propagate corrupt records; the remaining selection covers the separate need to keep only evidence that matters to the question when retrieval returns hundreds of documents.
Incorrect Answers
A:The action is useful for the separate capability to avoid a prohibited output element such as confidential identifiers because negative prompt guidance signals the intended boundary, but a deterministic validator is needed where violating it has consequences; however, the required test outcomes are to keep only evidence that matters to the question when retrieval returns hundreds of documents and to handle a JSON parse failure without silently accepting partial data.
D:The action is useful for the separate capability to stop a model from alternating unpredictably between summary and extraction because specific task wording narrows reasonable interpretations and gives validation rules a clear target without relying on implied intent; however, the required test outcomes are to keep only evidence that matters to the question when retrieval returns hundreds of documents and to handle a JSON parse failure without silently accepting partial data.
E:The action is useful for the separate capability to safely render generated text in a browser without executing embedded markup because generated content is untrusted for HTML rendering; injection into the DOM must not become executable client-side code; however, the required test outcomes are to keep only evidence that matters to the question when retrieval returns hundreds of documents and to handle a JSON parse failure without silently accepting partial data.
Question 198
In a Python Claude API backend, a release requirement is to avoid a plugin update unexpectedly changing tools available to a coding agent. Which implementation addresses that specific requirement?
- Pin a supported explicit model version where stability is required.
- Give mutating operations an application-level idempotency key.
- Track enabled plugins and their compatible versions as release dependencies.
- Detect refusal and apply the product's allowed fallback or messaging policy.
Explanation
Correct Answer
C:To avoid a plugin update unexpectedly changing tools available to a coding agent in this Python Claude API backend, plugin capability changes can affect tool names and permissions, so production configuration should be reproducible and reviewed; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to reproduce production behavior across deploys instead of silently adopting a new model release because explicit version selection limits unexpected changes; a release process should evaluate upgrades and retirement timelines deliberately; that mechanism does not meet the different requirement to avoid a plugin update unexpectedly changing tools available to a coding agent.
B:The proposed alternative helps 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; that mechanism does not meet the different requirement to avoid a plugin update unexpectedly changing tools available to a coding agent.
D:The proposed alternative helps to handle a safety refusal as a distinct application outcome because a refusal is not the same as a network failure; blindly retrying identical input may not produce an appropriate user experience; that mechanism does not meet the different requirement to avoid a plugin update unexpectedly changing tools available to a coding agent.
Question 199
A release check on an autonomous repository maintenance job found two unsatisfied conditions: the service must have independent specialized reviewers inspect the same proposal from different perspectives, and it must ensure each later tool receives a validated artifact from its preceding stage. Which complete engineering plan satisfies both?
- Perform both steps: (1) Fan out to role-specific reviewers and aggregate disagreements; (2) chain dependent operations serially with explicit input and output contracts.
- Perform both steps: (1) Run independent branches concurrently and merge their outputs afterward; (2) deploy the agent runner in the organization's own environment.
- Perform both steps: (1) Fan out to role-specific reviewers and aggregate disagreements; (2) deploy the agent runner in the organization's own environment.
- Perform both steps: (1) Run independent branches concurrently and merge their outputs afterward; (2) chain dependent operations serially with explicit input and output contracts.
Explanation
Correct Answer
A:The first change enables the team to have independent specialized reviewers inspect the same proposal from different perspectives because separating reviews allows conflicting evidence to surface before the supervisor combines findings; a single sequential review may miss independent critiques; the second addresses the separate need to ensure each later tool receives a validated artifact from its preceding stage because later steps cannot safely start until upstream data exists; passing validated outputs prevents races and malformed downstream input.
Incorrect Answers
B:Both steps target different results—reduce elapsed time for independent extraction tasks that do not share mutable state and keep orchestration runtime and internal tool handlers inside company-managed infrastructure—because parallel orchestration shortens the critical path when calls have no dependencies, while the merger checks completeness before proceeding and self-hosting puts tool execution, networking, and operational controls under the application's responsibility, subject to its own deployment constraints; the required capabilities are instead to have independent specialized reviewers inspect the same proposal from different perspectives and to ensure each later tool receives a validated artifact from its preceding stage.
C:The first step is appropriate for the requirement to have independent specialized reviewers inspect the same proposal from different perspectives because separating reviews allows conflicting evidence to surface before the supervisor combines findings; a single sequential review may miss independent critiques; the other step instead aims to keep orchestration runtime and internal tool handlers inside company-managed infrastructure because self-hosting puts tool execution, networking, and operational controls under the application's responsibility, subject to its own deployment constraints, which does not meet the second requirement to ensure each later tool receives a validated artifact from its preceding stage.
D:The second step meets the requirement to ensure each later tool receives a validated artifact from its preceding stage because later steps cannot safely start until upstream data exists; passing validated outputs prevents races and malformed downstream input; 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 have independent specialized reviewers inspect the same proposal from different perspectives unmet.
Question 200
A planned upgrade to a safety-sensitive Claude application has two requirements that must both pass: stop a coding agent from running commands that match a prohibited destructive pattern; reduce exposure after an API key is suspected compromised. Identify the two direct implementations. Choose TWO.
- Apply an input-side policy gate and route flagged cases to a safe path.
- Check resource-level authorization for every sensitive tool request.
- Revoke and rotate the affected credential and update dependent services.
- Enforce a pre-tool hook that denies the disallowed call.
- Use a server-side workload identity or scoped service credential.
Explanation
Correct Answers
C:To reduce exposure after an API key is suspected compromised as part of a design that must also stop a coding agent from running commands that match a prohibited destructive pattern, rotation restores credential control only when the old secret is disabled and consumers move to the replacement safely; this is why the action is one of the two required selections.
D:To stop a coding agent from running commands that match a prohibited destructive pattern as part of a design that must also reduce exposure after an API key is suspected compromised, a deterministic hook checks the proposed command before execution, providing a stronger control than asking the agent to self-police; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal to identify prohibited requests before an automated agent invokes business tools because early filtering reduces inappropriate work, but later checks remain necessary because tool outputs can also introduce risks; the required outcomes are instead to stop a coding agent from running commands that match a prohibited destructive pattern and to reduce exposure after an API key is suspected compromised.
B:This alternative serves the separate goal 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; the required outcomes are instead to stop a coding agent from running commands that match a prohibited destructive pattern and to reduce exposure after an API key is suspected compromised.
E:This alternative serves the separate goal to stop frontend users from receiving unrestricted backend tool credentials because service identities tie privileges to a runtime workload and avoid exposing long-lived secrets to browsers or untrusted users; the required outcomes are instead to stop a coding agent from running commands that match a prohibited destructive pattern and to reduce exposure after an API key is suspected compromised.