Question 60An agent built with the Claude Agent SDK is restarted on each HTTP request and loses the intended multi-step task state. Which recurring verification should remain in place after repair? Instrument every agent lifecycle boundary with privacy-aware structured telemetry. Keep an interoperability test suite for SDK upgrades and supported tool event types. Implement per-tenant session expiration, encryption, and context-budget policies. Use dedicated service identities with expiration, revocation, and per-tenant authorization. ExplanationCorrect Answer C:Implement per-tenant session expiration, encryption, and context-budget policies. This maintains the fix beyond the immediate incident. The underlying issue is that sDK-managed loops still need explicit session lifecycle handling when application processes are stateless. The immediate corrective action remains: Persist a scoped session identity and restore only the approved conversation state between controlled execution steps. Other Answers A:End-to-end correlation reveals where a failure occurred without conflating model text with executed operations. The lasting safeguard is to implement per-tenant session expiration, encryption, and context-budget policies. B:Standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. A more direct preventive measure is to implement per-tenant session expiration, encryption, and context-budget policies. D:Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. Reducing this risk requires a practice to implement per-tenant session expiration, encryption, and context-budget policies.
Question 61A document signing agent attempts a write operation immediately after a model suggests it, bypassing the firm's mandatory approval gate. What action would correct this specific behavior? Set maximum tool turns, cost limits, completion criteria, and explicit fallback when confidence remains insufficient. Partition tools into read-only and state-changing classes with separate permissions, dry runs, and approvals. Distinguish server tool result blocks from client tool-use requests and dispatch only the operations owned by the application. Install deterministic pre-execution authorization or hook checks and demand human approval for signing tools. ExplanationCorrect Answer D:Model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. To confirm, submit an unsigned contract through the agent and verify signing is blocked until authorization arrives. Other Answers A:A bounded agent harness prevents an open-ended planning loop from consuming resources without decision value. A more relevant action is to install deterministic pre-execution authorization or hook checks and demand human approval for signing tools. B:Tool execution risk depends on the operation's actual effects, not just the model's intent. The required change instead is to install deterministic pre-execution authorization or hook checks and demand human approval for signing tools. C:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. A more relevant action is to install deterministic pre-execution authorization or hook checks and demand human approval for signing tools.
Question 62A document signing agent attempts a write operation immediately after a model suggests it, bypassing the firm's mandatory approval gate. 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. Server tools execute in the provider environment; client tools require explicit developer execution and result messages. A bounded agent harness prevents an open-ended planning loop from consuming resources without decision value. Model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. ExplanationCorrect Answer D:Model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. This is why the appropriate action is to install deterministic pre-execution authorization or hook checks and demand human approval for signing tools. The expected evidence is: Submit an unsigned contract through the agent and verify signing is blocked until authorization arrives. Other Answers A:Tool execution risk depends on the operation's actual effects, not just the model's intent. By contrast, model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. B:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. In the stated system, model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. C:A bounded agent harness prevents an open-ended planning loop from consuming resources without decision value. In the stated system, model instructions are advisory; executable hooks can enforce approval before a privileged tool runs.
Question 63A document signing agent attempts a write operation immediately after a model suggests it, bypassing the firm's mandatory approval gate. How should the implementation be tested against this failure? 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. Replay an ambiguous search and verify that the agent stops at the configured budget and reports uncertainty. Submit an unsigned contract through the agent and verify signing is blocked until authorization arrives. ExplanationCorrect Answer D:Submit an unsigned contract through the agent and verify signing is blocked until authorization arrives. This directly checks whether the proposed action occurred: Install deterministic pre-execution authorization or hook checks and demand human approval for signing tools. The relevant mechanism is: Model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. 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 submit an unsigned contract through the agent and verify signing is blocked until authorization arrives. B:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. A more meaningful verification is to submit an unsigned contract through the agent and verify signing is blocked until authorization arrives. C:A bounded agent harness prevents an open-ended planning loop from consuming resources without decision value. A more meaningful verification is to submit an unsigned contract through the agent and verify signing is blocked until authorization arrives.
Question 64A document signing agent attempts a write operation immediately after a model suggests it, bypassing the firm's mandatory approval gate. What durable design rule should be enforced? Maintain automated policy tests for each command class and least-privilege runtime credentials. Version tool-type parsing and test mixed tool sequences before release. Review security-critical hooks as code and test denial paths after every SDK upgrade. Review traces for repeated tool cycles and update termination policies using evidence. ExplanationCorrect Answer C:Review security-critical hooks as code and test denial paths after every SDK upgrade. This maintains the fix beyond the immediate incident. The underlying issue is that model instructions are advisory; executable hooks can enforce approval before a privileged tool runs. The immediate corrective action remains: Install deterministic pre-execution authorization or hook checks and demand human approval for signing tools. Other Answers A:Tool execution risk depends on the operation's actual effects, not just the model's intent. Reducing this risk requires a practice to review security-critical hooks as code and test denial paths after every SDK upgrade. B:Server tools execute in the provider environment; client tools require explicit developer execution and result messages. A more direct preventive measure is to review security-critical hooks as code and test denial paths after every SDK upgrade. D:A bounded agent harness prevents an open-ended planning loop from consuming resources without decision value. A more direct preventive measure is to review security-critical hooks as code and test denial paths after every SDK upgrade.
Question 65A batch-support agent uses a self-hosted runner with persistent credentials but the organization's policy requires sandbox-level isolation. What is the most defensible fix under these conditions? Broker a scoped short-lived token at the tool service and keep credentials out of the prompt and trace. Run tasks in an approved isolated execution environment with narrow ephemeral credentials and traceable network access. Persist a scoped session identity and restore only the approved conversation state between controlled execution steps. Use an idempotency key and persisted action state at the business tool boundary before resuming the agent. ExplanationCorrect Answer B:The deployment boundary controls filesystem, process, and credential exposure independently of prompt quality. To confirm, attempt cross-job file access and verify the sandbox and secret broker deny it. 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 run tasks in an approved isolated execution environment with narrow ephemeral credentials and traceable network access. C:SDK-managed loops still need explicit session lifecycle handling when application processes are stateless. The corrective action for this requirement is to run tasks in an approved isolated execution environment with narrow ephemeral credentials and traceable network access. D:Repeated language-model actions cannot establish exactly-once billing semantics without application-level deduplication. The required change instead is to run tasks in an approved isolated execution environment with narrow ephemeral credentials and traceable network access.
Question 66A batch-support agent uses a self-hosted runner with persistent credentials but the organization's policy requires sandbox-level isolation. Which engineering principle most directly fits these observations? Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. SDK-managed loops still need explicit session lifecycle handling when application processes are stateless. The deployment boundary controls filesystem, process, and credential exposure independently of prompt quality. Repeated language-model actions cannot establish exactly-once billing semantics without application-level deduplication. ExplanationCorrect Answer C:The deployment boundary controls filesystem, process, and credential exposure independently of prompt quality. This is why the appropriate action is to run tasks in an approved isolated execution environment with narrow ephemeral credentials and traceable network access. The expected evidence is: Attempt cross-job file access and verify the sandbox and secret broker deny it. Other Answers A:Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. By contrast, the deployment boundary controls filesystem, process, and credential exposure independently of prompt quality. B:SDK-managed loops still need explicit session lifecycle handling when application processes are stateless. By contrast, the deployment boundary controls filesystem, process, and credential exposure independently of prompt quality. D:Repeated language-model actions cannot establish exactly-once billing semantics without application-level deduplication. In the stated system, the deployment boundary controls filesystem, process, and credential exposure independently of prompt quality.
Question 67A batch-support agent uses a self-hosted runner with persistent credentials but the organization's policy requires sandbox-level isolation. Which evidence distinguishes success from an unverified claim? Resume a paused task and confirm context continuity without leaking the prior customer's history. Check a complete trace and captured network request for unauthorized token disclosure or excessive scope. Attempt cross-job file access and verify the sandbox and secret broker deny it. Inject a timeout after payment commit and verify replay yields the original transaction without a duplicate. ExplanationCorrect Answer C:Attempt cross-job file access and verify the sandbox and secret broker deny it. This directly checks whether the proposed action occurred: Run tasks in an approved isolated execution environment with narrow ephemeral credentials and traceable network access. The relevant mechanism is: The deployment boundary controls filesystem, process, and credential exposure independently of prompt quality. Other Answers A:SDK-managed loops still need explicit session lifecycle handling when application processes are stateless. The failure is checked more directly by a test to attempt cross-job file access and verify the sandbox and secret broker deny it. B:Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. The failure is checked more directly by a test to attempt cross-job file access and verify the sandbox and secret broker deny it. D:Repeated language-model actions cannot establish exactly-once billing semantics without application-level deduplication. A more meaningful verification is to attempt cross-job file access and verify the sandbox and secret broker deny it.
Question 68A batch-support agent uses a self-hosted runner with persistent credentials but the organization's policy requires sandbox-level isolation. Which preventive measure best fits this case? Track side-effect IDs separately from conversation turns and reconcile uncertain outcomes before retry. Implement per-tenant session expiration, encryption, and context-budget policies. Use dedicated service identities with expiration, revocation, and per-tenant authorization. Document the runner trust model and rotate per-job credentials on termination. ExplanationCorrect Answer D:Document the runner trust model and rotate per-job credentials on termination. This maintains the fix beyond the immediate incident. The underlying issue is that the deployment boundary controls filesystem, process, and credential exposure independently of prompt quality. The immediate corrective action remains: Run tasks in an approved isolated execution environment with narrow ephemeral credentials and traceable network access. Other Answers A:Repeated language-model actions cannot establish exactly-once billing semantics without application-level deduplication. The stronger recurring control is to document the runner trust model and rotate per-job credentials on termination. B:SDK-managed loops still need explicit session lifecycle handling when application processes are stateless. A more direct preventive measure is to document the runner trust model and rotate per-job credentials on termination. C:Agent deployment isolation does not authorize exposing broad reusable secrets to language-model context. A more direct preventive measure is to document the runner trust model and rotate per-job credentials on termination.
Question 69A developer reimplements the Claude Agent SDK scheduling and tool plumbing for a routine autonomous support flow and repeatedly mishandles tool IDs. Which change should the team prioritize for this problem? Adopt the supported Agent SDK loop and focus custom code on validation, business permissions, and result handling. 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. Persist a scoped session identity and restore only the approved conversation state between controlled execution steps. ExplanationCorrect Answer A:Standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. To confirm, run multi-tool integration tests verifying correct tool result matching, session replay, and interruption handling. Other Answers B:A client tool schema describes a capability; the application's runtime performs its real side effects. The required change instead is to adopt the supported Agent SDK loop and focus custom code on validation, business permissions, and result handling. C:Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. A more relevant action is to adopt the supported Agent SDK loop and focus custom code on validation, business permissions, and result handling. D:SDK-managed loops still need explicit session lifecycle handling when application processes are stateless. A more relevant action is to adopt the supported Agent SDK loop and focus custom code on validation, business permissions, and result handling.
Question 70A developer reimplements the Claude Agent SDK scheduling and tool plumbing for a routine autonomous support flow and repeatedly mishandles tool IDs. Why is the recommended intervention appropriate here? A client tool schema describes a capability; the application's runtime performs its real side effects. Standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. SDK-managed loops still need explicit session lifecycle handling when application processes are stateless. Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. ExplanationCorrect Answer B:Standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. This is why the appropriate action is to adopt the supported Agent SDK loop and focus custom code on validation, business permissions, and result handling. The expected evidence is: Run multi-tool integration tests verifying correct tool result matching, session replay, and interruption handling. Other Answers A:A client tool schema describes a capability; the application's runtime performs its real side effects. In the stated system, standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. C:SDK-managed loops still need explicit session lifecycle handling when application processes are stateless. In the stated system, standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary. D:Tool-result fidelity is essential: false success creates downstream decisions unsupported by actual system state. In the stated system, standard loop plumbing reduces accidental orchestration defects when specialized custom scheduling is unnecessary.