DevOps Engineer · interview questions
DevOps Engineer interview questions: scenario
From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.
DevOps Engineer Core 17
- Most asked A rollback after a release made the outage worse because the database had already been migrated. How do you design releases so rollbacks are always safe?
- Most asked Pods keep restarting with OOMKilled under load. How do you investigate and fix it?
- Most asked Every deployment produces a burst of 502s. What do you check?
- Most asked Your ecommerce site runs 30 microservices on Kubernetes. After a deployment, customers start getting HTTP 503 errors. How do you investigate and resolve it?
- Most asked Your Kubernetes-based ecommerce site goes down during peak traffic. Walk through your first 15 minutes.
- Most asked Response time rose from 200 ms to 5 seconds, but CPU and memory look normal. How do you troubleshoot it with APM tools such as Datadog or AppDynamics?
- Most asked A production API credential was committed to Git. What do you do immediately, and how do you stop it happening again?
- Most asked Your CI pipeline takes 45 minutes. How would you speed it up?
- Most asked A production deployment failed halfway and the site is partially broken. What do you do?
- Most asked Your on-call gets hundreds of pages a week. How do you fix the alerting?
- Most asked A release worked in staging but failed in production. How do you prevent that class of problem?
- After a release, checkout becomes slow. How do you use traces, JVM metrics, connection pool metrics and database monitoring to find the cause?
- Two engineers ran Terraform against production at the same time. One run failed and left the infrastructure half-changed. How do you recover safely?
- A deployment succeeds in Jenkins, but the application fails on Kubernetes. How do you tell whether the problem is the pipeline, the infrastructure, the configuration or the application?
- Your Java service throws 'connection pool exhausted' errors. How do you investigate?
- How do you keep dependencies up to date safely across many repositories?
- Nodes are running out of disk space. What are the usual causes and fixes?
Docker Core 1
Kubernetes Core 5
- Most asked A pod is in CrashLoopBackOff. How do you debug it?
- Most asked Your application on Kubernetes has intermittent 502/503 errors during deployments. What would you investigate?
- Pods are stuck in Pending or ImagePullBackOff. What do you check?
- How do you find and fix deprecated Kubernetes APIs before a cluster upgrade?
- What happens to workloads when a node fails?
Terraform Core 6
- Most asked Terraform apply fails halfway through — some resources were created, others were not. How do you recover?
- Most asked Someone manually deletes an EC2 instance that Terraform manages. What happens on the next plan and apply?
- What happens if two engineers apply at the same time without state locking?
- How would you recover a corrupted or lost Terraform state file?
- What happens if the CI runner crashes or loses connectivity during terraform apply?
- The Terraform state lock is stuck. How do you handle it?
Ansible Core 2
Linux Core 3
CI/CD & Deployment Core 2
Logging & Observability Core 2
GitHub Actions Fundamentals Core 1
Site Reliability Engineering Recommended 7
- Most asked How should clients retry failed requests safely?
- Most asked Latency for a service suddenly doubled. Walk me through how you investigate.
- Most asked Product wants to launch a feature, but the error budget is exhausted. What do you do?
- During an incident, when do you roll back and when do you roll forward?
- A service's p99 latency doubles every day at 2 a.m. How do you investigate?
- Certificates expired and DNS changes are classic outage causes. How do you prevent them?
- A service's memory keeps growing until it is OOM-killed. How do you handle it?
Networking Recommended 3
- Most asked Why can keep-alive timeouts cause intermittent 502 errors behind a load balancer?
- Your EKS pods are stuck in Pending with IP assignment errors. What's happening and how do you fix it?
- Calls to one external API time out intermittently at peak, while other destinations work. What do you suspect?
Cloud Engineer Recommended 6
- Most asked How do you keep object storage buckets from being exposed publicly?
- Most asked An application on AWS suddenly gets AccessDenied when reading from S3. How do you troubleshoot it?
- An access key leaked publicly. Walk through your response.
- Why might autoscaling fail during a traffic spike, and how do you prepare?
- The monthly cloud bill jumped 40% with no traffic increase. What do you look for, and what would you change?
- A team's monthly bill jumped 40% overnight. How do you investigate?