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
- Most asked How do you choose good SLIs for a service?
- Most asked What makes a good alert? Explain symptom-based alerting and alert fatigue.
- Most asked How should incident response be organised? Describe the key roles.
- Most asked How would you take a service from 99.9% to 99.99% availability?
- Most asked How do you do capacity planning for a service?
- What makes an on-call rotation sustainable?
- How do you choose timeouts, and what is deadline propagation?
- How do you design a service so that its dependencies' failures do not take it down?
- How do you define incident severity levels?
- How would you load test a service before a big launch?
- How do you define SLOs for batch jobs and data pipelines?
- How do you make sure postmortem action items actually get done?
- How do you design dashboards that help during an incident?
Kubernetes Core 8
- Most asked How do you make pods shut down gracefully without dropping requests?
- Most asked How do you upgrade a Kubernetes cluster safely?
- Most asked How do you monitor a Kubernetes cluster and the applications on it?
- Most asked How do you control costs in Kubernetes?
- How do you give pods access to cloud resources such as S3 or a database without static credentials?
- How do you organise multi-tenancy in a Kubernetes cluster?
- How do you back up a Kubernetes cluster?
- How do you manage TLS certificates in Kubernetes?
Logging & Observability Core 8
- What makes a good alert?
- How do you design centralized log aggregation?
- How do you collect logs and metrics in Kubernetes?
- What makes an error log line useful during an incident?
- How do you control the cost of logs and telemetry?
- How do you add observability to a frontend application?
- How do you find slow database queries in production?
- How do you observe the impact of a deployment or feature flag?
Performance & Scalability Core 6
Networking Core 7
- Most asked How should you design health checks for services behind a load balancer?
- Most asked How do you connect many VPCs together, and why isn't VPC peering always enough?
- Most asked How would you migrate a production domain to a new load balancer with no downtime?
- How do you get the real client IP behind proxies and load balancers safely?
- How would you give an application fixed outbound IP addresses for a partner's allow-list?
- How do you reduce cloud networking costs?
- How do you secure administrative access to instances in private subnets?
Linux Core 3
DevOps Engineer Recommended 23
- Most asked How do you secure the CI/CD pipeline itself against supply-chain attacks?
- Most asked How do you approach observability as a DevOps engineer?
- Most asked How do you control cloud costs as part of DevOps (FinOps)?
- Most asked How do you implement GitOps for both infrastructure and applications?
- Most asked How do you plan and test disaster recovery as a DevOps engineer?
- Most asked How would you introduce DevOps practices into a team that deploys manually once a month?
- How do you implement automated rollback in a deployment pipeline?
- How do you implement approval gates and separation of duties for production deployments?
- How do you integrate SonarQube, SAST, DAST and container image scanning into CI/CD without slowing everyone down?
- What would you monitor during a high-traffic event such as Black Friday, and how do you prepare?
- How do you rotate production credentials without downtime?
- How do you prioritise several production incidents happening at the same time?
- How do you deal with flaky tests?
- How do you manage configuration across environments without drift?
- How would you migrate a team from Jenkins to GitHub Actions (or another CI system)?
- How do you write reliable shell scripts for automation?
- How do you release a new version of a stateful service, such as a message broker or database, with minimal downtime?
- How do you manage TLS certificates across many services?
- How do you make deployments of a monolith safer when you cannot break it up soon?
- How do you decide what to automate first?
- How do you structure on-call and incident handling in a DevOps team?
- How do you approach a multi-cloud strategy?
- How do you build golden machine images, and why?
Docker Recommended 11
- Most asked How do you secure Docker containers and images?
- Most asked How do you make Docker images smaller?
- Most asked How do you limit a container's CPU and memory, and what happens when it exceeds them?
- Most asked How should you tag Docker images, and why is 'latest' a problem?
- Most asked How do you debug a container that exits immediately or behaves differently in production?
- Most asked How do you run Docker builds in CI pipelines efficiently and safely?
- What should you consider when choosing a base image?
- How do you run a database in Docker for local development, and should you do it in production?
- How do you speed up a slow Docker build?
- How do you clean up disk space used by Docker?
- How do you run multiple processes in one container, and should you?
Terraform Recommended 17
- Most asked How would you run Terraform in CI/CD?
- Most asked How do you bring existing infrastructure under Terraform management?
- Most asked How do you refactor Terraform code without destroying resources? Explain moved blocks and state mv.
- Most asked How do you pin provider and module versions, and what is the dependency lock file?
- How do you use Terraform to deploy the same infrastructure to nonprod and production AWS accounts?
- How do you configure OIDC authentication between GitHub Actions and AWS for Terraform pipelines?
- How should you split Terraform state for a large organisation?
- How do you test Terraform code?
- How do you bootstrap an S3 remote state backend for Terraform without a chicken-and-egg problem?
- How do you manage RDS passwords securely with Terraform?
- How do you set up CloudFront with an S3 origin using Origin Access Control in Terraform?
- How do you manage AWS costs with Terraform, and what resources help?
- How do you manage multiple accounts, regions or subscriptions in one Terraform configuration?
- How do you structure a Terraform repository for a team?
- How do you manage Kubernetes resources with Terraform, and what are the pitfalls?
- How do you design a reusable Terraform module for an internal platform team to offer, for example 'a secure S3 bucket'?
- How do you tag resources consistently with Terraform?
Database Concurrency & Scaling Recommended 12
- Most asked How do you choose a shard key for a multi-tenant SaaS?
- Most asked How do you rename a column with zero downtime?
- Most asked How do you prevent overselling in a flash sale with 50,000 buyers in the first minute?
- How would you prevent double-booking a meeting room?
- How do you build a reliable job queue on Postgres?
- How do you retry a transaction safely after a serialization failure or deadlock?
- How do you choose the column order of a composite index?
- How would you make webhook processing exactly-once from the database's point of view?
- How do you delete 90 days of old events every night without hurting production?
- How do you generate unique IDs across database shards?
- How do you safely backfill 50 million rows?
- How do you design user-facing features on top of eventually consistent data like search indexes?
Messaging & Queues Recommended 9
- Most asked How do you make message consumers idempotent?
- How do you guarantee message ordering?
- How do you design background job processing for a web application?
- How do you evolve message schemas safely?
- What should you monitor in a messaging system?
- How do you test asynchronous, message-driven code?
- How do you implement priority processing?
- How do you increase throughput of message processing?
- How do you secure message brokers?
CI/CD & Deployment Recommended 7
- Most asked How do you run database migrations without downtime?
- Most asked How do you promote a single build artifact from development through staging to production?
- How do you design for fast rollback?
- How do you secure the software supply chain in CI/CD?
- How do you use build caching and dependency caching to speed up CI pipelines?
- How do you speed up CI pipelines?
- What should you monitor during and after a deployment?