Skip to content
Sharp

Reliability · interview question

A bug appears around failure policy. What is the strongest first debugging move?

Multiple choiceHardchapter-5-curatedpremiumreliabilityfailure-policy
python
def should_retry(status_code: int) -> bool:
    return status_code in {429, 502, 503, 504}
Choose one answer
Answer and explanation

Correct answer

D. 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. A one-size-fits-all failure policy either hides permanent errors or overloads already unstable systems.

Test yourself on Reliability

A free test with instant, explained results. No account needed.

Start free test
All Reliability questions →