Question 100A managed-agent sandbox must access a customer API, but engineers propose embedding a production administrator token in the prompt. Which recurring verification should remain in place after repair? Instrument every agent lifecycle boundary with privacy-aware structured telemetry. Use dedicated service identities with expiration, revocation, and per-tenant authorization. Track side-effect IDs separately from conversation turns and reconcile uncertain outcomes before retry. Document the runner trust model and rotate per-job credentials on termination. ExplanationCorrect Answer B:Use dedicated service identities with expiration, revocation, and per-tenant authorization. This maintains the fix beyond the immediate incident. The underlying issue is that agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. The immediate corrective action remains: Broker a scoped short-lived token at the tool service and keep credentials out of the prompt and trace. Other Answers A:End-to-end correlation reveals where a failure occurred without conflating model text with executed operations. A more direct preventive measure is to use dedicated service identities with expiration, revocation, and per-tenant authorization. C:Repeated language-model actions cannot establish exactly-once billing semantics without application-level deduplication. A more direct preventive measure is to use dedicated service identities with expiration, revocation, and per-tenant authorization. D:The deployment boundary controls filesystem, process, and credential exposure independently of prompt quality. A more direct preventive measure is to use dedicated service identities with expiration, revocation, and per-tenant authorization.
Question 101A workflow mixes server-executed tools and local client tools, but its handler waits to execute server results that do not require client dispatch. What action would correct this specific behavior? Distinguish server tool result blocks from client tool-use requests and dispatch only the operations owned by the application. Execute every provider-reported server tool call again in the local process before continuing. Partition tools into read-only and state-changing classes with separate permissions, dry runs, and approvals. Branch on the returned stop reason and handle tool use, normal completion, and max-token termination separately. ExplanationCorrect Answer A:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. To confirm, exercise both tool types and verify no duplicate execution or missing continuation occurs. Other Answers B:Execute every provider-reported server tool call again in the local process before continuing. Server tools have already run on the provider side, so repeating them locally risks duplicates and protocol mistakes. C:Tool execution risk depends on the operation's actual effects, not just the model's intent. A more relevant action is to distinguish server tool result blocks from client tool-use requests and dispatch only the operations owned by the application. D:The response stop state determines whether the client should execute tools, return output, or recover a truncated turn. This failure calls for a decision to distinguish server tool result blocks from client tool-use requests and dispatch only the operations owned by the application.
Question 102A workflow mixes server-executed tools and local client tools, but its handler waits to execute server results that do not require client dispatch. Which technical mechanism explains why the intended correction works? Tool execution risk depends on the operation's actual effects, not just the model's intent. The response stop state determines whether the client should execute tools, return output, or recover a truncated turn. Server tools execute in the provider environment; client tools require explicit developer execution and result messages. A client tool schema describes a capability; the application's runtime performs its real side effects. ExplanationCorrect Answer C:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. This is why the appropriate action is to distinguish server tool result blocks from client tool-use requests and dispatch only the operations owned by the application. The expected evidence is: Exercise both tool types and verify no duplicate execution or missing continuation occurs. Other Answers A:Tool execution risk depends on the operation's actual effects, not just the model's intent. By contrast, server tools execute in the provider environment; client tools require explicit developer execution and result messages. B:The response stop state determines whether the client should execute tools, return output, or recover a truncated turn. In the stated system, server tools execute in the provider environment; client tools require explicit developer execution and result messages. D:A client tool schema describes a capability; the application's runtime performs its real side effects. In the stated system, server tools execute in the provider environment; client tools require explicit developer execution and result messages.
Question 103A workflow mixes server-executed tools and local client tools, but its handler waits to execute server results that do not require client dispatch. How should the implementation be tested against this failure? Simulate a deployment attempt without approval and verify no state mutation reaches the service. Trigger a test tool-use block and verify matching call ID, validated input, execution, and result context. Test normal, tool-use, and truncated responses and verify the correct control path for each. Exercise both tool types and verify no duplicate execution or missing continuation occurs. ExplanationCorrect Answer D:Exercise both tool types and verify no duplicate execution or missing continuation occurs. This directly checks whether the proposed action occurred: Distinguish server tool result blocks from client tool-use requests and dispatch only the operations owned by the application. The relevant mechanism is: Server tools execute in the provider environment; client tools require explicit developer execution and result messages. Other Answers A:Tool execution risk depends on the operation's actual effects, not just the model's intent. Proving this correction calls for a check to exercise both tool types and verify no duplicate execution or missing continuation occurs. 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 exercise both tool types and verify no duplicate execution or missing continuation occurs. C:The response stop state determines whether the client should execute tools, return output, or recover a truncated turn. The relevant acceptance check is to exercise both tool types and verify no duplicate execution or missing continuation occurs.
Question 104A workflow mixes server-executed tools and local client tools, but its handler waits to execute server results that do not require client dispatch. What durable design rule should be enforced? Version tool-type parsing and test mixed tool sequences before release. Maintain automated policy tests for each command class and least-privilege runtime credentials. Write contract tests for all stop-reason branches and unknown future states. Keep dispatch routing and error handling in code rather than assuming the model executes declared tools. ExplanationCorrect Answer A:Version tool-type parsing and test mixed tool sequences before release. This maintains the fix beyond the immediate incident. The underlying issue is that server tools execute in the provider environment; client tools require explicit developer execution and result messages. The immediate corrective action remains: Distinguish server tool result blocks from client tool-use requests and dispatch only the operations owned by the application. Other Answers B:Tool execution risk depends on the operation's actual effects, not just the model's intent. The lasting safeguard is to version tool-type parsing and test mixed tool sequences before release. C:The response stop state determines whether the client should execute tools, return output, or recover a truncated turn. Reducing this risk requires a practice to version tool-type parsing and test mixed tool sequences before release. D:A client tool schema describes a capability; the application's runtime performs its real side effects. A more direct preventive measure is to version tool-type parsing and test mixed tool sequences before release.
Question 105A support assistant's tool invocation returns a business validation error, but its loop feeds a fabricated success message back to Claude. What is the most defensible fix under these conditions? 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. Adopt the supported Agent SDK loop and focus custom code on validation, business permissions, and result handling. Summarize or filter tool results and enforce a bounded context budget before continuing the loop. ExplanationCorrect Answer B:Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. To confirm, reject an invalid customer ID and verify the final response does not claim a successful update. Other Answers A:A client tool schema describes a capability; the application's runtime performs its real side effects. A more relevant action is to return an explicit structured error result and let the agent correct inputs or escalate under a bounded retry rule. C:Standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. This failure calls for a decision to return an explicit structured error result and let the agent correct inputs or escalate under a bounded retry rule. D:Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. The required change instead is to return an explicit structured error result and let the agent correct inputs or escalate under a bounded retry rule.
Question 106A support assistant's tool invocation returns a business validation error, but its loop feeds a fabricated success message back to Claude. Which engineering principle most directly fits these observations? Standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. A client tool schema describes a capability; the application's runtime performs its real side effects. ExplanationCorrect Answer C:Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. This is why the appropriate action is to return an explicit structured error result and let the agent correct inputs or escalate under a bounded retry rule. The expected evidence is: Reject an invalid customer ID and verify the final response does not claim a successful update. Other Answers A:Standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. By contrast, tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. B:Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. In the stated system, tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. D:A client tool schema describes a capability; the application's runtime performs its real side effects. In the stated system, tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state.
Question 107A support assistant's tool invocation returns a business validation error, but its loop feeds a fabricated success message back to Claude. Which evidence distinguishes success from an unverified claim? Run multi-tool integration tests verifying correct tool result matching, session replay, and interruption handling. Trigger a test tool-use block and verify matching call ID, validated input, execution, and result context. Feed a large synthetic build log and verify the agent retains the failure evidence while staying within limits. Reject an invalid customer ID and verify the final response does not claim a successful update. ExplanationCorrect Answer D:Reject an invalid customer ID and verify the final response does not claim a successful update. This directly checks whether the proposed action occurred: Return an explicit structured error result and let the agent correct inputs or escalate under a bounded retry rule. The relevant mechanism is: Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. Other Answers A:Standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. A more meaningful verification is to reject an invalid customer ID and verify the final response does not claim a successful update. 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 reject an invalid customer ID and verify the final response does not claim a successful update. C:Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. The relevant acceptance check is to reject an invalid customer ID and verify the final response does not claim a successful update.
Question 108A support assistant's tool invocation returns a business validation error, but its loop feeds a fabricated success message back to Claude. Which preventive measure best fits this case? Keep an interoperability test suite for SDK upgrades and supported tool event types. Apply per-tool result caps and redact secrets from any retained summary. Keep dispatch routing and error handling in code rather than assuming the model executes declared tools. Standardize error contracts, preserve correlation IDs, and alert on repeated validation failures. ExplanationCorrect Answer D:Standardize error contracts, preserve correlation IDs, and alert on repeated validation failures. This maintains the fix beyond the immediate incident. The underlying issue is that tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. The immediate corrective action remains: Return an explicit structured error result and let the agent correct inputs or escalate under a bounded retry rule. Other Answers A:Standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. The lasting safeguard is to standardize error contracts, preserve correlation IDs, and alert on repeated validation failures. B:Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. The stronger recurring control is to standardize error contracts, preserve correlation IDs, and alert on repeated validation failures. C:A client tool schema describes a capability; the application's runtime performs its real side effects. Reducing this risk requires a practice to standardize error contracts, preserve correlation IDs, and alert on repeated validation failures.
Question 109An internal agent is promoted to production without any trace correlation between user request, model turns, and tool executions. Which change should the team prioritize for this problem? Summarize or filter tool results and enforce a bounded context budget before continuing the loop. 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. Broker a scoped short-lived token at the tool service and keep credentials out of the prompt and trace. ExplanationCorrect Answer B:End-to-end correlation reveals where a failure occurred without conflating model text with executed operations. To confirm, reconstruct a seeded multi-tool run from logs and verify each side effect has a traceable parent action. Other Answers A:Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. The required change instead is to attach one trace ID across user session, model requests, tool calls, result validation, and final action. C:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. This failure calls for a decision to attach one trace ID across user session, model requests, tool calls, result validation, and final action. D:Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. The corrective action for this requirement is to attach one trace ID across user session, model requests, tool calls, result validation, and final action.
Question 110An internal agent is promoted to production without any trace correlation between user request, model turns, and tool executions. Why is the recommended intervention appropriate here? Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. End-to-end correlation reveals where a failure occurred without conflating model text with executed operations. Server tools execute in the provider environment; client tools require explicit developer execution and result messages. ExplanationCorrect Answer C:End-to-end correlation reveals where a failure occurred without conflating model text with executed operations. This is why the appropriate action is to attach one trace ID across user session, model requests, tool calls, result validation, and final action. The expected evidence is: Reconstruct a seeded multi-tool run from logs and verify each side effect has a traceable parent action. Other Answers A:Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. By contrast, end-to-end correlation reveals where a failure occurred without conflating model text with executed operations. B:Tool output consumes context tokens like user text; unbounded growth can displace essential instructions. In the stated system, end-to-end correlation reveals where a failure occurred without conflating model text with executed operations. D:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. By contrast, end-to-end correlation reveals where a failure occurred without conflating model text with executed operations.