Question 80An agent loop ignores stop reasons and continues dispatching after the model has completed its final answer. Which operational safeguard directly addresses the recurring risk? Version tool-type parsing and test mixed tool sequences before release. Write contract tests for all stop-reason branches and unknown future states. Review traces for repeated tool cycles and update termination policies using evidence. Add pagination and missing-data tests to tool adapters used by the Agent SDK. ExplanationCorrect Answer B:Write contract tests for all stop-reason branches and unknown future states. This maintains the fix beyond the immediate incident. The underlying issue is that the response stop state determines whether the client should execute tools, return output, or recover a truncated turn. The immediate corrective action remains: Branch on the returned stop reason and handle tool use, normal completion, and max-token termination separately. Other Answers A:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. Reducing this risk requires a practice to write contract tests for all stop-reason branches and unknown future states. C:A bounded agent harness prevents an open-ended planning loop from consuming resources without decision value. Reducing this risk requires a practice to write contract tests for all stop-reason branches and unknown future states. D:A successful tool call may return partial data; completeness must be established by application protocol handling. A more direct preventive measure is to write contract tests for all stop-reason branches and unknown future states.
Question 81A code-review agent receives a tool result larger than its remaining context window and blindly resends full logs each turn. What implementation decision best satisfies the stated constraints? Distinguish server tool result blocks from client tool-use requests and dispatch only the operations owned by the application. Implement a client-side dispatch handler that validates, executes, and returns the matching tool result to Claude. Return an explicit structured error result and let the agent correct inputs or escalate under a bounded retry rule. Summarize or filter tool results and enforce a bounded context budget before continuing the loop. ExplanationCorrect Answer D:Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. To confirm, feed a large synthetic build log and verify the agent retains the failure evidence while staying within limits. Other Answers A:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. A more relevant action is to summarize or filter tool results and enforce a bounded context budget before continuing the loop. B:A client tool schema describes a capability; the application's runtime performs its real side effects. This failure calls for a decision to summarize or filter tool results and enforce a bounded context budget before continuing the loop. C:Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. The required change instead is to summarize or filter tool results and enforce a bounded context budget before continuing the loop.
Question 82A code-review agent receives a tool result larger than its remaining context window and blindly resends full logs each turn. What happens technically at the boundary that needs correction? Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. Server tools execute in the provider environment; client tools require explicit developer execution and result messages. Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. A client tool schema describes a capability; the application's runtime performs its real side effects. ExplanationCorrect Answer C:Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. This is why the appropriate action is to summarize or filter tool results and enforce a bounded context budget before continuing the loop. The expected evidence is: Feed a large synthetic build log and verify the agent retains the failure evidence while staying within limits. Other Answers A:Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. By contrast, tool output consumes context tokens like user text; unbounded growth can displace essential instructions. B:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. By contrast, tool output consumes context tokens like user text; unbounded growth can displace essential instructions. D:A client tool schema describes a capability; the application's runtime performs its real side effects. In the stated system, tool output consumes context tokens like user text; unbounded growth can displace essential instructions.
Question 83A code-review agent receives a tool result larger than its remaining context window and blindly resends full logs each turn. Which finding would support a safe release decision? Exercise both tool types and verify no duplicate execution or missing continuation occurs. Trigger a test tool-use block and verify matching call ID, validated input, execution, and result context. Reject an invalid customer ID and verify the final response does not claim a successful update. Feed a large synthetic build log and verify the agent retains the failure evidence while staying within limits. ExplanationCorrect Answer D:Feed a large synthetic build log and verify the agent retains the failure evidence while staying within limits. This directly checks whether the proposed action occurred: Summarize or filter tool results and enforce a bounded context budget before continuing the loop. The relevant mechanism is: Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. Other Answers A:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. A more meaningful verification is to feed a large synthetic build log and verify the agent retains the failure evidence while staying within limits. B:A client tool schema describes a capability; the application's runtime performs its real side effects. The failure is checked more directly by a test to feed a large synthetic build log and verify the agent retains the failure evidence while staying within limits. C:Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. Proving this correction calls for a check to feed a large synthetic build log and verify the agent retains the failure evidence while staying within limits.
Question 84A code-review agent receives a tool result larger than its remaining context window and blindly resends full logs each turn. What should be added to the release checklist? Standardize error contracts, preserve correlation IDs, and alert on repeated validation failures. Version tool-type parsing and test mixed tool sequences before release. Keep dispatch routing and error handling in code rather than assuming the model executes declared tools. Apply per-tool result caps and redact secrets from any retained summary. ExplanationCorrect Answer D:Apply per-tool result caps and redact secrets from any retained summary. This maintains the fix beyond the immediate incident. The underlying issue is that tool output consumes context tokens like user text; unbounded growth can displace essential instructions. The immediate corrective action remains: Summarize or filter tool results and enforce a bounded context budget before continuing the loop. Other Answers A:Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. A more direct preventive measure is to apply per-tool result caps and redact secrets from any retained summary. B:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. The lasting safeguard is to apply per-tool result caps and redact secrets from any retained summary. C:A client tool schema describes a capability; the application's runtime performs its real side effects. Reducing this risk requires a practice to apply per-tool result caps and redact secrets from any retained summary.
Question 85An operations agent can invoke terminal commands but does not distinguish inspection commands from infrastructure changes. Which first engineering change most directly addresses the failure? Install deterministic pre-execution authorization or hook checks and demand human approval for signing tools. Partition tools into read-only and state-changing classes with separate permissions, dry runs, and approvals. Attach one trace ID across user session, model requests, tool calls, result validation, and final action. Distinguish server tool result blocks from client tool-use requests and dispatch only the operations owned by the application. ExplanationCorrect Answer B:Tool execution risk depends on the operation's actual effects, not just the model's intent. To confirm, simulate a deployment attempt without approval and verify no state mutation reaches the service. Other Answers A:Model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. A more relevant action is to partition tools into read-only and state-changing classes with separate permissions, dry runs, and approvals. C:End-to-end correlation reveals where a failure occurred without conflating model text with executed operations. The required change instead is to partition tools into read-only and state-changing classes with separate permissions, dry runs, and approvals. D:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. This failure calls for a decision to partition tools into read-only and state-changing classes with separate permissions, dry runs, and approvals.
Question 86An operations agent can invoke terminal commands but does not distinguish inspection commands from infrastructure changes. Which causal principle is most relevant to this case? End-to-end correlation reveals where a failure occurred without conflating model text with executed operations. Tool execution risk depends on the operation's actual effects, not just the model's intent. Server tools execute in the provider environment; client tools require explicit developer execution and result messages. Model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. ExplanationCorrect Answer B:Tool execution risk depends on the operation's actual effects, not just the model's intent. This is why the appropriate action is to partition tools into read-only and state-changing classes with separate permissions, dry runs, and approvals. The expected evidence is: Simulate a deployment attempt without approval and verify no state mutation reaches the service. Other Answers A:End-to-end correlation reveals where a failure occurred without conflating model text with executed operations. By contrast, tool execution risk depends on the operation's actual effects, not just the model's intent. C:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. By contrast, tool execution risk depends on the operation's actual effects, not just the model's intent. D:Model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. In the stated system, tool execution risk depends on the operation's actual effects, not just the model's intent.
Question 87An operations agent can invoke terminal commands but does not distinguish inspection commands from infrastructure changes. What should the reviewer verify before closing this problem? Submit an unsigned contract through the agent and verify signing is blocked until authorization arrives. Simulate a deployment attempt without approval and verify no state mutation reaches the service. Exercise both tool types and verify no duplicate execution or missing continuation occurs. Reconstruct a seeded multi-tool run from logs and verify each side effect has a traceable parent action. ExplanationCorrect Answer B:Simulate a deployment attempt without approval and verify no state mutation reaches the service. This directly checks whether the proposed action occurred: Partition tools into read-only and state-changing classes with separate permissions, dry runs, and approvals. The relevant mechanism is: Tool execution risk depends on the operation's actual effects, not just the model's intent. Other Answers A:Model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. A more meaningful verification is to simulate a deployment attempt without approval and verify no state mutation reaches the service. C:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. The failure is checked more directly by a test to simulate a deployment attempt without approval and verify no state mutation reaches the service. D:End-to-end correlation reveals where a failure occurred without conflating model text with executed operations. Proving this correction calls for a check to simulate a deployment attempt without approval and verify no state mutation reaches the service.
Question 88An operations agent can invoke terminal commands but does not distinguish inspection commands from infrastructure changes. Which change to development practice best prevents this defect returning? Instrument every agent lifecycle boundary with privacy-aware structured telemetry. Review security-critical hooks as code and test denial paths after every SDK upgrade. Maintain automated policy tests for each command class and least-privilege runtime credentials. Version tool-type parsing and test mixed tool sequences before release. ExplanationCorrect Answer C:Maintain automated policy tests for each command class and least-privilege runtime credentials. This maintains the fix beyond the immediate incident. The underlying issue is that tool execution risk depends on the operation's actual effects, not just the model's intent. The immediate corrective action remains: Partition tools into read-only and state-changing classes with separate permissions, dry runs, and approvals. Other Answers A:End-to-end correlation reveals where a failure occurred without conflating model text with executed operations. The lasting safeguard is to maintain automated policy tests for each command class and least-privilege runtime credentials. B:Model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. The stronger recurring control is to maintain automated policy tests for each command class and least-privilege runtime credentials. D:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. A more direct preventive measure is to maintain automated policy tests for each command class and least-privilege runtime credentials.
Question 89A customer analytics agent gets intermittent rate-limit errors and retries immediately, overwhelming the shared Claude API account. Which response addresses the reported defect most directly? Broker a scoped short-lived token at the tool service and keep credentials out of the prompt and trace. Implement bounded retry with exponential backoff, jitter, rate-limit awareness, and a request queue. Use an idempotency key and persisted action state at the business tool boundary before resuming the agent. Return an explicit structured error result and let the agent correct inputs or escalate under a bounded retry rule. ExplanationCorrect Answer B:Uncontrolled concurrent retries amplify throttling and cannot be solved solely by prompt changes. To confirm, simulate repeated 429 responses and inspect retry delay, queue depth, and eventual failure handling. Other Answers A:Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. The corrective action for this requirement is to implement bounded retry with exponential backoff, jitter, rate-limit awareness, and a request queue. C:Repeated language-model actions cannot establish exactly-once billing semantics without application-level deduplication. The required change instead is to implement bounded retry with exponential backoff, jitter, rate-limit awareness, and a request queue. D:Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. The corrective action for this requirement is to implement bounded retry with exponential backoff, jitter, rate-limit awareness, and a request queue.
Question 90A customer analytics agent gets intermittent rate-limit errors and retries immediately, overwhelming the shared Claude API account. Why would the appropriate approach resolve this particular problem? Uncontrolled concurrent retries amplify throttling and cannot be solved solely by prompt changes. Repeated language-model actions cannot establish exactly-once billing semantics without application-level deduplication. Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. ExplanationCorrect Answer A:Uncontrolled concurrent retries amplify throttling and cannot be solved solely by prompt changes. This is why the appropriate action is to implement bounded retry with exponential backoff, jitter, rate-limit awareness, and a request queue. The expected evidence is: Simulate repeated 429 responses and inspect retry delay, queue depth, and eventual failure handling. Other Answers B:Repeated language-model actions cannot establish exactly-once billing semantics without application-level deduplication. By contrast, uncontrolled concurrent retries amplify throttling and cannot be solved solely by prompt changes. C:Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. In the stated system, uncontrolled concurrent retries amplify throttling and cannot be solved solely by prompt changes. D:Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. In the stated system, uncontrolled concurrent retries amplify throttling and cannot be solved solely by prompt changes.