Loading…
Images, networking, Compose, pods, services, operators
Containers and orchestration are two of the most-asked DevOps topics in senior interviews. Drill Docker image layers, multi-stage builds, networking and volumes; Kubernetes pods, services, ingress, stateful sets, rolling updates, HPA; and the scenario questions interviewers actually ask — image size, secret handling, zero-downtime deploys, probe tuning.
How to use this hub
2 modules cover docker & kubernetes end-to-end. Open the first module, use Open question 1 on its landing page, and use Next at the bottom of each answer to stay in order.
Revision sheet
~12 min · 5 sections · save as PDF
Docker interview questions cover the container runtime every backend engineer is expected to know — image layers and caching, Dockerfile best practices, multi-stage builds, the difference between ENTRYPOINT and CMD, networking modes, volumes and bind mounts, image security (non-root, distroless), and the Spring Boot-specific patterns (layered jars, jib). For orchestration, see the Kubernetes page.
Docker = process isolation via Linux namespaces + cgroups.
The interview surface for this module breaks into these focus areas:
"I'd build a multi-stage Dockerfile, base on distroless, run as non-root, declare a `HEALTHCHECK`, leverage Spring Boot layered jars for cache hits, and pin the digest in production manifests."
Revision sheet
~12 min · 5 sections · save as PDF
Kubernetes interview questions are now standard for any senior Java backend role — pods, deployments, services, ingress, ConfigMaps and Secrets, HPA and resource requests/limits, StatefulSets and persistent volumes, rolling updates and rollback, network policies, RBAC, and the production-debugging questions interviewers ask ("a pod is in CrashLoopBackOff — walk me through your debug"). Pair this page with the Docker, CI/CD and Cloud-Native pages for the full container-platform interview surface.
K8s = control loops over a desired-state spec.
The interview surface for this module breaks into these focus areas:
kubectl describe for events, logs --previous for the prior crash."I'd deploy stateless apps as a Deployment with readiness + liveness probes, set realistic requests/limits, expose via Service + Ingress, manage config in ConfigMap / Secrets, and scale with HPA on a metric that tracks user-perceived load."