Site Reliability Engineer Interview Question

What is the difference between a liveness probe and a readiness probe, and how do people get them wrong?

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

Quick answer

A readiness probe controls whether a pod receives traffic; a liveness probe controls whether the kubelet restarts the container. The classic mistake is pointing liveness at a downstream dependency, so a slow database restarts every pod in a loop and turns a partial outage into a total one. Liveness should check only that the process is alive and not deadlocked. Use a startup probe for slow booting applications.

Why interviewers ask this

This is one of the highest value Kubernetes questions because the wrong configuration actively causes outages, and the failure mode is counterintuitive. The interviewer wants to hear that you understand liveness as a last resort for unrecoverable states, that readiness is the right place for dependency checks, and that probe timeouts and thresholds need to reflect real startup behavior.

How to structure your answer

  • State the mechanical difference: traffic routing versus container restart.
  • Name the dependency checking anti pattern and its blast radius.
  • Explain what liveness should actually check.
  • Add startup probes and sensible thresholds for slow starting apps.

Example answer

Spoken example, first person

Readiness decides whether the pod is in the service endpoints, liveness decides whether the kubelet kills and restarts the container. The failure I have actually seen is a team that made the liveness endpoint check the database. The database got slow, every pod failed liveness at roughly the same time, the whole deployment went into a restart loop, and now instead of degraded reads we had nothing at all, plus a thundering herd of cold connections when it came back. Liveness should be almost boring: can the process serve a trivial handler, is the event loop not wedged. Anything about dependencies belongs in readiness, because taking a pod out of rotation is reversible and cheap. The other thing I always check is timing. If the app takes 45 seconds to warm caches, either use a startup probe or set initialDelaySeconds and failureThreshold to match, otherwise you have built a machine that can never finish booting.

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

  • What happens to in flight requests when a readiness probe starts failing?
  • How would you configure probes for an app with a 90 second warm up?
  • When is it correct for liveness to fail on purpose?

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