Question 180
The Claude application case reports: A browser disconnects mid-stream and the backend records the draft as a complete answer. Select TWO: a safe corrective action and an independent acceptance test for this failure. (Select TWO.)
Explanation
Correct Answers
This corrective action targets A browser disconnects mid-stream and the backend records the draft as a complete answer by applying: Parse streaming event types and deltas safely, maintain correct ordering, and finish only after the message completion signal. It addresses: Naive text-chunk concatenation can truncate structured tool input, duplicate tokens, and misreport incomplete answers.
This evidence independently verifies the intervention for A browser disconnects mid-stream and the backend records the draft as a complete answer: A stream parser rebuilds the message and tool-use blocks correctly across split network frames and terminal events.
Incorrect Answers
Client-side tool use request and response contract: Parsing tool intent from prose or mismatching tool_use IDs produces incorrect actions and corrupt dialogue state. Here the decisive check is Streaming sse and incremental assembly, not that separate capability.
Images, documents and multimodal context: Treating every upload as raw text or attaching unauthorized documents can cause request rejection or data exposure. The observed issue still requires Streaming sse and incremental assembly; the proposed alternative tests another control.
Prompt caching batch api and thinking features: Blindly enabling expensive options or assuming they work identically across providers yields excess cost or incompatible requests. Without demonstrating Streaming sse and incremental assembly, that option does not satisfy the requested outcome.