Question 210
The owner of an internal agent-extension rollout needs to reduce context bloat caused by a tool returning a thousand irrelevant fields as well as process several requested independent tools without mixing their outputs. Which two changes belong in the minimum remediation plan? Choose TWO.
- Publish a properly described MCP tool and its input contract.
- Correlate each tool result with its matching tool_use_id.
- Return an explicit tool error indication and an informative safe message.
- Return a concise task-relevant projection from the tool handler.
- Configure a supported remote HTTP transport with authentication and deployment controls.
Explanation
Correct Answers
B:To process several requested independent tools without mixing their outputs as part of a design that must also reduce context bloat caused by a tool returning a thousand irrelevant fields, multi-tool responses can interleave operations, so identifier-based correlation is essential for safe continuation; this is why the action is one of the two required selections.
D:To reduce context bloat caused by a tool returning a thousand irrelevant fields as part of a design that must also process several requested independent tools without mixing their outputs, tool output is subsequently consumed as model context; minimizing it reduces both token cost and distractions; this is why the action is one of the two required selections.
Incorrect Answers
A: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 reduce context bloat caused by a tool returning a thousand irrelevant fields and to process several requested independent tools without mixing their outputs.
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 reduce context bloat caused by a tool returning a thousand irrelevant fields and to process several requested independent tools without mixing their outputs.
E:This alternative serves the separate goal to expose an MCP server to clients across a network boundary because remote connectivity needs network routing, identity, and authorization; a local stdio subprocess is not a remotely reachable service; the required outcomes are instead to reduce context bloat caused by a tool returning a thousand irrelevant fields and to process several requested independent tools without mixing their outputs.
Question 211
An end-to-end test for a production incident affecting a Claude endpoint checks whether it can find why a JSON record unexpectedly ends midway through a field and find a request schema error instead of repeatedly changing the system prompt. Which plan should be approved to satisfy both checks?
- Perform both steps: (1) Inspect the HTTP 429 status and rate-limit metadata before retrying; (2) examine correlated request, tool, and transformation traces stage by stage.
- Perform both steps: (1) Inspect the HTTP 429 status and rate-limit metadata before retrying; (2) read the 400 error details and validate the request payload.
- Perform both steps: (1) Inspect stop_reason and output limits before changing the parser; (2) examine correlated request, tool, and transformation traces stage by stage.
- Perform both steps: (1) Inspect stop_reason and output limits before changing the parser; (2) read the 400 error details and validate the request payload.
Explanation
Correct Answer
D:The first change enables the team to find why a JSON record unexpectedly ends midway through a field because a max_tokens stop indicates incomplete generation; the parser may be working correctly against a response that was never finished; the second addresses the separate need to find a request schema error instead of repeatedly changing the system prompt because an invalid API field or incompatible parameter cannot be fixed by natural-language instructions within the malformed request.
Incorrect Answers
A:Both steps target different results—distinguish an upstream throttling response from a malformed model answer and locate which component of a multi-tool answer introduced the wrong value—because a rate limit is a request-layer capacity problem; the response needs controlled pacing rather than a prompt rewrite and structured traces reveal whether retrieval, tool execution, postprocessing, or generation caused the defect; reading only the final text cannot isolate it; the required capabilities are instead to find why a JSON record unexpectedly ends midway through a field and to find a request schema error instead of repeatedly changing the system prompt.
B:The second step meets the requirement to find a request schema error instead of repeatedly changing the system prompt because an invalid API field or incompatible parameter cannot be fixed by natural-language instructions within the malformed request; the first step would only help to distinguish an upstream throttling response from a malformed model answer because a rate limit is a request-layer capacity problem; the response needs controlled pacing rather than a prompt rewrite, leaving the separate requirement to find why a JSON record unexpectedly ends midway through a field unmet.
C:The first step is appropriate for the requirement to find why a JSON record unexpectedly ends midway through a field because a max_tokens stop indicates incomplete generation; the parser may be working correctly against a response that was never finished; the other step instead aims to locate which component of a multi-tool answer introduced the wrong value because structured traces reveal whether retrieval, tool execution, postprocessing, or generation caused the defect; reading only the final text cannot isolate it, which does not meet the second requirement to find a request schema error instead of repeatedly changing the system prompt.
Question 212
To ship a TypeScript Claude integration, the application must enforce a caller-defined textual boundary on generation and set consistent developer-controlled behavior separately from untrusted user text. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.
- Detect transport interruption and mark incomplete generated content.
- Inspect HTTP status and structured error payload before interpreting model output.
- Send instructions using the request's top-level system field.
- Use stop_sequences and inspect the returned stop_sequence field.
- Assemble messages with correct user and assistant roles.
Explanation
Correct Answers
C:To set consistent developer-controlled behavior separately from untrusted user text as part of a design that must also enforce a caller-defined textual boundary on generation, the system field separates higher-priority application guidance from user-message content and should not be simulated by ordinary quoted text; this is why the action is one of the two required selections.
D:To enforce a caller-defined textual boundary on generation as part of a design that must also set consistent developer-controlled behavior separately from untrusted user text, a stop sequence halts generation at a specified marker, distinct from natural completion and separate from a JSON schema validator; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal 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; the required outcomes are instead to enforce a caller-defined textual boundary on generation and to set consistent developer-controlled behavior separately from untrusted user text.
B:This alternative serves the separate goal to distinguish API transport failures from a successfully returned model refusal because rate limits, authorization failures, and server errors happen at the request layer, unlike a normal response with a refusal stop reason; the required outcomes are instead to enforce a caller-defined textual boundary on generation and to set consistent developer-controlled behavior separately from untrusted user text.
E:This alternative serves the separate goal 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; the required outcomes are instead to enforce a caller-defined textual boundary on generation and to set consistent developer-controlled behavior separately from untrusted user text.
Question 213
The technical owner of a knowledge-grounded assistant has to avoid a prohibited output element such as confidential identifiers. A separate requirement is to apply the same compliance restrictions across many different end-user requests. Which two-part remediation covers both?
- Perform both steps: (1) Specify the forbidden content alongside an enforceable validation check; (2) supply representative labeled examples including edge conditions.
- Perform both steps: (1) Recheck current plans against a stored objective and constraints; (2) supply representative labeled examples including edge conditions.
- Perform both steps: (1) Recheck current plans against a stored objective and constraints; (2) put stable application constraints in the system instruction field.
- Perform both steps: (1) Specify the forbidden content alongside an enforceable validation check; (2) put stable application constraints in the system instruction field.
Explanation
Correct Answer
D:The first change enables the team 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; the second addresses the separate need to apply the same compliance restrictions across many different end-user requests because high-priority application instructions should not be delivered as ordinary user content where they compete with user questions and document text.
Incorrect Answers
A:The first step is appropriate for the requirement 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; the other step instead aims to teach a classifier how to label borderline requests consistently because diverse demonstrations make the intended decision boundary clearer than an isolated easy example, provided labels are accurate, which does not meet the second requirement to apply the same compliance restrictions across many different end-user requests.
B:Both steps target different results—identify when a long agent discussion begins solving a different problem than the user approved and teach a classifier how to label borderline requests consistently—because explicit objective comparison detects drift before tool actions diverge from the original task; extra history alone cannot guarantee alignment and diverse demonstrations make the intended decision boundary clearer than an isolated easy example, provided labels are accurate; the required capabilities are instead to avoid a prohibited output element such as confidential identifiers and to apply the same compliance restrictions across many different end-user requests.
C:The second step meets the requirement to apply the same compliance restrictions across many different end-user requests because high-priority application instructions should not be delivered as ordinary user content where they compete with user questions and document text; the first step would only help to identify when a long agent discussion begins solving a different problem than the user approved because explicit objective comparison detects drift before tool actions diverge from the original task; extra history alone cannot guarantee alignment, leaving the separate requirement to avoid a prohibited output element such as confidential identifiers unmet.
Question 214
For an operations research assistant, the missing capability is to reduce elapsed time for independent extraction tasks that do not share mutable state. What should the developers implement?
- Classify the request and dispatch to an appropriate specialized workflow.
- Run side-effect-free tool calls concurrently when their inputs are independent.
- Chain dependent operations serially with explicit input and output contracts.
- Run independent branches concurrently and merge their outputs afterward.
Explanation
Correct Answer
D:To reduce elapsed time for independent extraction tasks that do not share mutable state in this operations research assistant, parallel orchestration shortens the critical path when calls have no dependencies, while the merger checks completeness before proceeding; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to send distinct request types to specialized handlers while keeping the routing rule inspectable because routing separates distinct pathways without making the entire task autonomously planned; the classification decision must be observable and tested; that mechanism does not meet the different requirement to reduce elapsed time for independent extraction tasks that do not share mutable state.
B:The proposed alternative helps 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; that mechanism does not meet the different requirement to reduce elapsed time for independent extraction tasks that do not share mutable state.
C:The proposed alternative helps 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; that mechanism does not meet the different requirement to reduce elapsed time for independent extraction tasks that do not share mutable state.
Question 215
For a customer-facing AI feature, a design is acceptable only if it can trace exactly which prompt template was deployed with a code change while also being able to trust a callback only after verifying who actually sent it. Which paired implementation is sufficient?
- Perform both steps: (1) Version prompt files alongside relevant application code; (2) store team settings in the project's shared configuration file.
- Perform both steps: (1) Version prompt files alongside relevant application code; (2) authenticate incoming callbacks and validate their signatures where supported.
- Perform both steps: (1) Give mutating operations an application-level idempotency key; (2) store team settings in the project's shared configuration file.
- Perform both steps: (1) Give mutating operations an application-level idempotency key; (2) authenticate incoming callbacks and validate their signatures where supported.
Explanation
Correct Answer
B:The first change enables the team to trace exactly which prompt template was deployed with a code change because prompts change software behavior and should be reviewed and diffed like code, rather than edited anonymously in production; the second addresses the separate need to trust a callback only after verifying who actually sent it because network arrival alone does not prove a webhook's origin; authenticity checks prevent forged events from changing agent state.
Incorrect Answers
A:The first step is appropriate for the requirement to trace exactly which prompt template was deployed with a code change because prompts change software behavior and should be reviewed and diffed like code, rather than edited anonymously in production; the other step instead aims 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, which does not meet the second requirement to trust a callback only after verifying who actually sent it.
C:Both steps target different results—prevent duplicate purchases or tickets if an agent repeats a tool call and apply consistent reviewed tool permissions to an entire Claude Code repository team—because idempotency ensures replays of the same intended action do not create duplicate real-world effects even when orchestration retries and repository-level settings can be versioned and reviewed, unlike private preferences that vary across each developer's machine; the required capabilities are instead to trace exactly which prompt template was deployed with a code change and to trust a callback only after verifying who actually sent it.
D:The second step meets the requirement to trust a callback only after verifying who actually sent it because network arrival alone does not prove a webhook's origin; authenticity checks prevent forged events from changing agent state; the first step would only help 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, leaving the separate requirement to trace exactly which prompt template was deployed with a code change unmet.
Question 216
A team maintaining a production text classifier must meet 2 separate acceptance criteria: (1) maintain label semantics when a few-shot prompt contains dialogue; (2) handle a JSON parse failure without silently accepting partial data. Which two implementation actions directly satisfy the stated requirements? Choose TWO.
- State the task, audience, scope, and required deliverable explicitly.
- Have a scoped subagent process sources and return a concise verified handoff.
- Recheck current plans against a stored objective and constraints.
- Catch the parsing error and apply a bounded repair or retry path.
- Use properly labeled example inputs and outputs instead of mixing speakers.
Explanation
Correct Answers
D: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 maintain label semantics when a few-shot prompt contains dialogue.
E:The test to maintain label semantics when a few-shot prompt contains dialogue is met because correct role boundaries keep demonstrations interpretable and prevent an example answer from looking like a live instruction; the remaining selection covers the separate need to handle a JSON parse failure without silently accepting partial data.
Incorrect Answers
A: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 handle a JSON parse failure without silently accepting partial data and to maintain label semantics when a few-shot prompt contains dialogue.
B:The action is useful for the separate capability to analyze a large source set without exposing every raw document to the parent agent because separate contexts let specialists work deeply while the coordinator sees only claims and references needed for the final decision; however, the required test outcomes are to handle a JSON parse failure without silently accepting partial data and to maintain label semantics when a few-shot prompt contains dialogue.
C:The action is useful for the separate capability to identify when a long agent discussion begins solving a different problem than the user approved because explicit objective comparison detects drift before tool actions diverge from the original task; extra history alone cannot guarantee alignment; however, the required test outcomes are to handle a JSON parse failure without silently accepting partial data and to maintain label semantics when a few-shot prompt contains dialogue.
Question 217
To ship a latency-sensitive model gateway, the application must detect changed library behavior before rolling a new version into production and stop interpreting non-2xx API responses as normal assistant messages. Which pair of listed actions is necessary for those stated capabilities? Choose TWO.
- Branch on HTTP status and decode the provider's error structure.
- Keep HTTPS certificate and hostname verification enabled.
- Start with a clear instruction and no demonstrations.
- Run contract and integration tests against the upgraded SDK in staging.
- Include several carefully selected and diverse demonstrations.
Explanation
Correct Answers
A:To stop interpreting non-2xx API responses as normal assistant messages as part of a design that must also detect changed library behavior before rolling a new version into production, transport errors are not regular model completions, so application control flow must treat them separately; this is why the action is one of the two required selections.
D:To detect changed library behavior before rolling a new version into production as part of a design that must also stop interpreting non-2xx API responses as normal assistant messages, client-library version shifts can affect serialization or errors even without changes to business prompts, so they deserve release validation; this is why the action is one of the two required selections.
Incorrect Answers
B:This alternative serves the separate goal to protect model API traffic against an impersonated network endpoint because verified TLS authenticates the service and protects data in transit; disabling validation defeats a key transport security property; the required outcomes are instead to detect changed library behavior before rolling a new version into production and to stop interpreting non-2xx API responses as normal assistant messages.
C:This alternative serves the separate goal to run a straightforward well-specified classification without consuming examples because zero-shot prompting relies on direct task instructions and can save context when the task requires little format teaching; the required outcomes are instead to detect changed library behavior before rolling a new version into production and to stop interpreting non-2xx API responses as normal assistant messages.
E:This alternative serves the separate goal to reduce inconsistent labeling across nuanced examples because multiple examples communicate decision boundaries and desired formatting, although irrelevant or misleading demonstrations can bias the model; the required outcomes are instead to detect changed library behavior before rolling a new version into production and to stop interpreting non-2xx API responses as normal assistant messages.
Question 218
An architecture decision for a Claude integration debugging session must support identify why a request is rejected before any inference happens and distinguish an upstream throttling response from a malformed model answer. Which option gives a complete rather than partial solution?
- Perform both steps: (1) Compare versioned prompts and representative eval cases against model responses; (2) read the 400 error details and validate the request payload.
- Perform both steps: (1) Trace the API credential and access permissions for the 401 or 403 response; (2) read the 400 error details and validate the request payload.
- Perform both steps: (1) Compare versioned prompts and representative eval cases against model responses; (2) inspect the http 429 status and rate-limit metadata before retrying.
- Perform both steps: (1) Trace the API credential and access permissions for the 401 or 403 response; (2) inspect the http 429 status and rate-limit metadata before retrying.
Explanation
Correct Answer
D:The first change enables the team to identify why a request is rejected before any inference happens because unauthorized access fails at the transport or authorization boundary, not because Claude misunderstood the prompt; the second addresses the separate need to distinguish an upstream throttling response from a malformed model answer because a rate limit is a request-layer capacity problem; the response needs controlled pacing rather than a prompt rewrite.
Incorrect Answers
A:Both steps target different results—distinguish a syntactically valid but low-quality answer from a transport outage and find a request schema error instead of repeatedly changing the system prompt—because a successful HTTP call only proves the protocol worked; quality regressions require output-level evidence and controlled comparisons and an invalid API field or incompatible parameter cannot be fixed by natural-language instructions within the malformed request; the required capabilities are instead to identify why a request is rejected before any inference happens and to distinguish an upstream throttling response from a malformed model answer.
B:The first step is appropriate for the requirement to identify why a request is rejected before any inference happens because unauthorized access fails at the transport or authorization boundary, not because Claude misunderstood the prompt; the other step instead aims to find a request schema error instead of repeatedly changing the system prompt because an invalid API field or incompatible parameter cannot be fixed by natural-language instructions within the malformed request, which does not meet the second requirement to distinguish an upstream throttling response from a malformed model answer.
C:The second step meets the requirement to distinguish an upstream throttling response from a malformed model answer because a rate limit is a request-layer capacity problem; the response needs controlled pacing rather than a prompt rewrite; the first step would only help to distinguish a syntactically valid but low-quality answer from a transport outage because a successful HTTP call only proves the protocol worked; quality regressions require output-level evidence and controlled comparisons, leaving the separate requirement to identify why a request is rejected before any inference happens unmet.
Question 219
A design review for a tool-using incident triage agent asks for support to keep a failed tool from being mistaken for successful completion of an objective, together with a way to use a Claude platform-provided capability without operating a local handler. Select the two appropriate changes. Choose TWO.
- Apply limits for steps, elapsed time, and token or tool expenditure.
- Use the Claude Agent SDK for the agent's execution harness.
- Configure the appropriate Anthropic-executed server tool.
- Catch tool failures and report typed errors into the agent loop.
- Give an agent a bounded objective and a tool-selection loop.
Explanation
Correct Answers
C:To use a Claude platform-provided capability without operating a local handler as part of a design that must also keep a failed tool from being mistaken for successful completion of an objective, server tools execute on the provider side and have distinct authorization and runtime semantics from client tools the application dispatches; this is why the action is one of the two required selections.
D:To keep a failed tool from being mistaken for successful completion of an objective as part of a design that must also use a Claude platform-provided capability without operating a local handler, explicit failure messages let the model or controller choose recovery; swallowing exceptions makes later actions rely on results that never existed; this is why the action is one of the two required selections.
Incorrect Answers
A: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 keep a failed tool from being mistaken for successful completion of an objective and to use a Claude platform-provided capability without operating a local handler.
B:This alternative serves the separate goal to build a Claude-powered coding agent with an established runtime for tool orchestration because the SDK provides structured primitives for agent sessions and tool execution, reducing the custom loop infrastructure the application must maintain; the required outcomes are instead to keep a failed tool from being mistaken for successful completion of an objective and to use a Claude platform-provided capability without operating a local handler.
E: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 keep a failed tool from being mistaken for successful completion of an objective and to use a Claude platform-provided capability without operating a local handler.
Question 220
For a model-family migration plan, the missing capability is to teach a distinctive output format with one representative example. What should the developers implement?
- Provide one accurate input-output demonstration.
- Check each response block's type before extracting its fields.
- Tune sampling for lower variance while retaining output validation.
- Estimate cost from expected input and output tokens and current model rates.
Explanation
Correct Answer
A:To teach a distinctive output format with one representative example in this model-family migration plan, a single example illustrates structure and conventions, but it may not reveal how to handle difficult edge cases; the proposed implementation directly supplies that capability.
Incorrect Answers
B:The proposed alternative helps to prevent a tool_use block from being displayed as if it were natural-language text because typed response objects can contain several block families; assuming every block has a text field causes logic errors; that mechanism does not meet the different requirement to teach a distinctive output format with one representative example.
C:The proposed alternative helps to favor more consistent word choices in a constrained transformation task when supported because temperature influences token sampling; it cannot by itself guarantee truth, policy compliance, or reproducible structured output; that mechanism does not meet the different requirement to teach a distinctive output format with one representative example.
D:The proposed alternative helps to forecast spend for a batch of documents with different input sizes because workload cost depends on token mix, model choice, and any applicable discounts or caching rather than request count alone; that mechanism does not meet the different requirement to teach a distinctive output format with one representative example.