HTTP Integration · interview question
A bug appears around timeouts and retries. What is the strongest first debugging move?
Multiple choiceMediumchapter-12-curatedpremiumhttp-integrationtimeouts-and-retries
def call_partner(client: httpx.Client) -> dict:
response = client.get("/orders", timeout=5.0)
response.raise_for_status()
return response.json()Answer and explanation
Correct answer
B. Trace one concrete example, inspect the state transitions, and compare them to the intended rule before rewriting anything.
Why
That approach is reliable because it creates evidence. Blind retries can amplify incidents, while missing timeouts can trap the whole workflow behind one slow dependency.
Test yourself on HTTP Integration
A free test with instant, explained results. No account needed.
More HTTP Integration questions
- Which explanation would best help the team align on pagination and rate limits?
- A bug appears around basic http clients. What is the strongest first debugging move?
- Which response shows the healthiest evidence-first mindset around json mapping?
- Which judgment is strongest when choosing a data shape for 429s and backoff?
- Which option treats basic http clients as an engineering policy decision instead of a syntax trick?
- What does a strong engineer do when reasoning through pagination and rate limits code?