CS FundamentalsHardProduct-company system-design interview

A circuit breaker protecting calls to a slow service has three states. Which sequence is correct?

  1. A. Open (calls pass) → Closed (calls fail fast) → Half-open
  2. B. Closed → Half-open → Open, after which it never recovers
  3. C. Half-open → Closed → Open, cycling on a fixed timer
  4. D. Closed (calls pass) → Open after failures cross a threshold (calls fail fast) → Half-open after a timeout (a few trial calls) → Closed if they succeed

Correct answer: D. Closed (calls pass) → Open after failures cross a threshold (calls fail fast) → Half-open after a timeout (a few trial calls) → Closed if they succeed

Closed is normal; Open short-circuits calls to protect both sides; Half-open lets trial requests through, closing again on success or re-opening on failure.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic