All jobs / Backend developer / Deployment Basics
Backend developer interview question · 0–1 years
The interviewer asks: “Liveness versus readiness — what do you expose?” Strongest answer?
The strongest answer
Liveness: is this process up? Readiness: can it take traffic (database, critical deps)? A failing ready probe should stop new traffic, not necessarily kill the pod.
Why it works
Exactly. Kubernetes (and load balancers) use them differently: not-ready = drain; not-live = restart. Mixing them causes flapping or black holes.
What a good answer covers
- Live = process; ready = can take traffic.
- Fail ready to drain, not to suicide-loop.
- Keep ready checks cheap.
- Never lie 200 on health.
Answers that fall short
- Close, but not the strongest: One /health that returns 200 if the process is running.
A single “I'm a process” check can't tell the balancer to stop sending checkouts when the DB is gone. Split live and ready. - Weak: Health checks that hit every dependency on every request so I'm thorough.
A deep check on a 1s interval can DDoS your own database during an outage. Ready should be cheap and critical-path only. - Red flag: /health always returns 200 so the dashboard stays green.
A fake 200 is how you take traffic while dead. That's an outage amplifier, not uptime.
Who gets asked this
More Deployment Basics questions
- The interviewer asks: “A user says checkout failed at 16:02. How do you find it in logs?” Strongest answer?
- The interviewer asks: “How do you observe a production service?” Strongest answer?
- The interviewer asks: “A request touches four services. How do you see the whole path?” Strongest answer?
- The interviewer asks: “Kubernetes sent SIGTERM. What does your process do?” Strongest answer?
- The interviewer asks: “We want 99.9% availability. What does that change in the team?” Strongest answer?
- The interviewer asks: “Production is down. Who does what in the first fifteen minutes?” Strongest answer?
- The interviewer asks: “A new ranking feature is burning CPU in production. What do you want already built?”…
- The interviewer (as hiring manager) asks: “How do you interview for on-call readiness?” Strongest answer?