All jobs / DevOps / SRE / cloud / Kubernetes
DevOps / SRE / cloud interview question · 0–1 years
A service’s health URL always returns 200 from the process start. What did you miss?
The strongest answer
Readiness: it should fail until it can take traffic (migrations, dependencies) — liveness is “should we restart,” not “should we send users”
Why it works
Exactly. Ready versus alive. A 200 from a booting process is how you 500 the users.
What a good answer covers
- Liveness ≠ readiness.
- Fail ready until you can serve.
- Do not 200 from a boot.
- Keep the check.
Answers that fall short
- Close, but not the strongest: Nothing; 200 means healthy
200 is a number you chose, not a fact. - Weak: Health checks are optional if we have metrics
Metrics do not take you out of the load balancer. - Red flag: I should remove the check so deploys are faster
Faster deploys that black-hole traffic are not faster.
Who gets asked this
More Kubernetes questions
- A candidate says “Kubernetes is Docker for production.” What is the cleaner sentence?
- Which Kubernetes object do you reach for: a stateless API, a database, a log agent on every node, and a…
- ConfigMap or Secret for a database password — and is a Secret encrypted?
- A pod is killed in a loop while it is still migrating. Which probe was wrong?
- Pods are Pending while nodes look empty in the console. What did you forget?
- You have five HTTP services. One Service of type LoadBalancer each, or an Ingress?
- What does Helm give you over applying raw YAML, and what does `helm rollback` not do?
- The pods are Running, but calls to the Service get connection refused. Walk me through the diagnosis.