DevOps & Cloud · 2026 Edition

Top 50 DevOps & Kubernetes Interview Questions & Answers for 2026

·20 min read·Intervio DevOps Experts

Key Takeaways — DevOps & SRE Interviews 2026

  • •Kubernetes Architecture Mastery: Deep knowledge of kube-apiserver, etcd Raft consensus, kube-scheduler filters, kube-controller-manager loops, and CNI plugins (Calico/Cilium) is tested in 90% of DevOps interviews.
  • •IaC & Terraform State: Terraform remote backend state locking with DynamoDB and S3, module versioning, drift detection, and lifecycle { prevent_destroy = true } rules.
  • •Zero-Downtime Deployment Patterns: Clear distinction between Rolling Updates, Blue-Green, Canary deployments with Flagger/Istio, and GitOps synchronization via ArgoCD.
  • •Linux & Production Troubleshooting: Systematic incident debugging using strace, lsof, ss/netstat, tcpdump, journalctl, and resolving CrashLoopBackOff and OOMKilled statuses.

1. Kubernetes Cluster Architecture & Control Plane Internals

Kubernetes coordinates declarative state through a distributed control plane. Interviewers expect candidates to describe how an API request moves through each component.

1. kube-apiserver

The only component that communicates with etcd. Validates, authenticates, and configures data for pod, service, replication controller objects.

2. etcd

Consistent, highly-available key-value store using Raft consensus to persist cluster state. Requires an odd number of nodes (3 or 5) for quorum (N/2 + 1).

3. kube-scheduler

Assigns unscheduled pods to worker nodes via two phases: Filtering (Predicates) to find eligible nodes, and Scoring (Priorities) to choose the best node.

4. kubelet

Node agent ensuring containers described in PodSpecs are running and healthy via the Container Runtime Interface (CRI).

2. Troubleshooting Pods: CrashLoopBackOff, OOMKilled & Pending

CrashLoopBackOff: Root Causes & Fixes

Indicates a pod starts, fails, restarts, and crashes repeatedly with exponential backoff delay.

# Debugging step-by-step:
kubectl describe pod <pod-name> -n <namespace>
kubectl logs <pod-name> --previous
# Common causes: Application fatal exception, missing environment variable/ConfigMap, permission error.

OOMKilled (Exit Code 137)

The container exceeded its configured memory limit and was terminated by the Linux kernel Out-Of-Memory killer. Fix: Increase resources.limits.memory or diagnose memory leaks in the app runtime.

3. Docker Multi-Stage Builds & Security Hardening

Writing production-grade Dockerfiles requires minimizing image size and eliminating root privileges.

# Stage 1: Build stage with compiler tools
FROM golang:1.24-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o server . # Stage 2: Minimal runtime image without build bloat
FROM alpine:3.20
RUN adduser -D -u 10001 appuser
USER appuser
COPY --from=builder /app/server /usr/local/bin/server
EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/server"]

4. Terraform & Infrastructure as Code Best Practices

Key questions asked about Terraform state management and security:

  • Remote Backend & Locking: Storing state in AWS S3 with encryption and using DynamoDB for state locking prevents concurrent executions from corrupting infrastructure state.
  • Terraform Drift: When physical cloud resources change outside Terraform. Detected with terraform plan -refresh-only and aligned with terraform apply -refresh-only.
  • Terraform Modules: Promote DRY (Don't Repeat Yourself) infrastructure patterns, enabling environment parity between Dev, Staging, and Production.

5. CI/CD, GitOps (ArgoCD) & Progressive Delivery

Modern deployment pipelines rely on declarative Git repositories as the single source of truth. In 2026 DevOps & SRE interviews, ArgoCD interview questions test your understanding of pull-based reconciliation, multi-cluster orchestration, and safe progressive rollouts:

Q1. Pull-Based GitOps (ArgoCD) vs. Push-Based CI/CD

In push pipelines (GitHub Actions/Jenkins running kubectl apply), CI runners hold sensitive cluster admin credentials and cannot detect manual drift. ArgoCD runs inside the cluster, continuously polls Git, keeps credentials local, and reconciles configuration drift automatically.

Q2. Application vs. ApplicationSet in ArgoCD

An Application deploys a single Git path to one target cluster/namespace. An ApplicationSet acts as a template controller using Generators (Cluster, Git, Matrix, List) to dynamically generate and manage hundreds of ArgoCD Applications across multi-tenant or multi-region clusters.

Q3. Sync Waves & Resource Hooks (PreSync, Sync, PostSync)

ArgoCD orders resource creation via argocd.argoproj.io/sync-wave annotations (ascending integers, default 0) so namespaces and CRDs apply before Deployments. Hooks (PreSync for DB migrations, PostSync for smoke tests) run Kubernetes Jobs at lifecycle boundaries.

Q4. OutOfSync vs. Degraded Health Status & Self-Heal / Prune

Sync Status (Synced vs. OutOfSync) compares live Kubernetes manifests against Git. Health Status (Healthy, Progressing, Degraded) reflects pod/readiness state. Enabling selfHeal: true reverts manual kubectl edit drift, while prune: true deletes resources removed from Git.

Q5. Progressive Delivery with Argo Rollouts & Flagger

Using Argo Rollouts or Flagger to automate Canary releases with Prometheus metrics analysis (HTTP 5xx rates, p99 latency) triggers immediate automated rollbacks if SLO thresholds breach.

Practice DevOps & SRE Technical Mock Interviews

Simulate voice-based Kubernetes, CI/CD, and Linux troubleshooting interview panels with Sophia AI. Instant real-time feedback.

6. Frequently Asked DevOps Interview Questions

What is the difference between a Deployment and a StatefulSet in Kubernetes?

A Deployment manages stateless application replicas with random pod names and shared storage, suitable for web servers. A StatefulSet provides unique, persistent ordinal pod identities (e.g., kafka-0, kafka-1), dedicated persistent volume claims per pod, and ordered startup/shutdown guarantees, essential for databases and distributed consensus nodes.

What is the difference between Blue-Green and Canary deployments?

In Blue-Green deployment, two identical production environments exist; 100% of live traffic flips instantaneously from Blue (old) to Green (new). In Canary deployment, new software is deployed alongside existing versions and receives a small percentage of user traffic (e.g., 5%) while metrics are analyzed before gradually scaling to 100%.

How does ArgoCD handle drift detection and Sync Waves?

ArgoCD compares live Kubernetes cluster state with Git manifests every 3 minutes (or instantly via webhook). With selfHeal: true, manual cluster edits are reverted automatically. Sync Waves (argocd.argoproj.io/sync-wave) sequence dependencies such as CRDs and database migrations before application pods roll out.