Question 230
Clearview Insurance reports that its Claude development team corrected this application problem: A backend assumes every successful HTTP response contains syntactically valid JSON and crashes on an unexpected response body. Which observation BEST verifies that the correction worked?
Explanation
Correct Answer
Mocked empty or malformed success bodies produce controlled errors instead of uncaught exceptions. This directly tests whether the stated problem—A backend assumes every successful HTTP response contains syntactically valid JSON and crashes on an unexpected response body—is resolved. The relevant corrective action was: Validate status and content type before defensive JSON parsing with explicit malformed-body handling. The observed outcome, not merely a completed ticket or model assertion, demonstrates success at Clearview Insurance.
Incorrect Answers
Dependency inventory and tests show only necessary packages while required functionality remains available. That result is relevant to a separate issue: A developer introduces a large AI orchestration dependency for one function call without evaluating maintenance or supply-chain risks, ordinarily addressed by Choose a lightweight direct SDK integration when sufficient, and review dependency support and security posture. It does not show the Clearview Insurance problem has been resolved. The decisive evidence would be: Mocked empty or malformed success bodies produce controlled errors instead of uncaught exceptions.
A fault-injection trace links the failing external request to the originating user session without revealing sensitive input. That result is relevant to a separate issue: A team cannot associate a user-visible error with the correct Claude SDK request because IDs are discarded between service layers, ordinarily addressed by Propagate a stable correlation ID across client, server, SDK and tool logs while avoiding secret payload logging. It does not show the Clearview Insurance problem has been resolved. The decisive evidence would be: Mocked empty or malformed success bodies produce controlled errors instead of uncaught exceptions.
Race-condition tests retain one coherent account state and independent reads still execute concurrently. That result is relevant to a separate issue: A migration changes async tool dispatch from sequential to parallel but forgets that two calls write to the same account record, ordinarily addressed by Preserve serialization or transactional coordination for conflicting writes while parallelizing only safe independent work. It does not show the Clearview Insurance problem has been resolved. The decisive evidence would be: Mocked empty or malformed success bodies produce controlled errors instead of uncaught exceptions.