Kubernetes interview questions
100 Cloud & DevOps practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise Kubernetes questionsBeginner
- Changing configuration without rebuilding the image
- ConfigMaps
- DaemonSets
- Declarative manifests and kubectl apply
- Deploying your first application to a cluster
- Deployments and ReplicaSets
- Essential kubectl commands
- Helm basics
- Ingress
- Jobs and CronJobs
- Kubernetes architecture: control plane and worker nodes
- Kubernetes Secrets
- Kubernetes Services and their types
- Labels and selectors
- Liveness, readiness and startup probes
- Logs from a crashed container are gone
- Managed Kubernetes services
- Namespaces
- PersistentVolumes and PersistentVolumeClaims
- Pod in CrashLoopBackOff
- Pod lifecycle and phases
- Pod shows Running, but users get errors
- Pod stuck in ImagePullBackOff
- Pod stuck in Pending
- Pods
- Reaching an internal service from your laptop for debugging
- Resource requests and limits
- Rolling back a bad release in Kubernetes
- Rolling updates and rollbacks in Kubernetes
- Scaling up for an expected traffic spike
- Separating dev and staging inside one cluster
- Service does not send traffic to pods
- StatefulSets
- What Kubernetes is and what problems it solves
Intermediate
- A CronJob ran twice at the same time
- A node shows NotReady
- All replicas ended up on the same node
- Cannot reach a service in another namespace
- Cluster autoscaling: Cluster Autoscaler and Karpenter
- Controlling where pods run: affinity, taints and tolerations
- Deployment rollout is stuck
- Gateway API vs Ingress
- Giving a team self-service access to their own namespace
- Helm vs Kustomize
- High latency caused by CPU throttling
- Horizontal Pod Autoscaler
- Horizontal Pod Autoscaler is not scaling
- How Services route traffic: kube-proxy and EndpointSlices
- Ingress returns 502 or 503 errors
- Init containers and sidecar containers
- Kubernetes RBAC
- Network policies
- One workload slows down everything on the node
- PersistentVolumeClaim stuck in Pending
- Planning a Kubernetes version upgrade
- Pod disruption budgets
- Pods evicted because of disk pressure
- Pods need to read from a cloud storage bucket
- Pods repeatedly OOMKilled
- QoS classes and pod eviction
- Requests fail for a few seconds during every rollout
- Service accounts and workload identity
- Service discovery with cluster DNS
- StorageClasses and dynamic provisioning
- Too many people can read production secrets
- Topology spread constraints
- Tuning rolling updates: maxSurge and maxUnavailable
Experienced
- A cluster upgrade broke deployments due to removed APIs
- A production namespace was accidentally deleted
- Admission controllers and policy engines
- Autoscaling is too slow for sudden traffic spikes
- Control plane certificates expired on a self-managed cluster
- Controllers and the reconciliation loop
- Designing a production cluster for many teams
- Developers find Kubernetes too complex
- Draining nodes disconnects WebSocket clients
- etcd reports its database space is exceeded
- etcd's role and how to protect it
- How the scheduler chooses nodes, priorities and preemption
- Intermittent DNS failures across the cluster
- Kubernetes costs are much higher than expected
- Latency increased after adopting a service mesh
- Managing secrets for hundreds of services in Kubernetes
- Migrating workloads to a new cluster without downtime
- Multi-cluster Kubernetes architectures
- Multi-tenancy models in Kubernetes
- Nodes become NotReady under heavy load
- Operators and custom resource definitions
- Pod Security Standards and Pod Security Admission
- Pods cannot start because the cluster ran out of IP addresses
- Responding to a compromised pod
- Running a service active-active across regions on Kubernetes
- Scheduling large batch and ML jobs fairly
- Service meshes
- Should we run our production database on Kubernetes?
- The Kubernetes API server becomes slow
- The Kubernetes networking model and CNI
- Using spot instances safely in Kubernetes
- Vertical Pod Autoscaler and right-sizing
- What happens when you run kubectl apply