Site Reliability Engineer (SRE) · interview questions

Site Reliability Engineer (SRE) interview questions: scenario

From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.

Site Reliability Engineering Core 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?

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?

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?

Performance & Scalability Core 1

  1. Why does connection reuse (keep-alive, pooling) matter for performance?

Networking Core 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?

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?

DevOps Engineer Recommended 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 Recommended 1

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

Terraform Recommended 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?

Database Concurrency & Scaling Recommended 7

  1. Most asked Two customers buy the last item at the same moment and both orders are confirmed. What happened, and how do you prevent it?
  2. Most asked After a deploy, logs show hundreds of 'deadlock detected' errors per hour on checkout. Walk through how you'd investigate.
  3. Most asked Your service throws 'connection pool exhausted' errors but database CPU is only 20%. What's going on?
  4. A 20 ms ALTER TABLE caused a multi-minute outage. Explain and prevent it.
  5. An API's deep pages are slow and a sync job sees duplicate and missing rows. What would you change?
  6. You have 14 services autoscaling against one Postgres and hit 'too many clients'. What's the long-term fix?
  7. Your read replicas lag 40 seconds during a nightly import. What do you do?

CI/CD & Deployment Recommended 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?

Was this page helpful?

Report a mistake