Question 500
A design review for an MCP integration server asks for support to make a repeatable multi-step code-review methodology available to an agent, together with a way to remove an agent's access to an obsolete integration without rewriting all its task prompts. Select the two appropriate changes. Choose TWO.
- Return a concise task-relevant projection from the tool handler.
- Create a Skill containing the procedure and supporting instructions.
- Disable the capability at configuration or tool-registration level.
- Give each tool a timeout and controlled retry or failure result.
- Implement the appropriate MCP capability listing and metadata endpoints.
Explanation
Correct Answers
B:To make a repeatable multi-step code-review methodology available to an agent as part of a design that must also remove an agent's access to an obsolete integration without rewriting all its task prompts, a Skill teaches how to perform a task, whereas a tool is the executable capability that performs an external operation; this is why the action is one of the two required selections.
C:To remove an agent's access to an obsolete integration without rewriting all its task prompts as part of a design that must also make a repeatable multi-step code-review methodology available to an agent, actual registered capabilities define what may execute; changing descriptive prompt text alone does not revoke a previously available tool; 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 make a repeatable multi-step code-review methodology available to an agent and to remove an agent's access to an obsolete integration without rewriting all its task prompts.
D:This alternative serves the separate goal 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 required outcomes are instead to make a repeatable multi-step code-review methodology available to an agent and to remove an agent's access to an obsolete integration without rewriting all its task prompts.
E:This alternative serves the separate goal 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; the required outcomes are instead to make a repeatable multi-step code-review methodology available to an agent and to remove an agent's access to an obsolete integration without rewriting all its task prompts.
Question 501
Two approval criteria are still open for a knowledge-grounded assistant: the team must avoid processing a truncated structured response as a complete record and safely render generated text in a browser without executing embedded markup. Which two implementation actions satisfy them? Choose TWO.
- Name each mandatory field or section and provide formatting constraints.
- Escape or sanitize model text in the output presentation layer.
- Require a completed stop condition before accepting the parsed result.
- Instruct the application to request clarification for unresolved high-impact ambiguity.
- Catch the parsing error and apply a bounded repair or retry path.
Explanation
Correct Answers
B:To safely render generated text in a browser without executing embedded markup as part of a design that must also avoid processing a truncated structured response as a complete record, generated content is untrusted for HTML rendering; injection into the DOM must not become executable client-side code; this is why the action is one of the two required selections.
C:To avoid processing a truncated structured response as a complete record as part of a design that must also safely render generated text in a browser without executing embedded markup, 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
A:This alternative serves the separate goal to require that a generated report have a fixed set of sections because concrete desired structure is easier to verify than a vague instruction to be professional or comprehensive; the required outcomes are instead to avoid processing a truncated structured response as a complete record and to safely render generated text in a browser without executing embedded markup.
D:This alternative serves the separate goal to ask for missing essential parameters rather than inventing a consequential choice because clarification reduces irreversible guesses when requirements do not uniquely determine a safe action; the required outcomes are instead to avoid processing a truncated structured response as a complete record and to safely render generated text in a browser without executing embedded markup.
E:This alternative serves the separate goal to handle a JSON parse failure without silently accepting partial data because defensive parsing makes failures explicit and limits reattempts; swallowing errors can propagate corrupt records; the required outcomes are instead to avoid processing a truncated structured response as a complete record and to safely render generated text in a browser without executing embedded markup.
Question 502
For an operations research assistant, the missing capability is to restrict a development agent to a defined set of file and command capabilities. What should the developers implement?
- Add a deterministic pre-execution hook for the sensitive operation.
- Return a separate tool_result for every corresponding tool_use identifier.
- Configure tool permissions rather than depending only on a prompt.
- Apply limits for steps, elapsed time, and token or tool expenditure.
Explanation
Correct Answer
C:To restrict a development agent to a defined set of file and command capabilities in this operations research assistant, runtime permissions constrain what actions can run even if the model requests more access; prompt instructions alone are not a security boundary; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to block an unsafe shell or file operation before a tool executes because a pre-tool boundary can reject a forbidden action independently of model judgment; enforcement must occur before side effects happen; that mechanism does not meet the different requirement to restrict a development agent to a defined set of file and command capabilities.
B:The proposed alternative helps to handle several independent tool_use blocks in one assistant message because parallel tool execution requires complete, correctly linked results; dropping one identifier leaves the model's outstanding request unresolved; that mechanism does not meet the different requirement to restrict a development agent to a defined set of file and command capabilities.
D:The proposed alternative helps 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; that mechanism does not meet the different requirement to restrict a development agent to a defined set of file and command capabilities.
Question 503
While planning a model selection trial, the product owner specifies that it must solve demanding multistep reasoning tasks where quality matters more than lowest unit price. Which solution fulfills the requirement?
- Use asynchronous client methods and limit in-flight calls.
- Benchmark an Opus-family model on the hardest cases.
- Design an approved fallback model path with compatibility checks.
- Prefer a maintained SDK when its typed methods and retry behavior fit the integration.
Explanation
Correct Answer
B:To solve demanding multistep reasoning tasks where quality matters more than lowest unit price in this model selection trial, higher-capability tiers may improve difficult-task performance, but their cost and latency still need objective justification; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to keep a server responsive while several independent model calls wait on network I/O because event-loop based I/O overlaps waits, but rate and resource bounds are still necessary to avoid overload; that mechanism does not meet the different requirement to solve demanding multistep reasoning tasks where quality matters more than lowest unit price.
C:The proposed alternative helps to preserve critical service during a temporary primary-model problem because fallbacks improve resilience only when downstream schemas, cost limits, and policy controls work with the alternate model; that mechanism does not meet the different requirement to solve demanding multistep reasoning tasks where quality matters more than lowest unit price.
D:The proposed alternative helps to choose between writing raw REST requests and using an official client library because sDKs wrap the same underlying service API and can simplify serialization, error types, and streaming without removing protocol constraints; that mechanism does not meet the different requirement to solve demanding multistep reasoning tasks where quality matters more than lowest unit price.
Question 504
In a production inference application, a release requirement is to trust a callback only after verifying who actually sent it. Which implementation addresses that specific requirement?
- Authenticate incoming callbacks and validate their signatures where supported.
- Use the provider-specific endpoint, authentication, and request conventions.
- Validate file type, size, and allowed content conversion before API submission.
- Classify permanent client errors separately from transient failures.
Explanation
Correct Answer
A:To trust a callback only after verifying who actually sent it in this production inference application, network arrival alone does not prove a webhook's origin; authenticity checks prevent forged events from changing agent state; the proposed implementation directly supplies that capability.
Incorrect Answers
B:The proposed alternative helps to support Claude models accessed through different supported cloud offerings because Claude API, Bedrock, and Vertex-style integrations are not interchangeable URLs; host authentication and service wrappers differ; that mechanism does not meet the different requirement to trust a callback only after verifying who actually sent it.
C:The proposed alternative helps to prevent a document-upload endpoint from passing unsupported bytes to the model because client filenames are not enough to establish content validity; ingestion must enforce protocol and product constraints; that mechanism does not meet the different requirement to trust a callback only after verifying who actually sent it.
D:The proposed alternative helps to avoid retrying a malformed request that the API consistently rejects because a deterministic validation or authorization error requires fixing the request or credential, not another identical attempt; that mechanism does not meet the different requirement to trust a callback only after verifying who actually sent it.
Question 505
The team responsible for a privileged agent security review needs to limit the consequences of a mistaken tool call in a production support system. What is the most direct engineering change?
- Verify origin and integrity of sensitive external data where supported.
- Revoke and rotate the affected credential and update dependent services.
- Redact secrets and protect log access with retention controls.
- Grant each runtime tool only the operations and resources required for its task.
Explanation
Correct Answer
D:To limit the consequences of a mistaken tool call in a production support system in this privileged agent security review, least-privilege permissions shrink the blast radius of model errors and compromised prompts, especially for mutating actions; the proposed implementation directly supplies that capability.
Incorrect Answers
A: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 limit the consequences of a mistaken tool call in a production support system.
B:The proposed alternative helps to reduce exposure after an API key is suspected compromised because rotation restores credential control only when the old secret is disabled and consumers move to the replacement safely; that mechanism does not meet the different requirement to limit the consequences of a mistaken tool call in a production support system.
C: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 limit the consequences of a mistaken tool call in a production support system.
Question 506
A test for an internal coding-assistant workflow fails because it cannot build a Claude-powered coding agent with an established runtime for tool orchestration. Which change fixes the identified failure?
- Use the Claude Agent SDK for the agent's execution harness.
- Prefer a simple API call over a general-purpose multi-agent framework.
- Inspect the tool_use block, invoke the authorized handler, and return tool_result.
- Give an agent a bounded objective and a tool-selection loop.
Explanation
Correct Answer
A:To build a Claude-powered coding agent with an established runtime for tool orchestration in this internal coding-assistant workflow, the SDK provides structured primitives for agent sessions and tool execution, reducing the custom loop infrastructure the application must maintain; the proposed implementation directly supplies that capability.
Incorrect Answers
B:The proposed alternative helps to avoid adding orchestration infrastructure to a single request-and-response feature because frameworks are useful for genuinely branching, long-lived execution, but increase complexity when no orchestration problem exists; that mechanism does not meet the different requirement to build a Claude-powered coding agent with an established runtime for tool orchestration.
C:The proposed alternative helps to execute a requested internal business function inside the application's trusted process because client tools are executed by the application, not by merely declaring a schema; every returned result must be matched to its tool-use identifier; that mechanism does not meet the different requirement to build a Claude-powered coding agent with an established runtime for tool orchestration.
D:The proposed alternative helps 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; that mechanism does not meet the different requirement to build a Claude-powered coding agent with an established runtime for tool orchestration.
Question 507
The technical owner of a tool-calling Claude workflow has to make reference material available for clients to read as context. A separate requirement is to let an MCP client invoke a business capability through a standard server interface. Which two-part remediation covers both?
- Perform both steps: (1) Expose the material as an MCP resource with a stable identifier; (2) implement a narrowly scoped read-only tool handler.
- Perform both steps: (1) Expose the material as an MCP resource with a stable identifier; (2) publish a properly described mcp tool and its input contract.
- Perform both steps: (1) Return a concise task-relevant projection from the tool handler; (2) implement a narrowly scoped read-only tool handler.
- Perform both steps: (1) Return a concise task-relevant projection from the tool handler; (2) publish a properly described mcp tool and its input contract.
Explanation
Correct Answer
B:The first change enables the team to make reference material available for clients to read as context because resources represent consumable data, contrasting with tools that invoke an operation or prompts that package reusable instructions; the second addresses the separate need 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.
Incorrect Answers
A:The first step is appropriate for the requirement to make reference material available for clients to read as context because resources represent consumable data, contrasting with tools that invoke an operation or prompts that package reusable instructions; the other step instead aims to expose a diagnostic capability without allowing the model to modify records because a restricted read interface supports observation while preventing data mutation, unlike giving a diagnostic agent a general administrative API, which does not meet the second requirement to let an MCP client invoke a business capability through a standard server interface.
C:Both steps target different results—reduce context bloat caused by a tool returning a thousand irrelevant fields and expose a diagnostic capability without allowing the model to modify records—because tool output is subsequently consumed as model context; minimizing it reduces both token cost and distractions and a restricted read interface supports observation while preventing data mutation, unlike giving a diagnostic agent a general administrative API; the required capabilities are instead to make reference material available for clients to read as context and to let an MCP client invoke a business capability through a standard server interface.
D:The second step meets the requirement 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 first step would only help 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, leaving the separate requirement to make reference material available for clients to read as context unmet.
Question 508
In a model-family migration plan, testing reveals that the system cannot prevent a tool_use block from being displayed as if it were natural-language text and cannot implement a low-volume command-line utility that handles one inference at a time. Select the two targeted actions that close these gaps. Choose TWO.
- Run contract and integration tests against the upgraded SDK in staging.
- Use a synchronous client with explicit timeout and error handling.
- Propagate cancellation to the active network request when supported.
- Iterate the SDK or HTTP event stream until its terminal event.
- Check each response block's type before extracting its fields.
Explanation
Correct Answers
B:To implement a low-volume command-line utility that handles one inference at a time as part of a design that must also prevent a tool_use block from being displayed as if it were natural-language text, synchronous calls are simplest for strictly sequential work, where concurrency would add complexity without improving throughput; this is why the action is one of the two required selections.
E:To prevent a tool_use block from being displayed as if it were natural-language text as part of a design that must also implement a low-volume command-line utility that handles one inference at a time, typed response objects can contain several block families; assuming every block has a text field causes logic errors; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal to detect changed library behavior before rolling a new version into production because client-library version shifts can affect serialization or errors even without changes to business prompts, so they deserve release validation; the required outcomes are instead to prevent a tool_use block from being displayed as if it were natural-language text and to implement a low-volume command-line utility that handles one inference at a time.
C:This alternative serves the separate goal to stop a no-longer-needed inference when the user's request is cancelled because cancelling work can free local resources and avoid processing obsolete results, though already-incurred provider work may still be billed; the required outcomes are instead to prevent a tool_use block from being displayed as if it were natural-language text and to implement a low-volume command-line utility that handles one inference at a time.
D: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 prevent a tool_use block from being displayed as if it were natural-language text and to implement a low-volume command-line utility that handles one inference at a time.
Question 509
An end-to-end test for a multi-tenant support application checks whether it can restore a known-working prompt and model configuration after quality degrades and learn from a tool-side effect caused by an unexpected model action. Which plan should be approved to satisfy both checks?
- Perform both steps: (1) Keep versioned artifacts and a tested rollback procedure; (2) record a blameless timeline, root causes, and preventive controls.
- Perform both steps: (1) Create a threat model covering trust boundaries, permissions, and misuse paths; (2) record a blameless timeline, root causes, and preventive controls.
- Perform both steps: (1) Create a threat model covering trust boundaries, permissions, and misuse paths; (2) require peer review focused on api, security, and tool-side effects.
- Perform both steps: (1) Keep versioned artifacts and a tested rollback procedure; (2) require peer review focused on api, security, and tool-side effects.
Explanation
Correct Answer
A:The first change enables the team to restore a known-working prompt and model configuration after quality degrades because model IDs, prompts, schemas, and tool contracts are release components; restoring just the application binary may not restore prior behavior; the second addresses the separate need to learn from a tool-side effect caused by an unexpected model action because post-incident review should identify inadequate approvals and monitoring and turn findings into testable changes, rather than blaming the language model.
Incorrect Answers
B:The second step meets the requirement to learn from a tool-side effect caused by an unexpected model action because post-incident review should identify inadequate approvals and monitoring and turn findings into testable changes, rather than blaming the language model; the first step would only help to identify damage that could result from adversarial documents or tool access because aI application risk includes injected content and powerful downstream functions; those flows need explicit mitigations before implementation, leaving the separate requirement to restore a known-working prompt and model configuration after quality degrades unmet.
C:Both steps target different results—identify damage that could result from adversarial documents or tool access and catch unsafe credentials and incorrect tool calls before deployment—because aI application risk includes injected content and powerful downstream functions; those flows need explicit mitigations before implementation and human review should check trust boundaries and external actions in addition to style; successful compilation cannot prove these behaviors are safe; the required capabilities are instead to restore a known-working prompt and model configuration after quality degrades and to learn from a tool-side effect caused by an unexpected model action.
D:The first step is appropriate for the requirement to restore a known-working prompt and model configuration after quality degrades because model IDs, prompts, schemas, and tool contracts are release components; restoring just the application binary may not restore prior behavior; the other step instead aims to catch unsafe credentials and incorrect tool calls before deployment because human review should check trust boundaries and external actions in addition to style; successful compilation cannot prove these behaviors are safe, which does not meet the second requirement to learn from a tool-side effect caused by an unexpected model action.
Question 510
A team maintaining a secret rotation incident must meet 3 separate acceptance criteria: (1) stop frontend users from receiving unrestricted backend tool credentials; (2) stop an authenticated user from reading another tenant's records via a tool; (3) stop a coding agent from running commands that match a prohibited destructive pattern. Which three implementation actions directly satisfy the stated requirements? Choose THREE.
- Check resource-level authorization for every sensitive tool request.
- Verify origin and integrity of sensitive external data where supported.
- Enforce a pre-tool hook that denies the disallowed call.
- Use a server-side workload identity or scoped service credential.
- Isolate external search results and validate any resulting tool action independently.
- Remove or mask unnecessary personal information before model submission.
Explanation
Correct Answers
A: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 selections covers the separate need to stop a coding agent from running commands that match a prohibited destructive pattern and need to stop frontend users from receiving unrestricted backend tool credentials.
C:The test to stop a coding agent from running commands that match a prohibited destructive pattern is met because a deterministic hook checks the proposed command before execution, providing a stronger control than asking the agent to self-police; the remaining selections covers the separate need to stop an authenticated user from reading another tenant's records via a tool and need to stop frontend users from receiving unrestricted backend tool credentials.
D: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 selections covers the separate need to stop an authenticated user from reading another tenant's records via a tool and need to stop a coding agent from running commands that match a prohibited destructive pattern.
Incorrect Answers
B:The action is useful for the separate capability 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; however, the required test outcomes are to stop an authenticated user from reading another tenant's records via a tool and to stop a coding agent from running commands that match a prohibited destructive pattern and to stop frontend users from receiving unrestricted backend tool credentials.
E:The action is useful for the separate capability 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; however, the required test outcomes are to stop an authenticated user from reading another tenant's records via a tool and to stop a coding agent from running commands that match a prohibited destructive pattern and to stop frontend users from receiving unrestricted backend tool credentials.
F:The action is useful for the separate capability 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; however, the required test outcomes are to stop an authenticated user from reading another tenant's records via a tool and to stop a coding agent from running commands that match a prohibited destructive pattern and to stop frontend users from receiving unrestricted backend tool credentials.