Question 430
The Claude application case reports: An async stream is never closed after the user navigates away. Which TWO options form a suitable correction and a separate proof of effectiveness? (Select TWO.)
Explanation
Correct Answers
This corrective action targets An async stream is never closed after the user navigates away by applying: Use the SDK's supported synchronous or asynchronous operations with bounded concurrency, cancellation and complete error handling. It addresses: A blocked event loop and unawaited client calls can cause dropped responses or costly work after cancellation.
This evidence independently verifies the intervention for An async stream is never closed after the user navigates away: An integration test demonstrates concurrent calls within rate limits and proper disposal of client resources.
Incorrect Answers
Rest request authentication and version headers: Missing authentication or version negotiation causes rejected calls and may expose credentials during ad hoc troubleshooting. That mechanism alone cannot establish Sdk and rest async lifecycle for this question.
Sampling parameters and deterministic checks: Using temperature settings as a correctness guarantee can allow unsupported answers into automated business workflows. Here the decisive check is Sdk and rest async lifecycle, not that separate capability.
Sdk initialization and deployment-specific compatibility: Assuming every model and feature is portable between direct API, Bedrock, and Vertex can break deployments. The observed issue still requires Sdk and rest async lifecycle; the proposed alternative tests another control.