Question 50
The Claude application case reports: A production service assumes an interactive terminal exists for approval prompts. Which TWO options form a suitable correction and a separate proof of effectiveness? (Select TWO.)
Explanation
Correct Answers
This corrective action targets A production service assumes an interactive terminal exists for approval prompts by applying: Configure the Claude Agent SDK with supported session, tool, permission, and runtime settings and test execution at the intended deployment boundary. It addresses: An SDK integration that assumes default filesystem or network permissions can fail silently or overreach the host.
This evidence independently verifies the intervention for A production service assumes an interactive terminal exists for approval prompts: A sandbox run completes approved tool calls while disallowed paths and network operations are rejected and logged.
Incorrect Answers
Hosted versus self-hosted agent deployment: Assuming managed execution removes responsibility for identity, tool authorization, and data handling creates unsafe deployments. That mechanism alone cannot establish Claude agent sdk session and tools for this question.
Custom agent harness and state persistence: A homemade loop with missing state or replay protection can reexecute chargeable or destructive tools. The observed issue still requires Claude agent sdk session and tools; the proposed alternative tests another control.
Deterministic workflow versus agent choice: Using unconstrained agent loops for a fixed compliance process adds unpredictable steps, cost, and audit gaps. Without demonstrating Claude agent sdk session and tools, that option does not satisfy the requested outcome.