All jobs / Backend developer / Deployment Basics

Backend developer interview question · 3–5 years

The interviewer asks: “Kubernetes sent SIGTERM. What does your process do?” Strongest answer?

The strongest answer

Fail readiness immediately, drain in-flight requests within the terminationGracePeriod, close the listener, then exit 0. I don't die mid-write and I don't ignore the signal.

Why it works

Exactly. That's graceful shutdown: stop new traffic, finish old, then go. Pair it with a ready probe that already flipped.

What a good answer covers

Answers that fall short

Who gets asked this

More Deployment Basics questions