Skip to content
Sharp

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
python
def call_partner(client: httpx.Client) -> dict:
    response = client.get("/orders", timeout=5.0)
    response.raise_for_status()
    return response.json()
Choose one answer
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.

Start free test
All HTTP Integration questions →