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

  1. 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?
  2. Most asked Pods keep restarting with OOMKilled under load. How do you investigate and fix it?
  3. Most asked Every deployment produces a burst of 502s. What do you check?
  4. 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?
  5. Most asked Your Kubernetes-based ecommerce site goes down during peak traffic. Walk through your first 15 minutes.
  6. 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?
  7. Most asked A production API credential was committed to Git. What do you do immediately, and how do you stop it happening again?
  8. Most asked Your CI pipeline takes 45 minutes. How would you speed it up?
  9. Most asked A production deployment failed halfway and the site is partially broken. What do you do?
  10. Most asked Your on-call gets hundreds of pages a week. How do you fix the alerting?
  11. Most asked A release worked in staging but failed in production. How do you prevent that class of problem?
  12. After a release, checkout becomes slow. How do you use traces, JVM metrics, connection pool metrics and database monitoring to find the cause?
  13. Two engineers ran Terraform against production at the same time. One run failed and left the infrastructure half-changed. How do you recover safely?
  14. 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?
  15. Your Java service throws 'connection pool exhausted' errors. How do you investigate?
  16. How do you keep dependencies up to date safely across many repositories?
  17. Nodes are running out of disk space. What are the usual causes and fixes?

Docker Core 1

  1. Why might a container work on your laptop but fail on a server or in CI?

Kubernetes Core 5

  1. Most asked A pod is in CrashLoopBackOff. How do you debug it?
  2. Most asked Your application on Kubernetes has intermittent 502/503 errors during deployments. What would you investigate?
  3. Pods are stuck in Pending or ImagePullBackOff. What do you check?
  4. How do you find and fix deprecated Kubernetes APIs before a cluster upgrade?
  5. What happens to workloads when a node fails?

Terraform Core 6

  1. Most asked Terraform apply fails halfway through — some resources were created, others were not. How do you recover?
  2. Most asked Someone manually deletes an EC2 instance that Terraform manages. What happens on the next plan and apply?
  3. What happens if two engineers apply at the same time without state locking?
  4. How would you recover a corrupted or lost Terraform state file?
  5. What happens if the CI runner crashes or loses connectivity during terraform apply?
  6. The Terraform state lock is stuck. How do you handle it?

Ansible Core 2

  1. A playbook run fails halfway through 50 hosts. What do you do?
  2. A playbook takes 40 minutes across 300 hosts. How do you speed it up?

Linux Core 3

  1. Most asked A Linux server has high CPU usage. How do you find the cause?
  2. A server keeps running out of memory and the kernel kills processes. How do you investigate?
  3. The disk is full, but du shows far less usage than df. What's going on?

CI/CD & Deployment Core 2

  1. Most asked How do you handle flaky tests in CI?
  2. What environments do teams typically use, and how do you keep them consistent?

Logging & Observability Core 2

  1. Most asked Walk through how you would investigate a sudden latency spike in production.
  2. How do you keep log context (user, request) in async or multi-threaded code?

GitHub Actions Fundamentals Core 1

  1. A workflow passes on main but fails for pull requests from forks. Why?

Site Reliability Engineering Recommended 7

  1. Most asked How should clients retry failed requests safely?
  2. Most asked Latency for a service suddenly doubled. Walk me through how you investigate.
  3. Most asked Product wants to launch a feature, but the error budget is exhausted. What do you do?
  4. During an incident, when do you roll back and when do you roll forward?
  5. A service's p99 latency doubles every day at 2 a.m. How do you investigate?
  6. Certificates expired and DNS changes are classic outage causes. How do you prevent them?
  7. A service's memory keeps growing until it is OOM-killed. How do you handle it?

Networking Recommended 3

  1. Most asked Why can keep-alive timeouts cause intermittent 502 errors behind a load balancer?
  2. Your EKS pods are stuck in Pending with IP assignment errors. What's happening and how do you fix it?
  3. Calls to one external API time out intermittently at peak, while other destinations work. What do you suspect?

Cloud Engineer Recommended 6

  1. Most asked How do you keep object storage buckets from being exposed publicly?
  2. Most asked An application on AWS suddenly gets AccessDenied when reading from S3. How do you troubleshoot it?
  3. An access key leaked publicly. Walk through your response.
  4. Why might autoscaling fail during a traffic spike, and how do you prepare?
  5. The monthly cloud bill jumped 40% with no traffic increase. What do you look for, and what would you change?
  6. A team's monthly bill jumped 40% overnight. How do you investigate?

Was this page helpful?

Report a mistake