Question 110
A team maintaining a multimodal customer portal must meet 2 separate acceptance criteria: (1) avoid assuming a structured SDK response is a plain string; (2) prevent duplicate purchases or tickets if an agent repeats a tool call. Which two implementation actions directly satisfy the stated requirements? Choose TWO.
- Give mutating operations an application-level idempotency key.
- Add automated consumer-provider contract tests.
- Inspect response.content blocks and metadata through the SDK's typed representation.
- Track latency, failure rates, token use, and output-quality signals over time.
- Read the completed stream's usage and final message metadata.
Explanation
Correct Answers
A:The test to prevent duplicate purchases or tickets if an agent repeats a tool call is met because idempotency ensures replays of the same intended action do not create duplicate real-world effects even when orchestration retries; the remaining selection covers the separate need to avoid assuming a structured SDK response is a plain string.
C:The test to avoid assuming a structured SDK response is a plain string is met because the SDK exposes block types, stop reason, and usage separately; naïve string concatenation can lose tool requests or other content; the remaining selection covers the separate need to prevent duplicate purchases or tickets if an agent repeats a tool call.
Incorrect Answers
B:The action is useful for the separate capability to detect a changed tool response field before it breaks downstream code because schema contracts make integration changes visible and prevent a renamed field from silently corrupting later model context; however, the required test outcomes are to prevent duplicate purchases or tickets if an agent repeats a tool call and to avoid assuming a structured SDK response is a plain string.
D:The action is useful for the separate capability to detect rising inference errors after a feature reaches production because production health spans infrastructure and model behavior, so a healthy HTTP server alone does not prove the AI feature is functioning; however, the required test outcomes are to prevent duplicate purchases or tickets if an agent repeats a tool call and to avoid assuming a structured SDK response is a plain string.
E:The action is useful for the separate capability to account accurately for token consumption when a response is streamed because early text deltas do not necessarily carry authoritative final usage or stop information; accounting must wait for the appropriate terminal event; however, the required test outcomes are to prevent duplicate purchases or tickets if an agent repeats a tool call and to avoid assuming a structured SDK response is a plain string.
Question 111
An architecture review of an enterprise agent deployment asks how to stop an authenticated user from reading another tenant's records via a tool. Which action is the best fit?
- Check resource-level authorization for every sensitive tool request.
- Isolate external search results and validate any resulting tool action independently.
- Record result metadata in a post-tool hook.
- Revoke and rotate the affected credential and update dependent services.
Explanation
Correct Answer
A:To stop an authenticated user from reading another tenant's records via a tool in this enterprise agent deployment, proving identity does not grant access to every object; the backend must enforce tenant and resource permissions separately; the proposed implementation directly supplies that capability.
Incorrect Answers
B: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 stop an authenticated user from reading another tenant's records via a tool.
C:The proposed alternative helps 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; that mechanism does not meet the different requirement to stop an authenticated user from reading another tenant's records via a tool.
D: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 stop an authenticated user from reading another tenant's records via a tool.
Question 112
A team maintaining an API integration library must meet 2 separate acceptance criteria: (1) choose between writing raw REST requests and using an official client library; (2) reduce inconsistent labeling across nuanced examples. Which two implementation actions directly satisfy the stated requirements? Choose TWO.
- Keep HTTPS certificate and hostname verification enabled.
- Design for stochastic output and evaluate behavior over representative repeats.
- Include several carefully selected and diverse demonstrations.
- Use a WebSocket protocol only when the target endpoint actually offers one.
- Prefer a maintained SDK when its typed methods and retry behavior fit the integration.
Explanation
Correct Answers
C:The test to reduce inconsistent labeling across nuanced examples is met because multiple examples communicate decision boundaries and desired formatting, although irrelevant or misleading demonstrations can bias the model; the remaining selection covers the separate need to choose between writing raw REST requests and using an official client library.
E:The test to choose between writing raw REST requests and using an official client library is met because sDKs wrap the same underlying service API and can simplify serialization, error types, and streaming without removing protocol constraints; the remaining selection covers the separate need to reduce inconsistent labeling across nuanced examples.
Incorrect Answers
A:The action is useful for the separate capability 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; however, the required test outcomes are to reduce inconsistent labeling across nuanced examples and to choose between writing raw REST requests and using an official client library.
B:The action is useful for the separate capability to account for different plausible answers from the same input on repeated runs because sampling and model execution can produce variation; important correctness must be checked rather than assumed identical on every call; however, the required test outcomes are to reduce inconsistent labeling across nuanced examples and to choose between writing raw REST requests and using an official client library.
D:The action is useful for the separate capability to build bidirectional persistent event communication where the chosen platform supports it because webSockets can carry two-way events over a long-lived connection; they are not a drop-in replacement for every HTTP or SSE endpoint; however, the required test outcomes are to reduce inconsistent labeling across nuanced examples and to choose between writing raw REST requests and using an official client library.
Question 113
While planning a function-calling service, the product owner specifies that it must expose a diagnostic capability without allowing the model to modify records. Which solution fulfills the requirement?
- Define a descriptive tool name and validated input schema.
- Return an explicit tool error indication and an informative safe message.
- Describe each tool's purpose, required inputs, and limitations clearly.
- Implement a narrowly scoped read-only tool handler.
Explanation
Correct Answer
D:To expose a diagnostic capability without allowing the model to modify records in this function-calling service, a restricted read interface supports observation while preventing data mutation, unlike giving a diagnostic agent a general administrative API; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps 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; that mechanism does not meet the different requirement to expose a diagnostic capability without allowing the model to modify records.
B:The proposed alternative helps 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; that mechanism does not meet the different requirement to expose a diagnostic capability without allowing the model to modify records.
C:The proposed alternative helps to prevent two similarly named lookup tools from being confused because tool descriptions influence the model's selection, so overlapping or vague names make dispatch less reliable; that mechanism does not meet the different requirement to expose a diagnostic capability without allowing the model to modify records.
Question 114
A design review for a high-volume Messages API gateway asks for support to avoid a plugin update unexpectedly changing tools available to a coding agent, together with a way to apply consistent reviewed tool permissions to an entire Claude Code repository team. Select the two appropriate changes. Choose TWO.
- Track enabled plugins and their compatible versions as release dependencies.
- Track provider deprecation notices and test migration before the removal date.
- Store and retrieve message history by authenticated tenant and conversation ID.
- Send instructions using the request's top-level system field.
- Store team settings in the project's shared configuration file.
Explanation
Correct Answers
A:To avoid a plugin update unexpectedly changing tools available to a coding agent as part of a design that must also apply consistent reviewed tool permissions to an entire Claude Code repository team, plugin capability changes can affect tool names and permissions, so production configuration should be reproducible and reviewed; this is why the action is one of the two required selections.
E:To apply consistent reviewed tool permissions to an entire Claude Code repository team as part of a design that must also avoid a plugin update unexpectedly changing tools available to a coding agent, repository-level settings can be versioned and reviewed, unlike private preferences that vary across each developer's machine; this is why the action is one of the two required selections.
Incorrect Answers
B:This alternative serves the separate goal to avoid an outage when a pinned model version approaches retirement because lifecycle management treats model availability as a dependency and validates output regressions before switching production traffic; the required outcomes are instead to avoid a plugin update unexpectedly changing tools available to a coding agent and to apply consistent reviewed tool permissions to an entire Claude Code repository team.
C:This alternative serves the separate goal to prevent chat transcripts from different accounts entering the same Claude request because session hygiene requires server-enforced isolation; model instructions cannot repair a history assembled from the wrong user; the required outcomes are instead to avoid a plugin update unexpectedly changing tools available to a coding agent and to apply consistent reviewed tool permissions to an entire Claude Code repository team.
D:This alternative serves the separate goal to set consistent developer-controlled behavior separately from untrusted user text because the system field separates higher-priority application guidance from user-message content and should not be simulated by ordinary quoted text; the required outcomes are instead to avoid a plugin update unexpectedly changing tools available to a coding agent and to apply consistent reviewed tool permissions to an entire Claude Code repository team.
Question 115
For a structured output service, a design is acceptable only if it can leave space for a model to generate a complete answer after adding source documents while also being able to reduce the chance that critical instructions become buried in a huge prompt. Which paired implementation is sufficient?
- Perform both steps: (1) State explicit priority and conflict resolution for the task constraints; (2) minimize or redact sensitive fields before constructing context.
- Perform both steps: (1) Reserve an output budget while enforcing input-context limits; (2) place essential constraints prominently and structure large evidence clearly.
- Perform both steps: (1) Reserve an output budget while enforcing input-context limits; (2) minimize or redact sensitive fields before constructing context.
- Perform both steps: (1) State explicit priority and conflict resolution for the task constraints; (2) place essential constraints prominently and structure large evidence clearly.
Explanation
Correct Answer
B:The first change enables the team to leave space for a model to generate a complete answer after adding source documents because input instructions, history, and evidence share the overall model capacity with generation, so filling it entirely can truncate output; the second addresses the separate need to reduce the chance that critical instructions become buried in a huge prompt because ordering, headings, and explicit references help the model distinguish governing rules from supporting material in large requests.
Incorrect Answers
A:Both steps target different results—prioritize mandatory legal requirements over optional stylistic preferences and provide a document's necessary meaning without disclosing irrelevant personal identifiers—because without a priority rule, competing directives can create ambiguous outputs; hard requirements should guide how optional preferences are applied and data minimization reduces the sensitive information transmitted for inference while retaining the facts the task legitimately requires; the required capabilities are instead to leave space for a model to generate a complete answer after adding source documents and to reduce the chance that critical instructions become buried in a huge prompt.
C:The first step is appropriate for the requirement to leave space for a model to generate a complete answer after adding source documents because input instructions, history, and evidence share the overall model capacity with generation, so filling it entirely can truncate output; the other step instead aims to provide a document's necessary meaning without disclosing irrelevant personal identifiers because data minimization reduces the sensitive information transmitted for inference while retaining the facts the task legitimately requires, which does not meet the second requirement to reduce the chance that critical instructions become buried in a huge prompt.
D:The second step meets the requirement to reduce the chance that critical instructions become buried in a huge prompt because ordering, headings, and explicit references help the model distinguish governing rules from supporting material in large requests; the first step would only help 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, leaving the separate requirement to leave space for a model to generate a complete answer after adding source documents unmet.
Question 116
A test for an MCP integration server fails because it cannot reject a date or identifier that violates business constraints before a service call. Which change fixes the identified failure?
- Implement a narrowly scoped read-only tool handler.
- Use the MCP stdio transport with properly framed protocol messages.
- Expose the manual as an MCP resource rather than a tool.
- Validate model-supplied tool arguments against schema and domain rules.
Explanation
Correct Answer
D:To reject a date or identifier that violates business constraints before a service call in this MCP integration server, even syntactically correct generated inputs can violate account scope or allowed values, so execution must validate both levels; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps 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; that mechanism does not meet the different requirement to reject a date or identifier that violates business constraints before a service call.
B:The proposed alternative helps to launch a local MCP server as a subprocess managed by a compatible client because standard input and output suit local process integration, where protocol output must not be mixed with arbitrary logging noise; that mechanism does not meet the different requirement to reject a date or identifier that violates business constraints before a service call.
C:The proposed alternative helps to supply a read-only policy manual to an MCP client without giving it an action endpoint because a resource is contextual data; representing a passive document as an imperative function adds unnecessary execution semantics; that mechanism does not meet the different requirement to reject a date or identifier that violates business constraints before a service call.
Question 117
An end-to-end test for a multi-tenant support application checks whether it can verify that generated categorization meets a business-approved standard and translate a request for citation-backed answers into observable application behavior. Which plan should be approved to satisfy both checks?
- Perform both steps: (1) Convert quality expectations into labeled tests and failure thresholds; (2) set an end-to-end latency target and a measurement method.
- Perform both steps: (1) Convert quality expectations into labeled tests and failure thresholds; (2) define measurable answer-format and citation acceptance criteria.
- Perform both steps: (1) Document permitted processing regions and data-handling obligations before selecting a deployment; (2) set an end-to-end latency target and a measurement method.
- Perform both steps: (1) Document permitted processing regions and data-handling obligations before selecting a deployment; (2) define measurable answer-format and citation acceptance criteria.
Explanation
Correct Answer
B:The first change enables the team to verify that generated categorization meets a business-approved standard because acceptance is meaningful only with representative cases and explicit quality criteria; subjective demo approval cannot establish production fitness; the second addresses the separate need to translate a request for citation-backed answers into observable application behavior because a functional requirement specifies what the user must receive and how success is evaluated, not merely that the team will use a language model.
Incorrect Answers
A:The first step is appropriate for the requirement to verify that generated categorization meets a business-approved standard because acceptance is meaningful only with representative cases and explicit quality criteria; subjective demo approval cannot establish production fitness; the other step instead aims to turn a support desk's responsiveness expectation into an engineering objective because a latency target is a nonfunctional requirement; model choice, network overhead, tool calls, and rendering all affect whether the service meets it, which does not meet the second requirement to translate a request for citation-backed answers into observable application behavior.
C:Both steps target different results—keep sensitive case material within approved processing and retention boundaries and turn a support desk's responsiveness expectation into an engineering objective—because legal or organizational constraints must inform provider routing, logging, and retention rather than being added after data already flows and a latency target is a nonfunctional requirement; model choice, network overhead, tool calls, and rendering all affect whether the service meets it; the required capabilities are instead to verify that generated categorization meets a business-approved standard and to translate a request for citation-backed answers into observable application behavior.
D:The second step meets the requirement to translate a request for citation-backed answers into observable application behavior because a functional requirement specifies what the user must receive and how success is evaluated, not merely that the team will use a language model; the first step would only help to keep sensitive case material within approved processing and retention boundaries because legal or organizational constraints must inform provider routing, logging, and retention rather than being added after data already flows, leaving the separate requirement to verify that generated categorization meets a business-approved standard unmet.
Question 118
The technical owner of a model-family migration plan has to forecast spend for a batch of documents with different input sizes. A separate requirement is to identify why verbose generated reports cost more despite unchanged inputs. Which two-part remediation covers both?
- Perform both steps: (1) Estimate cost from expected input and output tokens and current model rates; (2) evaluate message batches instead of synchronous requests.
- Perform both steps: (1) Estimate cost from expected input and output tokens and current model rates; (2) track output tokens separately from input tokens.
- Perform both steps: (1) Measure input-token usage per request and track the prompt components; (2) evaluate message batches instead of synchronous requests.
- Perform both steps: (1) Measure input-token usage per request and track the prompt components; (2) track output tokens separately from input tokens.
Explanation
Correct Answer
B:The first change enables the team 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; the second addresses the separate need to identify why verbose generated reports cost more despite unchanged inputs because generation tokens are metered independently and can have different pricing, so response verbosity affects unit economics.
Incorrect Answers
A:The first step is appropriate for the requirement 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; the other step instead aims to cut cost for a nightly noninteractive summarization workload because asynchronous batches can offer discounted processing when the application can tolerate deferred completion and result collection, which does not meet the second requirement to identify why verbose generated reports cost more despite unchanged inputs.
C:Both steps target different results—explain a billing increase after lengthy system instructions are added and cut cost for a nightly noninteractive summarization workload—because repeated prefixes and conversation history consume billable input, so cost cannot be inferred from output length alone and asynchronous batches can offer discounted processing when the application can tolerate deferred completion and result collection; the required capabilities are instead to forecast spend for a batch of documents with different input sizes and to identify why verbose generated reports cost more despite unchanged inputs.
D:The second step meets the requirement to identify why verbose generated reports cost more despite unchanged inputs because generation tokens are metered independently and can have different pricing, so response verbosity affects unit economics; the first step would only help to explain a billing increase after lengthy system instructions are added because repeated prefixes and conversation history consume billable input, so cost cannot be inferred from output length alone, leaving the separate requirement to forecast spend for a batch of documents with different input sizes unmet.
Question 119
A team maintaining an autonomous repository maintenance job has two different engineering requirements: (1) handle several independent tool_use blocks in one assistant message, and (2) prevent a research assistant from unexpectedly making production changes. Which TWO independent changes directly meet them? Choose TWO.
- Compact prior progress into an accurate working summary.
- Prefer a simple API call over a general-purpose multi-agent framework.
- Apply limits for steps, elapsed time, and token or tool expenditure.
- Give the research subagent read-only tools and a narrow instruction contract.
- Return a separate tool_result for every corresponding tool_use identifier.
Explanation
Correct Answers
D:To prevent a research assistant from unexpectedly making production changes as part of a design that must also handle several independent tool_use blocks in one assistant message, capability isolation prevents a specialist from acting outside its delegated role even if it encounters persuasive untrusted instructions; this is why the action is one of the two required selections.
E:To handle several independent tool_use blocks in one assistant message as part of a design that must also prevent a research assistant from unexpectedly making production changes, parallel tool execution requires complete, correctly linked results; dropping one identifier leaves the model's outstanding request unresolved; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal to continue a long agent run after intermediate observations dominate the context because compaction preserves decisions and unresolved work while reducing token pressure; losing constraints in the summary can still cause errors; the required outcomes are instead to handle several independent tool_use blocks in one assistant message and to prevent a research assistant from unexpectedly making production changes.
B:This alternative serves the separate goal 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; the required outcomes are instead to handle several independent tool_use blocks in one assistant message and to prevent a research assistant from unexpectedly making production changes.
C: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 handle several independent tool_use blocks in one assistant message and to prevent a research assistant from unexpectedly making production changes.
Question 120
A team maintaining an internal agent-extension rollout has two different engineering requirements: (1) expose an MCP server to clients across a network boundary, and (2) offer users a reusable parameterized instruction template from an MCP server. Which TWO independent changes directly meet them? Choose TWO.
- Register a prompt template with its required arguments.
- Expose the manual as an MCP resource rather than a tool.
- Configure the supported tool_choice behavior for the request.
- Validate model-supplied tool arguments against schema and domain rules.
- Configure a supported remote HTTP transport with authentication and deployment controls.
Explanation
Correct Answers
A:To offer users a reusable parameterized instruction template from an MCP server as part of a design that must also expose an MCP server to clients across a network boundary, MCP prompts provide structured prompt content, but by themselves do not perform external business actions; this is why the action is one of the two required selections.
E:To expose an MCP server to clients across a network boundary as part of a design that must also offer users a reusable parameterized instruction template from an MCP server, remote connectivity needs network routing, identity, and authorization; a local stdio subprocess is not a remotely reachable service; this is why the action is one of the two required selections.
Incorrect Answers
B:This alternative serves the separate goal to supply a read-only policy manual to an MCP client without giving it an action endpoint because a resource is contextual data; representing a passive document as an imperative function adds unnecessary execution semantics; the required outcomes are instead to expose an MCP server to clients across a network boundary and to offer users a reusable parameterized instruction template from an MCP server.
C:This alternative serves the separate goal to require or restrict tool use for a specific turn when the API supports that control because tool-selection controls influence whether Claude may call tools, but cannot grant permissions to the underlying systems; the required outcomes are instead to expose an MCP server to clients across a network boundary and to offer users a reusable parameterized instruction template from an MCP server.
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 an MCP server to clients across a network boundary and to offer users a reusable parameterized instruction template from an MCP server.