Site Reliability Engineer Interview Question

Explain the circuit breaker pattern, and tell me when it does more harm than good.

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

A circuit breaker tracks failures to a dependency, opens once a threshold is crossed so calls fail fast instead of piling up, then half opens to test recovery with a trickle of traffic. It protects thread pools and connection pools from exhaustion and stops cascading failure. It hurts when thresholds are too tight, when the fallback is worse than the error, or when every instance opens at once and the dependency never gets enough traffic to prove it recovered.

Why interviewers ask this

Interviewers use this to see whether you treat resilience patterns as tools with trade offs rather than as things you switch on. The strongest answers cover the half open state, per dependency isolation (a breaker for the whole service is useless), and the honest failure mode where a breaker turns a slow dependency into a hard outage for functionality that would have worked.

How to structure your answer

  • Describe the three states and what triggers each transition.
  • Say what resource the breaker is actually protecting.
  • Scope breakers per dependency and per endpoint, not per process.
  • Give a concrete case where opening the circuit was the wrong call.

Example answer

Spoken example, first person

Closed, open, half open. You count failures over a rolling window, and once you cross the threshold you open the circuit and fail immediately for a cool down period, then let a few probe requests through to see if the dependency is healthy again. The real point is protecting your own resources. If a downstream takes 30 seconds to time out, every worker thread ends up parked on it and your service dies of something that was not your fault. Where it goes wrong is scope and tuning. We had a breaker set at the service level rather than per dependency, so a flaky recommendations call opened the circuit for checkout too, which was a much bigger outage than the one we were preventing. The other trap is the half open trickle. If every replica opens simultaneously and probes rarely, the downstream sees almost no traffic and you stay dark far longer than the actual fault lasted.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • How would you choose the failure threshold and the reset timeout?
  • What is bulkheading, and how does it complement a circuit breaker?
  • What should the fallback path return when the circuit is open?

Related site reliability engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot