Question 610
An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests. Which TWO complementary actions provide an appropriate solution and the evidence needed to verify it? Select TWO.
Explanation
Correct Answers
Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport. WebSocket is a general networking mechanism, not a guarantee that a specific model endpoint offers native WebSocket semantics. Verify the prerequisites with: Inspect desired interaction cadence, connection ownership, backpressure, gateway support and client error recovery. Situation: An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests.
Inspect desired interaction cadence, connection ownership, backpressure, gateway support and client error recovery. WebSocket is a general networking mechanism, not a guarantee that a specific model endpoint offers native WebSocket semantics. The appropriate response is: Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport. Situation: An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests.
Incorrect Answers
Inspect input token counts, prompt structure, tool-result sizes, max_tokens and truncation events. This step may apply to Token accounting and context capacity but is not one of the two required complementary decisions. The relevant pair is: Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport. and Inspect desired interaction cadence, connection ownership, backpressure, gateway support and client error recovery. Situation: An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests.
The selected prompt reaches accuracy thresholds without letting examples override policy constraints. This step may apply to Zero-shot versus few-shot task instructions but is not one of the two required complementary decisions. The relevant pair is: Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport. and Inspect desired interaction cadence, connection ownership, backpressure, gateway support and client error recovery. Situation: An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests.
Test language SDK features against supported model versions and provider deployments rather than assuming every helper is available everywhere. This step may apply to Client library and provider compatibility but is not one of the two required complementary decisions. The relevant pair is: Choose request-response or streaming HTTP for supported Claude calls and use WebSockets only where the surrounding application genuinely needs bidirectional transport. and Inspect desired interaction cadence, connection ownership, backpressure, gateway support and client error recovery. Situation: An application maintains a persistent browser socket for chat events but forwards each model call through supported HTTP API requests.

