🐳 Section 14 · 24 questions

Docker Kubernetes

24 interview questions and answers in the Docker Kubernetes section.

Questions in this section

  1. What is Containerization and Why is It Needed
  2. What is the Difference Between Container and Virtual Machine
  3. What is Dockerfile
  4. What are the Main Instructions Used in Dockerfile
  5. What is the Difference Between CMD and ENTRYPOINT
  6. What is Multi-Stage Build
  7. What is Docker Compose
  8. What is Kubernetes and Why is It Needed
  9. What is Pod in Kubernetes
  10. What is Node in Kubernetes
  11. What is Service in Kubernetes
  12. What types of Service exist (ClusterIP, NodePort, LoadBalancer)
  13. What is ReplicaSet
  14. How does scaling work in Kubernetes
  15. What is HorizontalPodAutoscaler
  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
  20. What is Ingress in Kubernetes
  21. What is namespace
  22. How to organize rolling update in Kubernetes
  23. What is StatefulSet and when to use it
  24. 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

# Question Difficulty
01 What is Containerization and Why is It Needed ⭐
02 What is the Difference Between Container and Virtual Machine ⭐
03 What is Dockerfile ⭐
04 What are the Main Instructions Used in Dockerfile ⭐⭐
05 What is the Difference Between CMD and ENTRYPOINT ⭐⭐
06 What is Multi-Stage Build ⭐⭐
07 What is Docker Compose ⭐
08 What is Kubernetes and Why is It Needed ⭐⭐
09 What is Pod in Kubernetes ⭐⭐
10 What is Node in Kubernetes ⭐⭐
11 What is Service in Kubernetes ⭐⭐
12 What Types of Service Exist (ClusterIP, NodePort, LoadBalancer) ⭐⭐
13 What is ReplicaSet ⭐⭐
14 How Does Scaling Work in Kubernetes ⭐⭐
15 What is HorizontalPodAutoscaler ⭐⭐⭐
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 ⭐⭐
20 What is Ingress in Kubernetes ⭐⭐
21 What is Namespace ⭐
22 How to Organize Rolling Update in Kubernetes ⭐⭐
23 What is StatefulSet and When to Use It ⭐⭐⭐
24 How to Monitor Applications in Kubernetes ⭐⭐

🗺️ 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 │
                    └──────────────────────────────────────────┘

🟢 Junior Track (Core Containers & Basics)

🟡 Middle Track (Multi-Stage, Networking, Probes & Deployments)

🔴 Senior Track (Autoscaling, Stateful Workloads & Observability)