All jobs / DevOps / SRE / cloud / Kubernetes
DevOps / SRE / cloud interview question · 3–5 years
A cluster has no NetworkPolicies. What do you install without boiling the ocean?
The strongest answer
A default-deny in namespaces that want it, then allow the paved paths (app → db, ingress → app) — I do not flip deny on the whole fleet on a Friday
Why it works
Exactly. Opt-in deny, pave the allows. Theatre allow-all and Friday-fleet-deny are two ways to fail.
What a good answer covers
- Default-deny where you can support it.
- Pave the allows.
- Do not Friday the fleet.
- Do not ship allow-all theatre.
Answers that fall short
- Close, but not the strongest: Deny-all on every namespace tonight
A fleet flip is an outage. - Weak: Allow-all policies so we can say we have policies
Allow-all is a sticker. - Red flag: I replace the CNI this sprint instead
A CNI rewrite is a different programme.
Who gets asked this
More Kubernetes questions
- You run one precious cluster that cannot be rebuilt. What is the programme?
- Thirty teams share a few clusters. Requests for cluster-admin “just to deploy” arrive weekly. How do you hand…
- A service’s health URL always returns 200 from the process start. What did you miss?
- 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?