Question 170
A team maintaining a multi-tool integration must meet 2 separate acceptance criteria: (1) let Claude distinguish a failed database lookup from an empty successful result; (2) make reference material available for clients to read as context. Which two implementation actions directly satisfy the stated requirements? Choose TWO.
- Return an explicit tool error indication and an informative safe message.
- Expose the material as an MCP resource with a stable identifier.
- Implement the approval in application workflow control rather than only in a Skill.
- Create a Skill containing the procedure and supporting instructions.
- Configure the supported tool_choice behavior for the request.
Explanation
Correct Answers
A:The test to let Claude distinguish a failed database lookup from an empty successful result is met because an error result preserves failure semantics, preventing the model from inventing a no-record finding for a call that never succeeded; the remaining selection covers the separate need to make reference material available for clients to read as context.
B:The test to make reference material available for clients to read as context is met because resources represent consumable data, contrasting with tools that invoke an operation or prompts that package reusable instructions; the remaining selection covers the separate need to let Claude distinguish a failed database lookup from an empty successful result.
Incorrect Answers
C:The action is useful for the separate capability to enforce a mandatory fixed approval step regardless of what instructions the model follows because skills can guide agent behavior, but deterministic policy gates must live in trusted code so they cannot be skipped by model interpretation; however, the required test outcomes are to let Claude distinguish a failed database lookup from an empty successful result and to make reference material available for clients to read as context.
D:The action is useful for the separate capability to make a repeatable multi-step code-review methodology available to an agent because a Skill teaches how to perform a task, whereas a tool is the executable capability that performs an external operation; however, the required test outcomes are to let Claude distinguish a failed database lookup from an empty successful result and to make reference material available for clients to read as context.
E:The action is useful for the separate capability 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; however, the required test outcomes are to let Claude distinguish a failed database lookup from an empty successful result and to make reference material available for clients to read as context.
Question 171
An architecture review of a hosted document-processing service asks how to state how much interruption a customer-facing AI feature can tolerate. Which action is the best fit?
- Define availability objectives with failure and recovery criteria.
- Commit lockfiles and control library upgrades.
- Maintain links between requirements, implementation changes, and verification cases.
- Document permitted processing regions and data-handling obligations before selecting a deployment.
Explanation
Correct Answer
A:To state how much interruption a customer-facing AI feature can tolerate in this hosted document-processing service, reliability requirements determine fallback, retries, health monitoring, and degraded behavior; they are distinct from the response's linguistic quality; the proposed implementation directly supplies that capability.
Incorrect Answers
B:The proposed alternative helps to ensure a rebuilt agent uses the same tested SDK dependency set because dependency pinning reduces environment drift; transitive SDK updates can change behavior even when prompt text is unchanged; that mechanism does not meet the different requirement to state how much interruption a customer-facing AI feature can tolerate.
C:The proposed alternative helps to ensure each production feature can be tied to an approved acceptance test because requirement traceability helps prevent a prompt or model update from silently changing behavior outside the agreed product scope; that mechanism does not meet the different requirement to state how much interruption a customer-facing AI feature can tolerate.
D:The proposed alternative helps 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; that mechanism does not meet the different requirement to state how much interruption a customer-facing AI feature can tolerate.
Question 172
For a specialist-agent orchestration service, the missing capability is to coordinate several specialized investigations and assemble one accountable final answer. What should the developers implement?
- Delegate source analysis to a subagent and return a concise result.
- Encode a deterministic workflow with explicit transitions between stages.
- Use a supervisor agent to delegate bounded tasks and synthesize results.
- Catch tool failures and report typed errors into the agent loop.
Explanation
Correct Answer
C:To coordinate several specialized investigations and assemble one accountable final answer in this specialist-agent orchestration service, a supervisor owns the overall objective and integrates subagent findings; each delegate should have a narrow mandate and return a constrained summary; the proposed implementation directly supplies that capability.
Incorrect Answers
A:The proposed alternative helps to keep a large source-reading task from crowding the coordinator's working context because isolated workspaces let a specialist process extensive material while the parent receives only task-relevant evidence instead of every intermediate token; that mechanism does not meet the different requirement to coordinate several specialized investigations and assemble one accountable final answer.
B:The proposed alternative helps to run the same retrieval, validation, and publishing stages in an approved order for every request because known control flow belongs in application code, allowing each stage to be tested and audited without asking a model to improvise the sequence; that mechanism does not meet the different requirement to coordinate several specialized investigations and assemble one accountable final answer.
D:The proposed alternative helps to keep a failed tool from being mistaken for successful completion of an objective because explicit failure messages let the model or controller choose recovery; swallowing exceptions makes later actions rely on results that never existed; that mechanism does not meet the different requirement to coordinate several specialized investigations and assemble one accountable final answer.
Question 173
A design review for a multi-tenant inference service asks for support to investigate user actions without leaking API keys into operational records, together with a way to reject a malicious instruction inserted into a web-search result rather than the user's direct request. Select the two appropriate changes. Choose TWO.
- Validate or moderate final content before release.
- Redact secrets and protect log access with retention controls.
- Isolate external search results and validate any resulting tool action independently.
- Remove or mask unnecessary personal information before model submission.
- Verify origin and integrity of sensitive external data where supported.
Explanation
Correct Answers
B:To investigate user actions without leaking API keys into operational records as part of a design that must also reject a malicious instruction inserted into a web-search result rather than the user's direct request, logs support accountability only when access and retention are restricted; copying all prompt content into logs creates another exposure surface; this is why the action is one of the two required selections.
C:To reject a malicious instruction inserted into a web-search result rather than the user's direct request as part of a design that must also investigate user actions without leaking API keys into operational records, indirect attacks exploit lower-trust retrieval surfaces, so trusting search snippets as operational directives crosses a security boundary; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal to prevent generated advice that violates the product's publication rules from being shown because output checks catch issues emerging during generation; they complement rather than replace input controls and tool restrictions; the required outcomes are instead to investigate user actions without leaking API keys into operational records and to reject a malicious instruction inserted into a web-search result rather than the user's direct request.
D:This alternative serves the separate goal 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; the required outcomes are instead to investigate user actions without leaking API keys into operational records and to reject a malicious instruction inserted into a web-search result rather than the user's direct request.
E:This alternative serves the separate goal 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; the required outcomes are instead to investigate user actions without leaking API keys into operational records and to reject a malicious instruction inserted into a web-search result rather than the user's direct request.
Question 174
A team maintaining a Python Claude API backend has two different engineering requirements: (1) preserve behavior while replacing a fragile parser in an AI integration, and (2) keep a stalled upstream model call from occupying application resources indefinitely. Which TWO independent changes directly meet them? Choose TWO.
- Set the appropriate application/json content type and serialize a valid payload.
- Give mutating operations an application-level idempotency key.
- Refactor in bounded steps under existing tests.
- Require peer review focused on API, security, and tool-side effects.
- Set realistic connection and response timeouts with an explicit failure path.
Explanation
Correct Answers
C:To preserve behavior while replacing a fragile parser in an AI integration as part of a design that must also keep a stalled upstream model call from occupying application resources indefinitely, small changes constrain regression scope; a wholesale rewrite makes it harder to isolate whether model or parsing behavior changed; this is why the action is one of the two required selections.
E:To keep a stalled upstream model call from occupying application resources indefinitely as part of a design that must also preserve behavior while replacing a fragile parser in an AI integration, timeout handling caps resource exposure, while logging distinguishes slow provider response from a model-level refusal; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal to have the server parse a JSON request body predictably because a JSON body requires both correct serialization and matching HTTP metadata; raw language-model text cannot replace a valid request object; the required outcomes are instead to preserve behavior while replacing a fragile parser in an AI integration and to keep a stalled upstream model call from occupying application resources indefinitely.
B:This alternative serves the separate goal 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; the required outcomes are instead to preserve behavior while replacing a fragile parser in an AI integration and to keep a stalled upstream model call from occupying application resources indefinitely.
D:This alternative serves the separate goal 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; the required outcomes are instead to preserve behavior while replacing a fragile parser in an AI integration and to keep a stalled upstream model call from occupying application resources indefinitely.
Question 175
The team responsible for an autonomous repository maintenance job needs to keep a large source-reading task from crowding the coordinator's working context. What is the most direct engineering change?
- Return a separate tool_result for every corresponding tool_use identifier.
- Compact prior progress into an accurate working summary.
- Encode a deterministic workflow with explicit transitions between stages.
- Delegate source analysis to a subagent and return a concise result.
Explanation
Correct Answer
D:To keep a large source-reading task from crowding the coordinator's working context in this autonomous repository maintenance job, isolated workspaces let a specialist process extensive material while the parent receives only task-relevant evidence instead of every intermediate token; the proposed implementation directly supplies that capability.
Incorrect Answers
A: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 keep a large source-reading task from crowding the coordinator's working context.
B:The proposed alternative helps 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; that mechanism does not meet the different requirement to keep a large source-reading task from crowding the coordinator's working context.
C:The proposed alternative helps to run the same retrieval, validation, and publishing stages in an approved order for every request because known control flow belongs in application code, allowing each stage to be tested and audited without asking a model to improvise the sequence; that mechanism does not meet the different requirement to keep a large source-reading task from crowding the coordinator's working context.
Question 176
An operational review of a token-consumption optimization sprint reports distinct failures: it cannot preserve arrays of typed content blocks when sending multimodal input, and it cannot process partial model output as it is delivered over a streaming connection. Which two repairs are required? Choose TWO.
- Iterate the SDK or HTTP event stream until its terminal event.
- Use a synchronous client with explicit timeout and error handling.
- Use a WebSocket protocol only when the target endpoint actually offers one.
- Record rate-limit status and relevant response headers alongside request metrics.
- Serialize the documented nested request shape rather than flattening it.
Explanation
Correct Answers
A:To process partial model output as it is delivered over a streaming connection as part of a design that must also preserve arrays of typed content blocks when sending multimodal input, streaming clients must handle both content deltas and final status rather than assuming the first chunk is the complete response; this is why the action is one of the two required selections.
E:To preserve arrays of typed content blocks when sending multimodal input as part of a design that must also process partial model output as it is delivered over a streaming connection, typed content and role fields carry protocol meaning that is lost if developers simply concatenate them into plain text; this is why the action is one of the two required selections.
Incorrect Answers
B:This alternative serves the separate goal to implement a low-volume command-line utility that handles one inference at a time because synchronous calls are simplest for strictly sequential work, where concurrency would add complexity without improving throughput; the required outcomes are instead to preserve arrays of typed content blocks when sending multimodal input and to process partial model output as it is delivered over a streaming connection.
C:This alternative serves the separate goal 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; the required outcomes are instead to preserve arrays of typed content blocks when sending multimodal input and to process partial model output as it is delivered over a streaming connection.
D:This alternative serves the separate goal to investigate inconsistent throughput during a traffic spike because quota-related measurements explain capacity failures that may otherwise look like randomly slow model inference; the required outcomes are instead to preserve arrays of typed content blocks when sending multimodal input and to process partial model output as it is delivered over a streaming connection.
Question 177
An architecture review of a business workflow that calls Claude asks how to identify which search services and internal systems are critical to the workflow. Which action is the best fit?
- List upstream systems with permissions, quotas, and failure behavior.
- Specify expected concurrency and enforce admission or queueing limits.
- Store team settings in the project's shared configuration file.
- Refactor in bounded steps under existing tests.
Explanation
Correct Answer
A:To identify which search services and internal systems are critical to the workflow in this business workflow that calls Claude, a dependency inventory exposes the operational and authorization constraints that a purely model-centered design misses; the proposed implementation directly supplies that capability.
Incorrect Answers
B:The proposed alternative helps to design for a documented burst of simultaneous requests without uncontrolled overload because capacity planning separates average traffic from peak demand and prevents upstream rate limits from becoming cascading application failures; that mechanism does not meet the different requirement to identify which search services and internal systems are critical to the workflow.
C:The proposed alternative helps to apply consistent reviewed tool permissions to an entire Claude Code repository team because repository-level settings can be versioned and reviewed, unlike private preferences that vary across each developer's machine; that mechanism does not meet the different requirement to identify which search services and internal systems are critical to the workflow.
D:The proposed alternative helps to preserve behavior while replacing a fragile parser in an AI integration because small changes constrain regression scope; a wholesale rewrite makes it harder to isolate whether model or parsing behavior changed; that mechanism does not meet the different requirement to identify which search services and internal systems are critical to the workflow.
Question 178
Two approval criteria are still open for an internal coding-assistant workflow: the team must coordinate explicit graph transitions among multiple model and tool nodes and stop two parallel branches from overwriting the same mutable record. Which two implementation actions satisfy them? Choose TWO.
- Retrieve only task-relevant memories into the active context.
- Use isolated branch state and a controlled reconciliation step.
- Enforce explicit completion checks and a maximum iteration budget.
- Choose a graph-based orchestration framework when state transitions justify it.
- Alternate model tool-use requests with tool results until completion.
Explanation
Correct Answers
B:To stop two parallel branches from overwriting the same mutable record as part of a design that must also coordinate explicit graph transitions among multiple model and tool nodes, explicit merge rules are required when outputs converge; concurrent mutation without arbitration causes nondeterministic results; this is why the action is one of the two required selections.
D:To coordinate explicit graph transitions among multiple model and tool nodes as part of a design that must also stop two parallel branches from overwriting the same mutable record, graph orchestration clarifies conditional edges and resumability; it adds complexity when a short linear function would suffice; this is why the action is one of the two required selections.
Incorrect Answers
A:This alternative serves the separate goal to stop old agent histories from burying the information needed for the current step because selective retrieval improves signal-to-noise and keeps token use bounded while retaining access to older information when required; the required outcomes are instead to coordinate explicit graph transitions among multiple model and tool nodes and to stop two parallel branches from overwriting the same mutable record.
C:This alternative serves the separate goal to stop iterative tool use when a success condition or resource budget is reached because bounded loops avoid unending tool calls and uncontrolled spend while making incomplete work visible instead of silently continuing; the required outcomes are instead to coordinate explicit graph transitions among multiple model and tool nodes and to stop two parallel branches from overwriting the same mutable record.
E:This alternative serves the separate goal to plan another step only after inspecting the result of a requested external operation because the loop returns observations to the model so subsequent decisions are informed by actual tool output rather than imagined execution; the required outcomes are instead to coordinate explicit graph transitions among multiple model and tool nodes and to stop two parallel branches from overwriting the same mutable record.
Question 179
In a long-context summarization workflow, testing reveals that the system cannot avoid treating fluent model wording as evidence that a claim is verified and cannot block a technically well-formed refund record with an unauthorized amount. Select the two targeted actions that close these gaps. Choose TWO.
- Instruct the application to request clarification for unresolved high-impact ambiguity.
- Apply domain-specific authorization and business rules after schema validation.
- Reserve an output budget while enforcing input-context limits.
- Ground consequential statements in retrieved evidence or external checks.
- Map or reject values not in the approved enumeration.
Explanation
Correct Answers
B:To block a technically well-formed refund record with an unauthorized amount as part of a design that must also avoid treating fluent model wording as evidence that a claim is verified, type correctness is not permission to act; amounts, account ownership, and policy limits need independent checks; this is why the action is one of the two required selections.
D:To avoid treating fluent model wording as evidence that a claim is verified as part of a design that must also block a technically well-formed refund record with an unauthorized amount, linguistic confidence is not a calibrated truth guarantee, so factual correctness requires independent support; this is why the action is one of the two required selections.
Incorrect Answers
A: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 treating fluent model wording as evidence that a claim is verified and to block a technically well-formed refund record with an unauthorized amount.
C:This alternative serves the separate goal 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 required outcomes are instead to avoid treating fluent model wording as evidence that a claim is verified and to block a technically well-formed refund record with an unauthorized amount.
E:This alternative serves the separate goal to prevent a generated status outside a database's accepted code set because controlled vocabularies need explicit allowed values; a plausible new status label can still break downstream contracts; the required outcomes are instead to avoid treating fluent model wording as evidence that a claim is verified and to block a technically well-formed refund record with an unauthorized amount.
Question 180
A team maintaining a safety-critical automation must meet 2 separate acceptance criteria: (1) require a person to approve an irreversible administrative change; (2) stop frontend users from receiving unrestricted backend tool credentials. Which two implementation actions directly satisfy the stated requirements? Choose TWO.
- Record authenticated approval events with actor, scope, and request correlation.
- Check resource-level authorization for every sensitive tool request.
- Record result metadata in a post-tool hook.
- Pause execution for explicit approval at the high-impact action boundary.
- Use a server-side workload identity or scoped service credential.
Explanation
Correct Answers
D:The test to require a person to approve an irreversible administrative change is met because human approval is a policy-enforced transition, not a note written in the model's plan or a message displayed afterward; the remaining selection covers the separate need to stop frontend users from receiving unrestricted backend tool credentials.
E: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 selection covers the separate need to require a person to approve an irreversible administrative change.
Incorrect Answers
A:The action is useful for the separate capability to demonstrate who approved a privileged tool action and when because an audit trail binds authorization to a specific action, making privilege use reviewable without treating model-generated text as proof of consent; however, the required test outcomes are to require a person to approve an irreversible administrative change and to stop frontend users from receiving unrestricted backend tool credentials.
B:The action is useful for the separate capability to stop an authenticated user from reading another tenant's records via a tool because proving identity does not grant access to every object; the backend must enforce tenant and resource permissions separately; however, the required test outcomes are to require a person to approve an irreversible administrative change and to stop frontend users from receiving unrestricted backend tool credentials.
C:The action is useful for the separate capability 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; however, the required test outcomes are to require a person to approve an irreversible administrative change and to stop frontend users from receiving unrestricted backend tool credentials.