🐳 Section 14 · 24 questions
Docker Kubernetes
24 interview questions and answers in the Docker Kubernetes section.
Questions in this section
- What is Containerization and Why is It Needed
- What is the Difference Between Container and Virtual Machine
- What is Dockerfile
- What are the Main Instructions Used in Dockerfile
- What is the Difference Between CMD and ENTRYPOINT
- What is Multi-Stage Build
- What is Docker Compose
- What is Kubernetes and Why is It Needed
- What is Pod in Kubernetes
- What is Node in Kubernetes
- What is Service in Kubernetes
- What types of Service exist (ClusterIP, NodePort, LoadBalancer)
- What is ReplicaSet
- How does scaling work in Kubernetes
- What is HorizontalPodAutoscaler
- What is the difference between ConfigMap and Secret
- What is liveness probe
- What is readiness probe
- Why are health checks needed
- What is Ingress in Kubernetes
- What is namespace
- How to organize rolling update in Kubernetes
- What is StatefulSet and when to use it
- How to monitor applications in Kubernetes
Study navigator
24 essential questions and deep-dive architectural analyses for Junior 🟢, Middle 🟡, and Senior 🔴 Java & DevOps Engineers.
📋 Table of Contents
🗺️ Topic Dependency Map
┌──────────────────────────────────────────┐
│ DOCKER FOUNDATIONS (01-07) │
│ 01. Containerization Basics │
│ 02. Container vs. VM │
│ 03. Dockerfile Architecture │
│ 04. Dockerfile Instructions │
│ 05. CMD vs ENTRYPOINT │
│ 06. Multi-Stage Builds │
│ 07. Docker Compose │
└──────────────────┬───────────────────────┘
│
┌──────────────────────────┼──────────────────────────┐
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌────────────────────┐
│ K8s CORE │ │ K8s NETWORKING│ │ K8s SCALING & │
│ (08-10, 13) │ │ (11-12, 20) │ │ LIFECYCLE (14-15, │
│ 08. Overview │ │ 11. Service │ │ 22) │
│ 09. Pod │ │ 12. Svc Types │ │ 14. Scaling Model │
│ 10. Node │ │ 20. Ingress │ │ 15. HPA Autoscaling│
│ 13. ReplicaSet│ │ │ │ 22. Rolling Update │
└───────┬───────┘ └───────┬───────┘ └────────┬───────────┘
│ │ │
└────────────────────────┼────────────────────────┘
▼
┌──────────────────────────────────────────┐
│ CONFIG, HEALTH & SCOPE (16-19, 21) │
│ 16. ConfigMap vs Secret │
│ 17. Liveness Probe │
│ 18. Readiness Probe │
│ 19. Spring Boot Health Checks │
│ 21. Namespace Isolation │
└──────────────────────────────────────────┘
│
▼
┌──────────────────────────────────────────┐
│ STATEFUL & OBSERVABILITY (23-24) │
│ 23. StatefulSet & Persistent Volumes │
│ 24. Prometheus, Grafana, OpenTelemetry │
└──────────────────────────────────────────┘
🎯 Recommended Study Tracks
🟢 Junior Track (Core Containers & Basics)
- Step 1: Docker Basics — 01. What is Containerization and Why is It Needed, 02. What is the Difference Between Container and Virtual Machine, 03. What is Dockerfile
- Step 2: Container Building — 04. What are the Main Instructions Used in Dockerfile, 05. What is the Difference Between CMD and ENTRYPOINT, 07. What is Docker Compose
- Step 3: Kubernetes Basics — 08. What is Kubernetes and Why is It Needed, 09. What is Pod in Kubernetes, 10. What is Node in Kubernetes
🟡 Middle Track (Multi-Stage, Networking, Probes & Deployments)
- Step 1: Efficient Images — 06. What is Multi-Stage Build
- Step 2: Kubernetes Networking — 11. What is Service in Kubernetes, 12. What Types of Service Exist (ClusterIP, NodePort, LoadBalancer), 20. What is Ingress in Kubernetes
- Step 3: Workload Health & Config — 16. What is the Difference Between ConfigMap and Secret, 17. What is Liveness Probe, 18. What is Readiness Probe, 19. Why are Health Checks Needed
- Step 4: Rollouts & Workloads — 13. What is ReplicaSet, 21. What is Namespace, 22. How to Organize Rolling Update in Kubernetes
🔴 Senior Track (Autoscaling, Stateful Workloads & Observability)
- Step 1: Autoscaling Deep Dive — 14. How Does Scaling Work in Kubernetes, 15. What is HorizontalPodAutoscaler
- Step 2: Stateful Workloads & Databases — 23. What is StatefulSet and When to Use It
- Step 3: Observability Stack — 24. How to Monitor Applications in Kubernetes