InterviewTreedInterviewTreed
All learning paths

Data, Cloud & DevOps

Docker & Kubernetes

Prepare for Docker and Kubernetes interviews, covering containerization, images, networking, orchestration, deployments, scaling, security, monitoring, and production infrastructure.

Your learning roadmap

Explore the key concepts

Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.

Containerization fundamentals

Understand containerization and how containers package applications with their dependencies to provide consistent, portable, and isolated runtime environments.

Start learning

Virtual machines vs containers

Compare virtual machines and containers in terms of architecture, resource usage, isolation, startup time, portability, and application deployment.

Start learning

Docker architecture

Explore Docker architecture, including the Docker client, daemon, container runtime, images, containers, and registries.

Start learning

Docker Engine and Docker CLI

Understand Docker Engine components and use the Docker CLI to communicate with the daemon and manage images, containers, networks, and volumes.

Start learning

Docker images and containers

Learn how Docker images serve as application templates and how containers are created, started, stopped, inspected, and removed.

Start learning

Docker image layers

Understand Docker image layers, copy-on-write behavior, layer caching, and how Docker builds reusable image filesystems.

Start learning

Docker Hub and container registries

Store and distribute container images using Docker Hub and private registries, including image tagging, authentication, pushing, and pulling.

Start learning

Docker commands and lifecycle management

Use essential Docker commands to create, run, inspect, monitor, stop, restart, and remove containers and manage their lifecycle.

Start learning

Writing Dockerfiles

Create Dockerfiles using instructions such as FROM, RUN, COPY, WORKDIR, ENV, EXPOSE, and CMD to define repeatable container images.

Start learning

Docker build context

Understand Docker build context, how files are sent to the build process, and how .dockerignore controls which files are included.

Start learning

Docker image optimization

Reduce Docker image size and improve build efficiency using minimal base images, layer optimization, caching, and removal of unnecessary dependencies.

Start learning

Multi-stage Docker builds

Create multi-stage Docker builds to separate compilation and runtime environments and produce smaller, cleaner production images.

Start learning

Docker volumes and persistent storage

Persist container data using Docker volumes and understand volume creation, mounting, inspection, backup, and lifecycle management.

Start learning

Bind mounts and tmpfs mounts

Compare bind mounts and tmpfs mounts and learn how to share host files with containers or use temporary in-memory storage.

Start learning

Docker networking

Understand Docker networking and how containers communicate with one another, the host machine, and external networks.

Start learning

Bridge, host, and overlay networks

Compare Docker bridge, host, and overlay networks and understand their isolation, connectivity, and use in standalone and distributed deployments.

Start learning

Container-to-container communication

Configure container-to-container communication using Docker networks, service names, aliases, and exposed application ports.

Start learning

Docker Compose fundamentals

Use Docker Compose to define and run multi-container applications through declarative YAML configuration and coordinated service management.

Start learning

Docker Compose services and networks

Configure Docker Compose services, dependencies, networks, ports, volumes, and startup behavior for applications with multiple containers.

Start learning

Environment variables and configuration

Manage container application configuration using environment variables, Compose environment settings, configuration files, and environment-specific values.

Start learning

Docker secrets

Protect sensitive application values using Docker secrets and understand how credentials and other confidential configuration are made available to containers.

Start learning

Container health checks

Configure Docker health checks to determine container health, detect unresponsive applications, and support reliable container management.

Start learning

Container resource limits

Control container CPU and memory consumption using Docker resource constraints and understand resource reservations, limits, and monitoring.

Start learning

Docker logging and troubleshooting

Inspect container logs, diagnose startup and runtime failures, and troubleshoot networking, storage, image, and configuration issues.

Start learning

Docker security best practices

Secure Docker environments through non-root execution, trusted images, minimal privileges, image updates, network isolation, and secret protection.

Start learning

Container vulnerability scanning

Scan container images for known vulnerabilities in operating system packages and application dependencies and understand remediation workflows.

Start learning

Running ASP.NET Core applications in Docker

Running ASP.NET Core applications in Docker: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

Dockerizing Next.js and Node.js applications

Dockerizing Next.js and Node.js applications: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

Dockerizing database services

Run database services in Docker containers and configure persistent storage, initialization scripts, credentials, networking, and backup strategies.

Start learning

Container deployment strategies

Explore container deployment approaches across development, testing, and production environments, including image promotion, scaling, and rollout management.

Start learning

Kubernetes fundamentals

Understand Kubernetes as a container orchestration platform and learn its core concepts for deploying, scaling, networking, and managing containerized applications.

Start learning

Why Kubernetes is needed

Understand the challenges of managing containers at scale and how Kubernetes provides automated scheduling, scaling, service discovery, and recovery.

Start learning

Kubernetes architecture

Explore Kubernetes cluster architecture, including the control plane, worker nodes, API server, scheduler, controllers, and cluster data storage.

Start learning

Control plane and worker nodes

Understand the responsibilities of Kubernetes control plane and worker nodes and how they coordinate application scheduling and container execution.

Start learning

Kubernetes API server

Learn how the Kubernetes API server exposes cluster operations, validates resource requests, and acts as the central interface for cluster components.

Start learning

etcd and cluster state

Understand etcd as Kubernetes' distributed key-value store and how it maintains cluster configuration, resource definitions, and desired state.

Start learning

Scheduler and controller manager

Explore how the Kubernetes scheduler assigns pods to suitable nodes and how the controller manager continuously reconciles actual and desired cluster state.

Start learning

Kubelet and kube-proxy

Understand kubelet's role in managing pods on worker nodes and kube-proxy's role in implementing Kubernetes Service networking.

Start learning

Pods and containers

Learn how Kubernetes Pods provide the smallest deployable unit and manage one or more containers sharing networking and storage resources.

Start learning

Multi-container pods

Design multi-container Pods using sidecar, ambassador, and adapter patterns and understand how closely related containers share resources and lifecycle.

Start learning

ReplicaSets

Use Kubernetes ReplicaSets to maintain a specified number of running pod replicas and understand how they support application availability.

Start learning

Deployments

Manage stateless applications using Kubernetes Deployments, including replica configuration, rolling updates, scaling, and revision history.

Start learning

DaemonSets

Use Kubernetes DaemonSets to ensure selected pods run on eligible nodes, commonly for logging agents, monitoring agents, and networking components.

Start learning

StatefulSets

Deploy stateful applications using StatefulSets and understand stable pod identities, ordered deployment, persistent storage, and scaling behavior.

Start learning

Jobs and CronJobs

Run finite and scheduled workloads using Kubernetes Jobs and CronJobs and configure completion requirements, retries, and execution schedules.

Start learning

Kubernetes Services

Expose Kubernetes applications through Services and understand stable networking endpoints, selectors, ports, and service discovery.

Start learning

ClusterIP, NodePort, and LoadBalancer

Compare ClusterIP, NodePort, and LoadBalancer Services and understand how each exposes applications within or outside a Kubernetes cluster.

Start learning

Service discovery and DNS

Understand Kubernetes service discovery through cluster DNS and how applications locate Services using DNS names and namespace-based resolution.

Start learning

Ingress and Ingress controllers

Route external HTTP and HTTPS traffic into Kubernetes clusters using Ingress resources and controllers, including host-based and path-based routing.

Start learning

ConfigMaps and Secrets

Manage application configuration and sensitive values using Kubernetes ConfigMaps and Secrets and inject them into containers as environment variables or mounted files.

Start learning

Namespaces and resource isolation

Organize Kubernetes resources using namespaces and understand resource separation, access boundaries, quotas, and environment isolation.

Start learning

Persistent Volumes (PV)

Understand Kubernetes Persistent Volumes as cluster storage resources and learn how storage capacity, access modes, and reclaim policies are defined.

Start learning

Persistent Volume Claims (PVC)

Request persistent storage using PersistentVolumeClaims and understand how Kubernetes binds storage claims to suitable Persistent Volumes.

Start learning

Storage classes

Use Kubernetes StorageClasses to define dynamic storage provisioning, storage parameters, provisioners, and default storage behavior.

Start learning

Kubernetes networking

Explore Kubernetes networking concepts covering pod connectivity, Services, cluster IP addressing, external access, and network communication rules.

Start learning

Container Network Interface (CNI)

Understand the Container Network Interface specification and how CNI plugins configure pod networking and connectivity within Kubernetes clusters.

Start learning

Pod-to-pod communication

Learn how Kubernetes Pods communicate across nodes using cluster networking, pod IP addresses, routing, and network plugin implementations.

Start learning

Network policies

Control pod-level network traffic using Kubernetes NetworkPolicies and define ingress and egress rules based on pods, namespaces, and IP ranges.

Start learning

Resource requests and limits

Configure CPU and memory requests and limits for Kubernetes containers and understand scheduling decisions, resource enforcement, and workload stability.

Start learning

Horizontal Pod Autoscaling

Automatically adjust the number of running pod replicas using Horizontal Pod Autoscaling and metrics such as CPU and memory utilization.

Start learning

Vertical Pod Autoscaling

Use Vertical Pod Autoscaling to recommend or adjust container resource requests based on observed workload consumption.

Start learning

Cluster autoscaling

Understand cluster autoscaling and how node capacity is increased or reduced based on pending workloads and resource utilization.

Start learning

Liveness, readiness, and startup probes

Configure Kubernetes liveness, readiness, and startup probes to detect unhealthy containers, control traffic routing, and manage application initialization.

Start learning

Rolling updates and rollbacks

Perform Kubernetes rolling updates with controlled availability and revert deployments to previous revisions when new application releases fail.

Start learning

Kubernetes scheduling and affinity

Understand Kubernetes scheduling decisions and use node affinity, pod affinity, and pod anti-affinity to influence workload placement.

Start learning

Taints and tolerations

Control pod scheduling with node taints and tolerations to reserve nodes for specific workloads and prevent unsuitable pod placement.

Start learning

Node selectors

Schedule Kubernetes workloads on selected nodes using node labels and nodeSelector rules to match application requirements with available infrastructure.

Start learning

Helm charts and package management

Package and deploy Kubernetes applications using Helm charts, templates, values files, releases, repositories, and chart dependency management.

Start learning

Kustomize fundamentals

Customize Kubernetes manifests using Kustomize bases, overlays, patches, and generators without relying on template-based configuration.

Start learning

Kubernetes RBAC

Control Kubernetes API access using Role-Based Access Control and understand Roles, ClusterRoles, RoleBindings, and ClusterRoleBindings.

Start learning

Service accounts

Configure Kubernetes ServiceAccounts to provide workload identities and control how applications authenticate when accessing the Kubernetes API.

Start learning

Kubernetes security best practices

Secure Kubernetes clusters through least-privilege access, image security, network isolation, workload hardening, patch management, and audit controls.

Start learning

Pod security standards

Apply Kubernetes Pod Security Standards using Privileged, Baseline, and Restricted profiles to control container and pod security configurations.

Start learning

Secrets management

Manage Kubernetes application secrets securely using encryption at rest, external secret stores, restricted access, and secret rotation practices.

Start learning

Kubernetes monitoring and logging

Monitor Kubernetes clusters and applications through resource metrics, container logs, event collection, health monitoring, and centralized observability tools.

Start learning

Prometheus and Grafana

Monitor Kubernetes workloads using Prometheus metrics collection and build Grafana dashboards and alerts to visualize cluster and application health.

Start learning

Centralized logging with ELK

Collect and analyze Kubernetes container logs using Elasticsearch, Logstash, and Kibana and understand log shipping, indexing, and visualization.

Start learning

Kubernetes troubleshooting

Diagnose Kubernetes operational issues using kubectl commands, cluster events, resource descriptions, logs, networking checks, and node inspection.

Start learning

Debugging pods and deployments

Troubleshoot failing pods and deployments by inspecting events, container logs, image pull errors, probes, configuration, and rollout status.

Start learning

Container orchestration

Understand container orchestration and how platforms automate container scheduling, scaling, networking, service discovery, and lifecycle management.

Start learning

Kubernetes cluster management

Manage Kubernetes clusters through node administration, version upgrades, resource monitoring, capacity planning, access control, and cluster maintenance.

Start learning

Managed Kubernetes services

Compare managed Kubernetes offerings and understand how cloud providers handle cluster provisioning, control plane operations, upgrades, and infrastructure integration.

Start learning

Azure Kubernetes Service (AKS)

Deploy and manage Kubernetes workloads on Azure Kubernetes Service, including node pools, networking, identity, scaling, and Azure integrations.

Start learning

Amazon Elastic Kubernetes Service (EKS)

Run Kubernetes clusters on Amazon EKS and understand managed control planes, worker nodes, IAM integration, networking, and AWS service connectivity.

Start learning

Google Kubernetes Engine (GKE)

Deploy containerized workloads on Google Kubernetes Engine and explore cluster modes, node pools, autoscaling, networking, and Google Cloud integrations.

Start learning

CI/CD with Docker and Kubernetes

Build automated CI/CD workflows that create Docker images, execute tests, publish container artifacts, and deploy applications to Kubernetes clusters.

Start learning

GitHub Actions and Kubernetes deployments

Automate Kubernetes deployments using GitHub Actions, including container image builds, registry authentication, cluster access, and manifest or Helm releases.

Start learning

GitOps fundamentals

Understand GitOps principles and use Git repositories as the source of truth for declarative infrastructure and application deployment configurations.

Start learning

Argo CD and Flux

Implement GitOps deployments with Argo CD and Flux and understand synchronization, reconciliation, application health, and continuous delivery from Git repositories.

Start learning

Service mesh fundamentals

Understand service mesh architecture and how dedicated infrastructure manages service-to-service communication, traffic policies, security, and observability.

Start learning

Istio and Linkerd

Explore Istio and Linkerd service mesh capabilities, including traffic management, mutual TLS, service discovery, telemetry, and failure handling.

Start learning

Microservices deployment with Kubernetes

Deploy microservices on Kubernetes using independent Deployments, Services, configuration resources, ingress routing, autoscaling, and health probes.

Start learning

Production Kubernetes architecture

Design production-ready Kubernetes environments covering high availability, cluster security, networking, persistent storage, monitoring, and disaster recovery.

Start learning

Container and cluster performance optimization

Optimize container and Kubernetes performance by analyzing CPU, memory, storage, networking, scheduling, resource allocation, and application bottlenecks.

Start learning

Practice & revise

Interview questions

Practice interview questions with answers, key points, and practical examples.

Test your knowledge

Explore 99 questions for this topic, covering concepts, practical examples, and interview scenarios.

Browse 99 questions

Keep learning step by step

Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.

Explore another learning path