Question 150
To ship an internal agent-extension rollout, the application must stop a slow external system from trapping an agent loop indefinitely and connect a Claude tool request to an internal service whose logic the application owns. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.
- Return a concise task-relevant projection from the tool handler.
- Implement a client-side handler and return its result with the tool-use identifier.
- Return an explicit tool error indication and an informative safe message.
- Give each tool a timeout and controlled retry or failure result.
- Define a descriptive tool name and validated input schema.
Explanation
Correct Answers
B:To connect a Claude tool request to an internal service whose logic the application owns as part of a design that must also stop a slow external system from trapping an agent loop indefinitely, a declared client tool does not execute itself; application code runs it and feeds results back into the conversation; this is why the action is one of the two required selections.
D:To stop a slow external system from trapping an agent loop indefinitely as part of a design that must also connect a Claude tool request to an internal service whose logic the application owns, tool execution is a separate latency source; bounded calls prevent one dependency from exhausting the entire agent budget; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal 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; the required outcomes are instead to stop a slow external system from trapping an agent loop indefinitely and to connect a Claude tool request to an internal service whose logic the application owns.
C:This alternative serves the separate goal 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; the required outcomes are instead to stop a slow external system from trapping an agent loop indefinitely and to connect a Claude tool request to an internal service whose logic the application owns.
E:This alternative serves the separate goal 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 required outcomes are instead to stop a slow external system from trapping an agent loop indefinitely and to connect a Claude tool request to an internal service whose logic the application owns.
Question 151
The team responsible for an autonomous repository maintenance job needs to keep a failed tool from being mistaken for successful completion of an objective. What is the most direct engineering change?
- Use isolated branch state and a controlled reconciliation step.
- Deploy the agent runner in the organization's own environment.
- Consume the agent runtime's streamed event sequence.
- Catch tool failures and report typed errors into the agent loop.
Explanation
Correct Answer
D:To keep a failed tool from being mistaken for successful completion of an objective in this autonomous repository maintenance job, explicit failure messages let the model or controller choose recovery; swallowing exceptions makes later actions rely on results that never existed; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps 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; that mechanism does not meet the different requirement to keep a failed tool from being mistaken for successful completion of an objective.
B:The proposed alternative helps 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; that mechanism does not meet the different requirement to keep a failed tool from being mistaken for successful completion of an objective.
C:The proposed alternative helps to deliver intermediate agent events to the client as they occur because event-driven consumption lets the application display progress and inspect tool actions without waiting for the entire multi-step run to finish; that mechanism does not meet the different requirement to keep a failed tool from being mistaken for successful completion of an objective.
Question 152
A test for a production prompt pipeline fails because it cannot keep only evidence that matters to the question when retrieval returns hundreds of documents. Which change fixes the identified failure?
- Hold evaluation inputs constant and compare prompt versions.
- State explicit priority and conflict resolution for the task constraints.
- Retrieve authoritative policy passages and cite those used.
- Rank and select relevant passages before building the model context.
Explanation
Correct Answer
D:To keep only evidence that matters to the question when retrieval returns hundreds of documents in this production prompt pipeline, relevance filtering reduces distracting information and token usage; dumping every retrieved page can degrade grounding and exceed limits; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps 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; that mechanism does not meet the different requirement to keep only evidence that matters to the question when retrieval returns hundreds of documents.
B:The proposed alternative helps 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; that mechanism does not meet the different requirement to keep only evidence that matters to the question when retrieval returns hundreds of documents.
C: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 keep only evidence that matters to the question when retrieval returns hundreds of documents.
Question 153
An architecture review of an enterprise agent deployment asks how to keep Claude API credentials out of repository source and deployment images. Which action is the best fit?
- Redact secrets and protect log access with retention controls.
- Retrieve keys through a managed secrets facility at runtime.
- Remove or mask unnecessary personal information before model submission.
- Grant each runtime tool only the operations and resources required for its task.
Explanation
Correct Answer
B:To keep Claude API credentials out of repository source and deployment images in this enterprise agent deployment, central secret handling improves rotation and auditing and avoids accidental credential disclosure through source control; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to investigate user actions without leaking API keys into operational records because logs support accountability only when access and retention are restricted; copying all prompt content into logs creates another exposure surface; that mechanism does not meet the different requirement to keep Claude API credentials out of repository source and deployment images.
C:The proposed alternative helps to protect customer identity fields when only document topics are needed for classification because minimization limits exposure while preserving task inputs; relying on the model to ignore visible PII does not provide the same protection; that mechanism does not meet the different requirement to keep Claude API credentials out of repository source and deployment images.
D:The proposed alternative helps to limit the consequences of a mistaken tool call in a production support system because least-privilege permissions shrink the blast radius of model errors and compromised prompts, especially for mutating actions; that mechanism does not meet the different requirement to keep Claude API credentials out of repository source and deployment images.
Question 154
Two acceptance tests block an enterprise MCP client: one requires the ability to ensure an agent obtains explicit authorization before updating a customer record; the other requires the ability to stop a slow external system from trapping an agent loop indefinitely. Which plan clears both tests?
- Perform both steps: (1) Disable the capability at configuration or tool-registration level; (2) package the compatible components as an installable plugin when supported.
- Perform both steps: (1) Put an approval gate in the host-side write handler; (2) give each tool a timeout and controlled retry or failure result.
- Perform both steps: (1) Disable the capability at configuration or tool-registration level; (2) give each tool a timeout and controlled retry or failure result.
- Perform both steps: (1) Put an approval gate in the host-side write handler; (2) package the compatible components as an installable plugin when supported.
Explanation
Correct Answer
B:The first change enables the team 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; the second addresses the separate need to stop a slow external system from trapping an agent loop indefinitely because tool execution is a separate latency source; bounded calls prevent one dependency from exhausting the entire agent budget.
Incorrect Answers
A:Both steps target different results—remove an agent's access to an obsolete integration without rewriting all its task prompts and maintain a reusable collection of related integrations and agent instructions across projects—because actual registered capabilities define what may execute; changing descriptive prompt text alone does not revoke a previously available tool and a plugin groups capabilities for distribution and configuration; a single direct tool is simpler when packaging and reuse are unnecessary; the required capabilities are instead to ensure an agent obtains explicit authorization before updating a customer record and to stop a slow external system from trapping an agent loop indefinitely.
C:The second step meets the requirement to stop a slow external system from trapping an agent loop indefinitely because tool execution is a separate latency source; bounded calls prevent one dependency from exhausting the entire agent budget; the first step would only help to remove an agent's access to an obsolete integration without rewriting all its task prompts because actual registered capabilities define what may execute; changing descriptive prompt text alone does not revoke a previously available tool, leaving the separate requirement to ensure an agent obtains explicit authorization before updating a customer record unmet.
D:The first step is appropriate for the requirement 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; the other step instead aims to maintain a reusable collection of related integrations and agent instructions across projects because a plugin groups capabilities for distribution and configuration; a single direct tool is simpler when packaging and reuse are unnecessary, which does not meet the second requirement to stop a slow external system from trapping an agent loop indefinitely.
Question 155
While planning a hosted document-processing service, the product owner specifies that it must have the server parse a JSON request body predictably. Which solution fulfills the requirement?
- Set the appropriate application/json content type and serialize a valid payload.
- Use the API's documented POST request with a JSON body.
- Supply the required API version header.
- Retry eligible failures with capped exponential backoff and jitter.
Explanation
Correct Answer
A:To have the server parse a JSON request body predictably in this hosted document-processing service, a JSON body requires both correct serialization and matching HTTP metadata; raw language-model text cannot replace a valid request object; the proposed implementation directly supplies that capability.
Incorrect Answers
B:The proposed alternative helps to send a model inference request with the operation expected by the REST endpoint because a state-changing inference operation is submitted as an HTTP request with an explicit method and payload, not inferred from a browser URL alone; that mechanism does not meet the different requirement to have the server parse a JSON request body predictably.
C:The proposed alternative helps to make a direct REST request with a declared supported API contract because the version header selects the protocol contract supported by the endpoint, preventing accidental dependence on unspecified behavior; that mechanism does not meet the different requirement to have the server parse a JSON request body predictably.
D:The proposed alternative helps to recover transient 429 or 5xx responses without creating a retry storm because backoff spreads retry traffic and respects transient capacity limits; blind immediate repetition worsens overload; that mechanism does not meet the different requirement to have the server parse a JSON request body predictably.
Question 156
A team maintaining a controlled administrative assistant must meet 2 separate acceptance criteria: (1) secure an agent against both malicious retrieved text and unsafe tool execution; (2) resist instructions embedded in a retrieved support ticket that demand secret disclosure. Which two implementation actions directly satisfy the stated requirements? Choose TWO.
- Grant each runtime tool only the operations and resources required for its task.
- Check resource-level authorization for every sensitive tool request.
- Combine prompt boundaries, scoped credentials, validation, and approval gates.
- Enforce outbound destination allowlists at the tool execution layer.
- Treat retrieved content as untrusted and prevent its instructions from controlling tools.
Explanation
Correct Answers
C:The test to secure an agent against both malicious retrieved text and unsafe tool execution is met because defense in depth assumes individual filters can fail; independent enforcement boundaries reduce the chance of harmful side effects; the remaining selection covers the separate need to resist instructions embedded in a retrieved support ticket that demand secret disclosure.
E:The test to resist instructions embedded in a retrieved support ticket that demand secret disclosure is met because source material is data rather than authority; enforcing tool permissions and separating roles limits an attacker's ability to redirect execution; the remaining selection covers the separate need to secure an agent against both malicious retrieved text and unsafe tool execution.
Incorrect Answers
A:The action is useful for the separate capability to limit the consequences of a mistaken tool call in a production support system because least-privilege permissions shrink the blast radius of model errors and compromised prompts, especially for mutating actions; however, the required test outcomes are to secure an agent against both malicious retrieved text and unsafe tool execution and to resist instructions embedded in a retrieved support ticket that demand secret disclosure.
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 secure an agent against both malicious retrieved text and unsafe tool execution and to resist instructions embedded in a retrieved support ticket that demand secret disclosure.
D: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 secure an agent against both malicious retrieved text and unsafe tool execution and to resist instructions embedded in a retrieved support ticket that demand secret disclosure.
Question 157
An architecture decision for a production tool-calling agent must support continue a paused multi-step task with its legitimate prior context and use a Claude platform-provided capability without operating a local handler. Which option gives a complete rather than partial solution?
- Perform both steps: (1) Evaluate a managed agent runtime against the deployment requirements; (2) attach a post-execution observation hook to the tool lifecycle.
- Perform both steps: (1) Persist and resume the agent session using supported state handling; (2) configure the appropriate anthropic-executed server tool.
- Perform both steps: (1) Evaluate a managed agent runtime against the deployment requirements; (2) configure the appropriate anthropic-executed server tool.
- Perform both steps: (1) Persist and resume the agent session using supported state handling; (2) attach a post-execution observation hook to the tool lifecycle.
Explanation
Correct Answer
B:The first change enables the team to continue a paused multi-step task with its legitimate prior context because session continuity preserves relevant work across invocations; discarding session state can cause repeated tools or lost intermediate decisions; the second addresses the separate need to use a Claude platform-provided capability without operating a local handler because server tools execute on the provider side and have distinct authorization and runtime semantics from client tools the application dispatches.
Incorrect Answers
A:Both steps target different results—minimize infrastructure ownership for a supported hosted agent execution surface and inspect the result of a completed tool call before later model reasoning consumes it—because a managed runtime can take on execution infrastructure, but access controls, product availability, and data-handling needs still require evaluation and post-tool inspection can record or validate outcomes after execution, but it cannot retroactively prevent side effects from the completed call; the required capabilities are instead to continue a paused multi-step task with its legitimate prior context and to use a Claude platform-provided capability without operating a local handler.
C:The second step meets the requirement to use a Claude platform-provided capability without operating a local handler because server tools execute on the provider side and have distinct authorization and runtime semantics from client tools the application dispatches; the first step would only help to minimize infrastructure ownership for a supported hosted agent execution surface because a managed runtime can take on execution infrastructure, but access controls, product availability, and data-handling needs still require evaluation, leaving the separate requirement to continue a paused multi-step task with its legitimate prior context unmet.
D:The first step is appropriate for the requirement to continue a paused multi-step task with its legitimate prior context because session continuity preserves relevant work across invocations; discarding session state can cause repeated tools or lost intermediate decisions; the other step instead aims to inspect the result of a completed tool call before later model reasoning consumes it because post-tool inspection can record or validate outcomes after execution, but it cannot retroactively prevent side effects from the completed call, which does not meet the second requirement to use a Claude platform-provided capability without operating a local handler.
Question 158
To ship an MCP integration server, the application must expose a business lookup with predictable typed arguments and expose a diagnostic capability without allowing the model to modify records. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.
- Implement a narrowly scoped read-only tool handler.
- Write a custom tool whose handler runs in the application.
- Define a descriptive tool name and validated input schema.
- Validate model-supplied tool arguments against schema and domain rules.
- Publish a properly described MCP tool and its input contract.
Explanation
Correct Answers
A:To expose a diagnostic capability without allowing the model to modify records as part of a design that must also expose a business lookup with predictable typed arguments, a restricted read interface supports observation while preventing data mutation, unlike giving a diagnostic agent a general administrative API; this is why the action is one of the two required selections.
C:To expose a business lookup with predictable typed arguments as part of a design that must also expose a diagnostic capability without allowing the model to modify records, well-described schemas help Claude select a capability and emit usable arguments; the backend still validates authorization and meaning; this is why the action is one of the two required selections.
Incorrect Answers
B:This alternative serves the separate goal to invoke a proprietary internal pricing database unavailable through a built-in feature because custom tools expose application-specific actions while retaining control over authentication, validation, and network access; the required outcomes are instead to expose a business lookup with predictable typed arguments and to expose a diagnostic capability without allowing the model to modify records.
D:This alternative serves the separate goal 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 required outcomes are instead to expose a business lookup with predictable typed arguments and to expose a diagnostic capability without allowing the model to modify records.
E:This alternative serves the separate goal 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; the required outcomes are instead to expose a business lookup with predictable typed arguments and to expose a diagnostic capability without allowing the model to modify records.
Question 159
An architecture review of a customer-facing AI feature asks how to reproduce production behavior across deploys instead of silently adopting a new model release. Which action is the best fit?
- Commit lockfiles and control library upgrades.
- Pin a supported explicit model version where stability is required.
- Store team settings in the project's shared configuration file.
- Use the user's own Claude Code settings file.
Explanation
Correct Answer
B:To reproduce production behavior across deploys instead of silently adopting a new model release in this customer-facing AI feature, explicit version selection limits unexpected changes; a release process should evaluate upgrades and retirement timelines deliberately; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to ensure a rebuilt agent uses the same tested SDK dependency set because dependency pinning reduces environment drift; transitive SDK updates can change behavior even when prompt text is unchanged; that mechanism does not meet the different requirement to reproduce production behavior across deploys instead of silently adopting a new model release.
C:The proposed alternative helps to apply consistent reviewed tool permissions to an entire Claude Code repository team because repository-level settings can be versioned and reviewed, unlike private preferences that vary across each developer's machine; that mechanism does not meet the different requirement to reproduce production behavior across deploys instead of silently adopting a new model release.
D:The proposed alternative helps to customize one developer's default Claude Code behavior across local projects because user settings are scoped to one person, so they should not be relied on for enforcing team-wide policy; that mechanism does not meet the different requirement to reproduce production behavior across deploys instead of silently adopting a new model release.
Question 160
The technical owner of a team-owned Claude Code workflow has to apply a coding convention only when Claude Code edits a particular path. A separate requirement is to continue a previously interrupted Claude Code work session. Which two-part remediation covers both?
- Perform both steps: (1) Create a project skill with the documented skill metadata and content; (2) add concise project guidance to the appropriate claude.md file.
- Perform both steps: (1) Place a path-targeted rule in the repository's rules configuration; (2) add concise project guidance to the appropriate claude.md file.
- Perform both steps: (1) Place a path-targeted rule in the repository's rules configuration; (2) use the supported session continuation or resume mechanism.
- Perform both steps: (1) Create a project skill with the documented skill metadata and content; (2) use the supported session continuation or resume mechanism.
Explanation
Correct Answer
C:The first change enables the team 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; the second addresses the separate need to continue a previously interrupted Claude Code work session because restoring session context reduces lost work while preserving continuity of prior tool activity; opening a new unrelated session does not do the same.
Incorrect Answers
A:Both steps target different results—make a reusable development procedure available to Claude Code with supporting files and give Claude Code repository-specific build and test instructions for future sessions—because a skill packages guidance or a workflow for reuse across relevant tasks; it is not identical to granting a runtime tool permission and Claude Code reads persistent project instructions from its memory hierarchy; one-off chat messages do not reliably establish durable repository guidance; the required capabilities are instead to apply a coding convention only when Claude Code edits a particular path and to continue a previously interrupted Claude Code work session.
B:The first step is appropriate for the requirement 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; the other step instead aims to give Claude Code repository-specific build and test instructions for future sessions because Claude Code reads persistent project instructions from its memory hierarchy; one-off chat messages do not reliably establish durable repository guidance, which does not meet the second requirement to continue a previously interrupted Claude Code work session.
D:The second step meets the requirement to continue a previously interrupted Claude Code work session because restoring session context reduces lost work while preserving continuity of prior tool activity; opening a new unrelated session does not do the same; the first step would only help 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, leaving the separate requirement to apply a coding convention only when Claude Code edits a particular path unmet.