Site Reliability Engineer (SRE) · interview questions

Site Reliability Engineer (SRE) interview questions: how you'd do it

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

Site Reliability Engineering Core 13

  1. Most asked How do you choose good SLIs for a service?
  2. Most asked What makes a good alert? Explain symptom-based alerting and alert fatigue.
  3. Most asked How should incident response be organised? Describe the key roles.
  4. Most asked How would you take a service from 99.9% to 99.99% availability?
  5. Most asked How do you do capacity planning for a service?
  6. What makes an on-call rotation sustainable?
  7. How do you choose timeouts, and what is deadline propagation?
  8. How do you design a service so that its dependencies' failures do not take it down?
  9. How do you define incident severity levels?
  10. How would you load test a service before a big launch?
  11. How do you define SLOs for batch jobs and data pipelines?
  12. How do you make sure postmortem action items actually get done?
  13. How do you design dashboards that help during an incident?

Kubernetes Core 8

  1. Most asked How do you make pods shut down gracefully without dropping requests?
  2. Most asked How do you upgrade a Kubernetes cluster safely?
  3. Most asked How do you monitor a Kubernetes cluster and the applications on it?
  4. Most asked How do you control costs in Kubernetes?
  5. How do you give pods access to cloud resources such as S3 or a database without static credentials?
  6. How do you organise multi-tenancy in a Kubernetes cluster?
  7. How do you back up a Kubernetes cluster?
  8. How do you manage TLS certificates in Kubernetes?

Logging & Observability Core 8

  1. What makes a good alert?
  2. How do you design centralized log aggregation?
  3. How do you collect logs and metrics in Kubernetes?
  4. What makes an error log line useful during an incident?
  5. How do you control the cost of logs and telemetry?
  6. How do you add observability to a frontend application?
  7. How do you find slow database queries in production?
  8. How do you observe the impact of a deployment or feature flag?

Performance & Scalability Core 6

  1. Most asked How do you approach a performance problem methodically?
  2. How do you load test a system effectively?
  3. How would you scale a read-heavy system?
  4. How would you scale a write-heavy system?
  5. How do you reduce payload sizes in web applications?
  6. How do you do capacity planning?

Networking Core 7

  1. Most asked How should you design health checks for services behind a load balancer?
  2. Most asked How do you connect many VPCs together, and why isn't VPC peering always enough?
  3. Most asked How would you migrate a production domain to a new load balancer with no downtime?
  4. How do you get the real client IP behind proxies and load balancers safely?
  5. How would you give an application fixed outbound IP addresses for a partner's allow-list?
  6. How do you reduce cloud networking costs?
  7. How do you secure administrative access to instances in private subnets?

Linux Core 3

  1. How do you troubleshoot DNS resolution and network connectivity on Linux?
  2. How do you find what's listening on a port and which process owns it?
  3. How do you search logs effectively with journalctl and standard tools?

DevOps Engineer Recommended 23

  1. Most asked How do you secure the CI/CD pipeline itself against supply-chain attacks?
  2. Most asked How do you approach observability as a DevOps engineer?
  3. Most asked How do you control cloud costs as part of DevOps (FinOps)?
  4. Most asked How do you implement GitOps for both infrastructure and applications?
  5. Most asked How do you plan and test disaster recovery as a DevOps engineer?
  6. Most asked How would you introduce DevOps practices into a team that deploys manually once a month?
  7. How do you implement automated rollback in a deployment pipeline?
  8. How do you implement approval gates and separation of duties for production deployments?
  9. How do you integrate SonarQube, SAST, DAST and container image scanning into CI/CD without slowing everyone down?
  10. What would you monitor during a high-traffic event such as Black Friday, and how do you prepare?
  11. How do you rotate production credentials without downtime?
  12. How do you prioritise several production incidents happening at the same time?
  13. How do you deal with flaky tests?
  14. How do you manage configuration across environments without drift?
  15. How would you migrate a team from Jenkins to GitHub Actions (or another CI system)?
  16. How do you write reliable shell scripts for automation?
  17. How do you release a new version of a stateful service, such as a message broker or database, with minimal downtime?
  18. How do you manage TLS certificates across many services?
  19. How do you make deployments of a monolith safer when you cannot break it up soon?
  20. How do you decide what to automate first?
  21. How do you structure on-call and incident handling in a DevOps team?
  22. How do you approach a multi-cloud strategy?
  23. How do you build golden machine images, and why?

Docker Recommended 11

  1. Most asked How do you secure Docker containers and images?
  2. Most asked How do you make Docker images smaller?
  3. Most asked How do you limit a container's CPU and memory, and what happens when it exceeds them?
  4. Most asked How should you tag Docker images, and why is 'latest' a problem?
  5. Most asked How do you debug a container that exits immediately or behaves differently in production?
  6. Most asked How do you run Docker builds in CI pipelines efficiently and safely?
  7. What should you consider when choosing a base image?
  8. How do you run a database in Docker for local development, and should you do it in production?
  9. How do you speed up a slow Docker build?
  10. How do you clean up disk space used by Docker?
  11. How do you run multiple processes in one container, and should you?

Terraform Recommended 17

  1. Most asked How would you run Terraform in CI/CD?
  2. Most asked How do you bring existing infrastructure under Terraform management?
  3. Most asked How do you refactor Terraform code without destroying resources? Explain moved blocks and state mv.
  4. Most asked How do you pin provider and module versions, and what is the dependency lock file?
  5. How do you use Terraform to deploy the same infrastructure to nonprod and production AWS accounts?
  6. How do you configure OIDC authentication between GitHub Actions and AWS for Terraform pipelines?
  7. How should you split Terraform state for a large organisation?
  8. How do you test Terraform code?
  9. How do you bootstrap an S3 remote state backend for Terraform without a chicken-and-egg problem?
  10. How do you manage RDS passwords securely with Terraform?
  11. How do you set up CloudFront with an S3 origin using Origin Access Control in Terraform?
  12. How do you manage AWS costs with Terraform, and what resources help?
  13. How do you manage multiple accounts, regions or subscriptions in one Terraform configuration?
  14. How do you structure a Terraform repository for a team?
  15. How do you manage Kubernetes resources with Terraform, and what are the pitfalls?
  16. How do you design a reusable Terraform module for an internal platform team to offer, for example 'a secure S3 bucket'?
  17. How do you tag resources consistently with Terraform?

Database Concurrency & Scaling Recommended 12

  1. Most asked How do you choose a shard key for a multi-tenant SaaS?
  2. Most asked How do you rename a column with zero downtime?
  3. Most asked How do you prevent overselling in a flash sale with 50,000 buyers in the first minute?
  4. How would you prevent double-booking a meeting room?
  5. How do you build a reliable job queue on Postgres?
  6. How do you retry a transaction safely after a serialization failure or deadlock?
  7. How do you choose the column order of a composite index?
  8. How would you make webhook processing exactly-once from the database's point of view?
  9. How do you delete 90 days of old events every night without hurting production?
  10. How do you generate unique IDs across database shards?
  11. How do you safely backfill 50 million rows?
  12. How do you design user-facing features on top of eventually consistent data like search indexes?

Messaging & Queues Recommended 9

  1. Most asked How do you make message consumers idempotent?
  2. How do you guarantee message ordering?
  3. How do you design background job processing for a web application?
  4. How do you evolve message schemas safely?
  5. What should you monitor in a messaging system?
  6. How do you test asynchronous, message-driven code?
  7. How do you implement priority processing?
  8. How do you increase throughput of message processing?
  9. How do you secure message brokers?

CI/CD & Deployment Recommended 7

  1. Most asked How do you run database migrations without downtime?
  2. Most asked How do you promote a single build artifact from development through staging to production?
  3. How do you design for fast rollback?
  4. How do you secure the software supply chain in CI/CD?
  5. How do you use build caching and dependency caching to speed up CI pipelines?
  6. How do you speed up CI pipelines?
  7. What should you monitor during and after a deployment?

Was this page helpful?

Report a mistake