Claude Certified Architect, Foundations · Test 7 · question 10 of 10
Context Management & Reliabilitymedium
A report-generation service calls the Messages API without streaming and sets a very large max_tokens so Claude can write a long document. Requests intermittently fail or time out behind a corporate network that drops idle connections, and the SDK warns about the expected duration. The user is waiting in the UI for the finished document, so the work cannot be deferred. What is the best fix?