Containers and orchestration are now core infrastructure skills. This guide covers the Docker and Kubernetes questions that come up most in cloud and DevOps interviews.
Who should use this guide
Candidates for DevOps, SRE, or platform engineering roles where containerized deployments are standard.
Docker questions
1. What's the difference between an image and a container?
An image is a read-only template (filesystem + metadata). A container is a running instance of that image, with its own writable layer on top.
2. Why use multi-stage builds in a Dockerfile?
To keep the final image small, compile or build in one stage with all the build tools, then copy only the compiled artifact into a minimal final stage, leaving the build dependencies out of production.
Kubernetes questions
3. What's the difference between a Pod, a Deployment, and a Service?
| Resource | Role |
|---|---|
| Pod | Smallest deployable unit, one or more tightly coupled containers |
| Deployment | Manages a desired number of Pod replicas, handles rolling updates |
| Service | Stable network endpoint that load-balances traffic across matching Pods |
4. How does a rolling update work, and how do you roll back?
Kubernetes gradually replaces old Pods with new ones based on configured surge/unavailable limits. If
something goes wrong, kubectl rollout undo reverts to the previous ReplicaSet revision.
5. What are liveness and readiness probes for?
A liveness probe tells Kubernetes when to restart a stuck container. A readiness probe tells it when a container is actually ready to receive traffic, a Pod can be alive but not yet ready during startup.
Frequently Asked Questions
Do I need a Kubernetes certification (like CKA) to get hired?
It's not strictly required but can help pass resume screening, especially for candidates without direct production Kubernetes experience.
Is Kubernetes overkill for a small team or project?
Often yes, simpler orchestration (a single Docker Compose setup, or a managed container service) is a more practical fit until the team or traffic genuinely needs the flexibility Kubernetes provides.
Final preparation tips
Deploy a small multi-service app to a local Kubernetes cluster (minikube or kind) before the interview, hands-on debugging experience answers questions no amount of reading can replace.
