These questions test foundational conceptual mastery, syntax accuracy, and core theoretical knowledge:
Q1. What is DevOps and how does it bridge development and operations?
Foundation • 0-2 Yrs
DevOps is a set of practices, cultural philosophies, and automated tools that integrates software development (Dev) with IT operations (Ops). It shortens the systems development lifecycle, increases deployment frequency, and provides continuous delivery of high-quality software through automation.
Q2. Explain the difference between Virtualization (VMs) and Containerization (Docker).
Foundation • 0-2 Yrs
Virtual Machines (VMs) virtualize physical hardware via a Hypervisor; each VM runs a full guest operating system (consuming gigabytes of storage and taking minutes to boot). Containers virtualize the host OS kernel using Linux namespaces and cgroups, sharing the host kernel with isolated user spaces, booting in milliseconds, and consuming megabytes.
Q3. What are Linux Namespaces and Control Groups (cgroups) in Docker?
Foundation • 0-2 Yrs
Namespaces provide isolation between processes: PID (process IDs), NET (network interfaces/routing), MNT (mount points), IPC, and UTS (hostname). Control Groups (cgroups) enforce resource allocation and metering: limiting CPU, memory, disk I/O, and network bandwidth per container.
Q4. What is the difference between a Docker Image and a Docker Container?
Foundation • 0-2 Yrs
A Docker Image is an immutable, read-only template built from layered filesystems defining the application environment, code, and dependencies. A Docker Container is a runnable, isolated runtime instance of a Docker image with a writable thin top layer (Container Layer).
Q5. Explain the difference between COPY and ADD instructions in a Dockerfile.
Foundation • 0-2 Yrs
COPY simply copies local files or directories from the build context into the container filesystem (recommended for security). ADD performs everything COPY does, but additionally extracts local tar archives automatically and downloads files from remote URLs.
Q6. What are Docker Multi-Stage Builds and why are they essential?
Foundation • 0-2 Yrs
Multi-stage builds allow using multiple FROM instructions in a single Dockerfile. Heavy build tools, compilers (e.g., Maven, Go compiler), and intermediate cache files are used in early build stages, and only the final compiled artifact (e.g., jar, binary) is copied to a minimal scratch/Alpine base image, reducing image sizes by 90%.
Q7. What is Kubernetes and what are its core control plane components?
Foundation • 0-2 Yrs
Kubernetes is an open-source container orchestration platform. Control plane components: kube-apiserver (central REST API gateway), etcd (distributed key-value store holding cluster state), kube-scheduler (assigns unscheduled pods to nodes), and kube-controller-manager (runs control loops).
Q8. What are the worker node components in a Kubernetes cluster?
Foundation • 0-2 Yrs
Worker node components: kubelet (agent running on each node ensuring containers described in PodSpecs are running and healthy), kube-proxy (maintains network rules on nodes for Pod and Service communication), and Container Runtime (containerd, CRI-O).
Q9. What is a Pod in Kubernetes and can it run multiple containers?
Foundation • 0-2 Yrs
A Pod is the smallest deployable compute unit in Kubernetes. It encapsulates one or more containers sharing the same network namespace (same IP address, localhost communication) and shared storage volumes (e.g., Sidecar pattern for logging or service mesh proxies).
Q10. Explain the difference between Deployment, StatefulSet, and DaemonSet.
Foundation • 0-2 Yrs
Deployment: Manages stateless pod replicas with rolling updates. StatefulSet: Manages stateful pods requiring unique persistent identities, stable network hostnames, and ordered deployment (e.g., databases). DaemonSet: Ensures exactly one copy of a Pod runs on every (or selected) node in the cluster (e.g., log collectors, monitoring agents).
Q11. What is a Kubernetes Service and what are its types?
Foundation • 0-2 Yrs
A Service provides a stable IP address and DNS name to abstract a dynamic set of pods identified by label selectors. Types: ClusterIP (internal cluster access, default), NodePort (exposes port on each node's IP), LoadBalancer (provisions cloud provider load balancer), and ExternalName.
Q12. What is an Ingress and Ingress Controller in Kubernetes?
Foundation • 0-2 Yrs
An Ingress is an API object that defines HTTP/HTTPS routing rules (host, path, SSL termination) to expose cluster services to the external world. An Ingress Controller (e.g., NGINX Ingress Controller, Traefik) evaluates these rules and directs traffic to backend services.
Q13. What is the difference between livenessProbe, readinessProbe, and startupProbe?
Foundation • 0-2 Yrs
livenessProbe: Checks if the container is running; if it fails, kubelet kills and restarts the container. readinessProbe: Checks if the container is ready to accept traffic; if it fails, the pod IP is removed from Service endpoints. startupProbe: Disables liveness/readiness checks until slow legacy containers finish initial startup.
Q14. What is Helm and why is it called the package manager for Kubernetes?
Foundation • 0-2 Yrs
Helm manages Kubernetes applications through Charts (packaged pre-configured K8s resource manifests). It supports parameterization via values.yaml, release versioning, rolling upgrades, and one-command rollbacks (helm rollback).
Q15. Explain Continuous Integration (CI) vs Continuous Delivery (CD) vs Continuous Deployment.
Foundation • 0-2 Yrs
CI: Developers merge code frequently to trunk; automated builds and tests validate changes. Continuous Delivery: Automated builds, tests, and staging deployments, with manual approval gate before production. Continuous Deployment: Every change passing automated pipeline tests deploys directly to production with zero manual intervention.