Site Reliability Engineer (SRE) · interview questions
Site Reliability Engineer (SRE) interview questions
From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.
Site Reliability Engineering Core 62
- Most asked What is Site Reliability Engineering, and how does it relate to DevOps?
- Most asked Define SLI, SLO and SLA, and explain how they relate.
- Most asked How do you choose good SLIs for a service?
- Most asked What is an error budget, and how should it be used?
- Most asked What is burn-rate alerting, and why is it better than alerting on raw error rates?
- Most asked What are the four golden signals?
- Most asked What makes a good alert? Explain symptom-based alerting and alert fatigue.
- Most asked What is the difference between monitoring and observability? Explain metrics, logs and traces.
- Most asked How should incident response be organised? Describe the key roles.
- Most asked What is a blameless postmortem, and what makes one effective?
- Most asked What is load shedding, and how does graceful degradation work?
- Most asked What is a cascading failure, and how do you prevent one?
- Most asked How should clients retry failed requests safely?
- Most asked How do canary releases and progressive delivery reduce risk?
- Most asked Explain RTO and RPO, and how they drive disaster recovery design.
- Most asked What is the difference between liveness, readiness and startup probes in Kubernetes?
- Most asked Latency for a service suddenly doubled. Walk me through how you investigate.
- Most asked How would you take a service from 99.9% to 99.99% availability?
- Most asked Write Prometheus alerting rules for an SLO of 99.9% successful requests using multi-window burn rates.
- Most asked How much downtime does each 'nine' allow, and how do you pick an SLO target?
- Most asked What is toil, and how do you reduce it?
- Most asked Why use percentiles instead of averages for latency, and how should percentiles be aggregated?
- Most asked How do you do capacity planning for a service?
- Most asked What is chaos engineering, and how do you start safely?
- Most asked A Linux server has a high load average. How do you find out why?
- Most asked Product wants to launch a feature, but the error budget is exhausted. What do you do?
- How does distributed tracing work, and what does OpenTelemetry provide?
- What makes an on-call rotation sustainable?
- How do you choose timeouts, and what is deadline propagation?
- Compare rolling, blue-green and canary deployments.
- During an incident, when do you roll back and when do you roll forward?
- Why do most outages follow changes, and how do you make change safer?
- Active-active or active-passive multi-region: what are the trade-offs?
- How do you design a service so that its dependencies' failures do not take it down?
- What Kubernetes settings matter most for reliability?
- Why are configuration changes risky, and how do you roll them out safely?
- Design the observability platform for an organisation with 200 services.
- A service's p99 latency doubles every day at 2 a.m. How do you investigate?
- What are the RED and USE methods?
- What is metric cardinality, and why can it become a problem?
- How do you define incident severity levels?
- What should a good runbook contain?
- What are MTTD, MTTR and MTBF, and what are their limitations?
- How would you load test a service before a big launch?
- What are common pitfalls of autoscaling?
- What is a circuit breaker, and when is it useful?
- How do feature flags help reliability, and what are their risks?
- What are game days and disaster recovery tests?
- What is a thundering herd, and how do you prevent it?
- Certificates expired and DNS changes are classic outage causes. How do you prevent them?
- Why is infrastructure as code important for reliability?
- A service's memory keeps growing until it is OOM-killed. How do you handle it?
- A disk filled up and took a service down. What do you do now and to prevent it next time?
- Why does latency rise sharply as utilisation approaches 100%?
- How do you define SLOs for batch jobs and data pipelines?
- What is a production readiness review?
- What are logging best practices for production systems?
- How do you make sure postmortem action items actually get done?
- How do rate limiting and admission control protect a service?
- What is the difference between synthetic monitoring and real-user monitoring?
- How do you design dashboards that help during an incident?
- What SRE engagement models exist?
Kubernetes Core 60
- Most asked Describe the Kubernetes architecture: what runs on the control plane and what runs on the nodes?
- Most asked What happens, step by step, when you run kubectl apply for a Deployment?
- Most asked Deployment, StatefulSet, DaemonSet, Job and CronJob: when do you use each?
- Most asked How do rolling updates work in a Deployment, and how do you roll back?
- Most asked Explain the Service types: ClusterIP, NodePort, LoadBalancer, ExternalName and headless.
- Most asked ConfigMaps and Secrets: how do they differ, and how should secrets really be handled?
- Most asked How does the scheduler place pods? Explain resource requests, node affinity, taints and tolerations.
- Most asked What is the difference between resource requests and limits, and what are the QoS classes?
- Most asked Liveness, readiness and startup probes: how do you configure them correctly?
- Most asked How do you make pods shut down gracefully without dropping requests?
- Most asked A pod is in CrashLoopBackOff. How do you debug it?
- Most asked How does autoscaling work in Kubernetes? Compare HPA, VPA, Cluster Autoscaler and Karpenter.
- Most asked How does RBAC work in Kubernetes, and how do you apply least privilege?
- Most asked How do you secure workloads on Kubernetes? Explain Pod Security Standards and securityContext.
- Most asked What is GitOps, and how do Argo CD or Flux implement it?
- Most asked Write a Kubernetes Deployment and Service for a web API with probes, resource requests and a rolling update strategy.
- Most asked What are Kubernetes namespaces, when should you create them, and what isolation do they provide?
- Most asked What is the reconciliation loop, and why is Kubernetes called declarative?
- Most asked Ingress or Gateway API: how do you expose HTTP services, and what has changed recently?
- Most asked What are NetworkPolicies, and how would you lock down traffic in a namespace?
- Most asked How do persistent volumes work? Explain PV, PVC, StorageClass and CSI.
- Most asked What are Custom Resource Definitions and operators?
- Most asked Helm or Kustomize: how do you manage manifests?
- 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 Your application on Kubernetes has intermittent 502/503 errors during deployments. What would you investigate?
- Most asked What is Kubernetes not good at, or when would you avoid it?
- Most asked How do you control costs in Kubernetes?
- Most asked What do the common kubectl debugging commands tell you?
- Most asked How would you design a production-ready Kubernetes platform for several teams?
- What is a Pod, and why are containers grouped into Pods?
- How does pod networking work in Kubernetes, and what does the CNI plugin do?
- Pods are stuck in Pending or ImagePullBackOff. What do you check?
- What is a PodDisruptionBudget, and why does it matter?
- How do you give pods access to cloud resources such as S3 or a database without static credentials?
- A Service is not reachable from another pod. How do you troubleshoot it?
- What are the pod lifecycle phases, and how do you use them for debugging?
- How do you find and fix deprecated Kubernetes APIs before a cluster upgrade?
- What are init containers and sidecar containers?
- How does DNS work in a Kubernetes cluster, and what is the ndots problem?
- Should you run databases on Kubernetes?
- What are admission controllers and webhooks used for?
- How do you organise multi-tenancy in a Kubernetes cluster?
- How do you back up a Kubernetes cluster?
- What is etcd's role, and what can go wrong with it?
- What is a service mesh, and when is it worth it?
- How do container logs work in Kubernetes?
- How do topology spread constraints and anti-affinity improve availability?
- What are ResourceQuota and LimitRange?
- How does kube-proxy work, and what are the alternatives?
- Why might gRPC traffic be unevenly balanced across pods in Kubernetes, and how do you fix it?
- How do you run batch and scheduled workloads reliably on Kubernetes?
- What is the Kubernetes container runtime, and why was dockershim removed?
- How do you manage TLS certificates in Kubernetes?
- How do you handle configuration and secrets for different environments with Kubernetes?
- What happens to workloads when a node fails?
- What are labels, selectors and annotations, and how should you use them?
- What are priority classes and preemption?
- What is the difference between a Deployment's rollout and a restart, and when would you use kubectl rollout restart?
- What are ephemeral containers and kubectl debug used for?
Logging & Observability Core 35
- Most asked What are the three pillars of observability, and how do they differ?
- Most asked What is structured logging and why is it preferred over plain text logs?
- Most asked What is a correlation (request) ID and how do you propagate it?
- Most asked What is distributed tracing and how does OpenTelemetry fit in?
- Most asked What are the RED, USE and Four Golden Signals methods?
- Most asked What are SLIs, SLOs and error budgets?
- Most asked What should never be logged, and how do you prevent it?
- Most asked Walk through how you would investigate a sudden latency spike in production.
- How should log levels be used?
- Why should you track latency percentiles instead of averages?
- What are head-based and tail-based sampling in tracing?
- What is metric cardinality and why can it break a monitoring system?
- What makes a good alert?
- How do you design centralized log aggregation?
- How is audit logging different from application logging?
- What does an error-tracking tool (like Sentry) add beyond logs?
- How would you design a service dashboard?
- What is the difference between liveness, readiness and startup checks?
- How do you collect logs and metrics in Kubernetes?
- What makes an error log line useful during an incident?
- What goes into a good blameless postmortem?
- Can logging hurt application performance? How do you mitigate it?
- What are synthetic monitoring and real-user monitoring (RUM)?
- How do you control the cost of logs and telemetry?
- What is continuous profiling and when is it useful?
- How do you add observability to a frontend application?
- How does chaos engineering relate to observability?
- Why should you monitor business metrics, not just technical ones?
- Explain the Prometheus metric types: counter, gauge, histogram, summary.
- How do you find slow database queries in production?
- How do log rotation and retention work for services that write log files?
- How do you observe the impact of a deployment or feature flag?
- What is eBPF and why is it popular for observability?
- How do you keep log context (user, request) in async or multi-threaded code?
- What's the difference between monitoring and observability?
Performance & Scalability Core 30
- Most asked What is the difference between vertical and horizontal scaling?
- Most asked What's the difference between latency and throughput?
- Most asked How do you approach a performance problem methodically?
- Most asked How do load balancers work, and what algorithms do they use?
- Most asked Why are timeouts, retries and circuit breakers essential for performance and reliability?
- Most asked What are the most common database-related performance problems?
- Why should application servers be stateless, and where does state go?
- How does autoscaling work and what are its pitfalls?
- What are common concurrency bottlenecks in web applications?
- How does a CDN improve performance?
- When does asynchronous I/O improve performance, and when doesn't it?
- How can garbage collection affect application performance?
- What are Core Web Vitals and how do you improve them?
- How do you load test a system effectively?
- How would you scale a read-heavy system?
- How would you scale a write-heavy system?
- How do you reduce payload sizes in web applications?
- How do you do capacity planning?
- What is the 'chatty API' problem and how do you fix it?
- How can moving work to background jobs improve performance?
- Why does tail latency matter more as systems fan out?
- Why does connection reuse (keep-alive, pooling) matter for performance?
- How can serialization become a bottleneck?
- What is load shedding?
- What is graceful degradation?
- What changes when you scale to multiple regions?
- How can adding caches or indexes hurt performance?
- What are cold starts and how do you reduce them?
- What are common mistakes when benchmarking?
- How do algorithm and data structure choices affect backend performance?
Networking Core 40
- Most asked What happens, at the network level, when you type a URL into a browser and press Enter?
- Most asked What's the difference between TCP and UDP, and when would you choose UDP?
- Most asked What is CIDR notation? How many usable addresses are in a /26, and in an AWS /26 subnet?
- Most asked How does DNS resolution work, and what does a record's TTL control?
- Most asked What does TLS provide, and how does certificate validation work?
- Most asked What do 502, 503 and 504 errors from a load balancer usually mean?
- Most asked How does NAT work, and what are its limits?
- Most asked What's the difference between stateful and stateless firewalls? Give cloud examples.
- Most asked A service is unreachable. How do you troubleshoot it systematically?
- Most asked Design a VPC for a three-tier web application on AWS.
- Most asked Security groups versus network ACLs: how do they differ and how would you use them together?
- Most asked Explain the OSI and TCP/IP models. Why do engineers still talk about 'layer 4' and 'layer 7'?
- Most asked Walk through the TCP three-way handshake and connection teardown. What is TIME_WAIT and why can it cause problems?
- Most asked Compare HTTP/1.1, HTTP/2 and HTTP/3.
- Most asked Compare layer 4 and layer 7 load balancers. When would you use each?
- Most asked Why can keep-alive timeouts cause intermittent 502 errors behind a load balancer?
- Most asked How should you design health checks for services behind a load balancer?
- Most asked What makes a subnet public or private in AWS?
- Most asked How do you connect many VPCs together, and why isn't VPC peering always enough?
- Most asked How do private subnets reach AWS services like S3 without going over the internet?
- Most asked How would you migrate a production domain to a new load balancer with no downtime?
- What are the private IPv4 ranges, and what are 100.64.0.0/10 and 169.254.0.0/16 used for?
- How does a router choose a route when several routes match a destination?
- What is MTU, and how can it break connections?
- What happens if two networks you need to connect have overlapping CIDRs, and what can you do?
- Your EKS pods are stuck in Pending with IP assignment errors. What's happening and how do you fix it?
- Design networking for a multi-account organisation on AWS.
- Calls to one external API time out intermittently at peak, while other destinations work. What do you suspect?
- Why does IPv6 exist and what changes in practice when you adopt it?
- CNAME, A and alias records: why can't the zone apex be a CNAME, and how do cloud DNS services work around it?
- What are ephemeral ports?
- How do you get the real client IP behind proxies and load balancers safely?
- How does DNS work inside a VPC, and how do you resolve names between the cloud and on-premises?
- How would you give an application fixed outbound IP addresses for a partner's allow-list?
- What are the options for connecting on-premises networks to the cloud?
- What is a CDN and how does it improve performance and resilience?
- How do you reduce cloud networking costs?
- What's the difference between Azure VNets and Google Cloud VPCs compared with AWS VPCs?
- How do you secure administrative access to instances in private subnets?
- What are VPC Flow Logs and what can't they tell you?
Linux Core 13
- Most asked A Linux server has high CPU usage. How do you find the cause?
- Most asked What do top, htop, vmstat, iostat, ss and lsof each tell you?
- Most asked Write a script that alerts when disk usage passes a threshold.
- How do you troubleshoot DNS resolution and network connectivity on Linux?
- A server keeps running out of memory and the kernel kills processes. How do you investigate?
- The disk is full, but du shows far less usage than df. What's going on?
- How do systemd units work, and how do you debug a service that won't start?
- Explain Linux file permissions, ownership and the special bits.
- What is load average, and how is it different from CPU utilisation?
- How do you find what's listening on a port and which process owns it?
- How do you search logs effectively with journalctl and standard tools?
- What happens when a Linux system boots?
- What is the difference between kill, kill -9 and a graceful shutdown?
DevOps Engineer Recommended 72
- Most asked Design a CI/CD pipeline for a containerised microservice from commit to production.
- Most asked How do you handle database schema migrations in an automated deployment pipeline?
- Most asked How do you handle secrets in CI/CD pipelines securely?
- Most asked What are DORA metrics, and how would you use them without gaming them?
- Most asked What happens when you type a URL into a browser and press Enter?
- 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 Design an end-to-end CI/CD and GitOps setup for 50 microservices, with testing, security scanning, artifact management and production deployment.
- 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 Trunk-based development or GitFlow: which do you prefer, and why?
- Most asked What does 'build once, deploy many' mean, and why does it matter?
- Most asked How do you secure the CI/CD pipeline itself against supply-chain attacks?
- Most asked Your CI pipeline takes 45 minutes. How would you speed it up?
- Most asked What is platform engineering, and how does it relate to DevOps?
- Most asked How does DNS work, and what DNS issues have you seen in production?
- Most asked Explain the difference between L4 and L7 load balancers and when to use each.
- 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 What is the difference between continuous integration, continuous delivery and continuous deployment, in practice?
- Most asked A production deployment failed halfway and the site is partially broken. What do you do?
- Most asked Which Linux skills matter most for a DevOps engineer?
- 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?
- Most asked Describe a time you improved deployment reliability or speed. How did you measure it?
- Most asked A Dockerfile copies a .env file, uses it, and deletes it in a later RUN step. Is the secret safe?
- Most asked Why is deploying the latest tag a bad idea, and what should you do instead?
- 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?
- Most asked How do Kubernetes rolling updates work, and how do maxSurge and maxUnavailable affect them?
- After a release, checkout becomes slow. How do you use traces, JVM metrics, connection pool metrics and database monitoring to find the cause?
- How do you implement automated rollback in a deployment pipeline?
- A service shows 30% average CPU but high p99 latency. How could CPU limits be involved?
- Design an internal delivery platform so twelve product teams can deploy daily.
- How would you enforce common security controls across hundreds of CI/CD pipelines so teams can't bypass them?
- Your organisation manages development, QA, staging and production by hand. Design automation with Terraform, Ansible and GitOps.
- 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?
- 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?
- Your Java service throws 'connection pool exhausted' errors. How do you investigate?
- How do you prioritise several production incidents happening at the same time?
- How do you deal with flaky tests?
- Mutable or immutable infrastructure: what is the difference?
- How do you manage configuration across environments without drift?
- What are ephemeral (preview) environments, and what are their trade-offs?
- How would you migrate a team from Jenkins to GitHub Actions (or another CI system)?
- What are the security risks of self-hosted CI runners, and how do you mitigate them?
- How do you keep dependencies up to date safely across many repositories?
- 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?
- What is configuration management with Ansible, and where does it still fit?
- What is the difference between a canary release, a feature flag and an A/B test?
- How do you manage TLS certificates across many services?
- What does 'shift left' on security mean in practice?
- 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?
- Nodes are running out of disk space. What are the usual causes and fixes?
- What does `set -euo pipefail` do in a bash script, and what are its pitfalls?
- What is real-user monitoring, and how do tools like Akamai mPulse help an ecommerce team?
- How do you build golden machine images, and why?
- How do you approach a monorepo's CI at scale?
- What is an artifact repository, and how do you manage it?
- What is chaos engineering's place in a DevOps practice?
Docker Recommended 39
- Most asked What is a container, and how does it differ from a virtual machine?
- Most asked What is the difference between an image and a container, and how do image layers work?
- Most asked How does Docker build caching work, and how do you order a Dockerfile to use it well?
- Most asked What are multi-stage builds, and why use them?
- Most asked CMD or ENTRYPOINT: what is the difference, and what are exec and shell forms?
- Most asked What are Dockerfile best practices for production images?
- Most asked ARG or ENV: what is the difference, and how do you pass secrets into a build safely?
- Most asked How do you secure Docker containers and images?
- Most asked Write a production Dockerfile for a Python web app: small, non-root and cache-friendly.
- Most asked Why does PID 1 matter in containers, and what problems can it cause?
- Most asked How do you make Docker images smaller?
- Most asked Volumes, bind mounts and tmpfs: when do you use each?
- Most asked How does Docker networking work? Explain bridge, host and user-defined networks.
- Most asked What is Docker Compose used for, and how do you handle service start-up order?
- 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?
- Most asked What is a software supply chain attack on containers, and how do you defend against it?
- Why is mounting the Docker socket into a container dangerous?
- What is BuildKit, and what does docker buildx add?
- COPY or ADD: what is the difference?
- What does HEALTHCHECK do in a Dockerfile, and do orchestrators use it?
- How do container logs work in Docker, and how do you stop them filling the disk?
- What is the OCI, and how do Docker, containerd, runc and Podman relate?
- What should you consider when choosing a base image?
- How do you handle configuration for containers across environments?
- What is the Docker build context, and why does it matter?
- Why might a container work on your laptop but fail on a server or in CI?
- 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?
- Explain what happens when you run docker run nginx.
- What is Docker Swarm, and why do most teams use Kubernetes or managed services instead?
- What are rootless Docker and user namespaces?
- How do you clean up disk space used by Docker?
- How do you run multiple processes in one container, and should you?
- What changed with Docker Desktop licensing, and what are the alternatives?
- How do you handle time zones, locales and certificates in minimal images?
- Docker Compose in production: is it appropriate?
Terraform Recommended 59
- Most asked What is Terraform, and how does it work at a high level?
- Most asked What is Terraform state, why is it needed, and where should it be stored?
- Most asked Walk through terraform init, plan and apply. What does each do?
- Most asked What are Terraform modules, and how do you design good ones?
- Most asked count or for_each: when do you use each?
- Most asked How do you handle secrets in Terraform?
- Most asked How would you run Terraform in CI/CD?
- Most asked A terraform plan wants to destroy and recreate a database. What do you do?
- Most asked When do you need depends_on in Terraform, and when is it a code smell?
- Most asked What are the main terraform state subcommands, and when do you use them?
- 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?
- Most asked What lifecycle settings does Terraform offer, and when do you use them?
- Most asked What is drift, and how do you detect and handle it?
- 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 Workspaces, separate state files, or separate directories: how do you manage multiple environments?
- Most asked How do you pin provider and module versions, and what is the dependency lock file?
- Most asked Terraform and Ansible: how do they differ, and do you need both?
- Most asked What are the most common Terraform mistakes you have seen in teams?
- Most asked Compare Terraform with CloudFormation, CDK and Pulumi.
- Most asked What does terraform plan -target do, and why is it risky?
- Most asked How do sensitive variables and outputs work in Terraform, and what are their limitations?
- Most asked Terraform or OpenTofu: what is the difference, and how would you choose?
- 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 nonprod and production Terraform configurations differ, and how do you enforce those differences?
- How should you split Terraform state for a large organisation?
- What is policy as code for Terraform, and which tools are used?
- How do you test Terraform code?
- Write a reusable Terraform module for a private, encrypted S3 bucket, and show how it's used.
- How do you bootstrap an S3 remote state backend for Terraform without a chicken-and-egg problem?
- What is the difference between an ECS task execution role and a task role, and how do you define them in Terraform?
- 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?
- What happens if two engineers apply at the same time without state locking?
- How would you recover a corrupted or lost Terraform state file?
- How do variable validation rules work in Terraform, and when should you use them?
- What happens if the CI runner crashes or loses connectivity during terraform apply?
- How does Terraform determine the order in which it creates resources?
- What is the difference between variables, locals and outputs?
- What are data sources, and when should you use them?
- What do dynamic blocks, for expressions and conditionals give you, and when do they hurt?
- How do you manage multiple accounts, regions or subscriptions in one Terraform configuration?
- The Terraform state lock is stuck. How do you handle it?
- What are provisioners, and why are they considered a last resort?
- 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 handle large-scale changes, such as a provider major version upgrade across many stacks?
- What does 'known after apply' mean, and why can it cause problems?
- How do you design a reusable Terraform module for an internal platform team to offer, for example 'a secure S3 bucket'?
- How do you roll back a bad Terraform change?
- What is the difference between terraform refresh, plan -refresh-only and apply -refresh-only?
- What are check blocks and pre/postconditions used for?
- What is Terragrunt, and when is it useful?
- How do you tag resources consistently with Terraform?
- What is HCP Terraform (Terraform Cloud), and what does it add?
- What is Terraform's resource graph parallelism, and when would you change it?
Database Concurrency & Scaling Recommended 41
- 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?
- Most asked After a deploy, logs show hundreds of 'deadlock detected' errors per hour on checkout. Walk through how you'd investigate.
- Most asked Your service throws 'connection pool exhausted' errors but database CPU is only 20%. What's going on?
- Most asked Why shouldn't you call a payment API inside a database transaction?
- Most asked What's the difference between Read Committed and Repeatable Read in practice?
- Most asked Database CPU is at 85%. How do you decide what to optimise before buying a bigger server?
- Most asked A user saves their profile and the next page shows the old data. Reads go to replicas. How do you fix it?
- 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 An order is saved but the 'OrderPlaced' event sometimes never reaches Kafka. How do you fix it?
- Most asked How do you prevent overselling in a flash sale with 50,000 buyers in the first minute?
- Most asked A Spring @Transactional method threw an exception but the data was still saved. What are the likely causes?
- Scale a read-heavy product catalog 100× — where do you start?
- Explain write skew with a real example and how to prevent it.
- How would you prevent double-booking a meeting room?
- When would you choose optimistic locking over SELECT … FOR UPDATE?
- How do you build a reliable job queue on Postgres?
- A customer has two active subscriptions created 40 ms apart. How do you make that impossible?
- A 20 ms ALTER TABLE caused a multi-minute outage. Explain and prevent it.
- A viral post's like counter makes requests slow. How do you handle hot rows?
- How do you retry a transaction safely after a serialization failure or deadlock?
- How do you choose the column order of a composite index?
- An API's deep pages are slow and a sync job sees duplicate and missing rows. What would you change?
- What risks come with automatic cross-region database failover?
- How would you make webhook processing exactly-once from the database's point of view?
- A scheduled job runs on every app instance and double-bills customers. How do you fix it?
- Why do 'get or create' operations deadlock on MySQL under load?
- You have 14 services autoscaling against one Postgres and hit 'too many clients'. What's the long-term fix?
- A dashboard aggregates years of data on every view. How would you speed it up?
- How do you delete 90 days of old events every night without hurting production?
- Why does changing `id % 8` to `id % 12` make resharding painful, and what's the alternative?
- 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?
- What is the difference between partitioning and sharding?
- When should you NOT use SKIP LOCKED?
- Why might you avoid running reports on the primary database?
- What does `idle in transaction` in pg_stat_activity tell you, and why is it dangerous?
- What's the difference between a deadlock and a lock wait timeout?
- How does Postgres SERIALIZABLE differ from MySQL SERIALIZABLE?
- Your read replicas lag 40 seconds during a nightly import. What do you do?
Messaging & Queues Recommended 29
- Most asked Why use message queues, and what problems do they solve?
- Most asked Explain at-most-once, at-least-once and exactly-once delivery.
- Most asked How do you make message consumers idempotent?
- Most asked Compare Kafka and RabbitMQ (and managed queues like SQS).
- Most asked How should retries and dead-letter queues work?
- Most asked What is the dual-write problem and how do you avoid it?
- How do you guarantee message ordering?
- What is backpressure and how do message systems handle it?
- What is the difference between a work queue and publish/subscribe?
- How do you design background job processing for a web application?
- What are event sourcing and CQRS?
- How do you evolve message schemas safely?
- How do Kafka partitions and consumer groups work?
- Choreography vs orchestration for multi-service workflows?
- How do you schedule delayed or future work with queues?
- What should you monitor in a messaging system?
- How would you design a notification system using queues?
- When is Redis (lists or streams) good enough as a queue?
- How does Kafka achieve exactly-once semantics?
- How do you handle large payloads in messages?
- How do you test asynchronous, message-driven code?
- How do you implement priority processing?
- What is change data capture (CDC) and how is it used?
- When would you use a workflow engine like Temporal instead of plain queues?
- How do you increase throughput of message processing?
- When should a request be handled synchronously versus asynchronously?
- How do you secure message brokers?
- What is the inbox pattern?
- What is stream processing and when do you need it?
CI/CD & Deployment Recommended 33
- Most asked What's the difference between continuous integration, continuous delivery and continuous deployment?
- Most asked What stages does a typical CI/CD pipeline contain?
- Most asked Compare rolling, blue-green and canary deployments.
- Most asked How do you run database migrations without downtime?
- Most asked What are best practices for writing Dockerfiles?
- Most asked What's the difference between liveness and readiness probes?
- Most asked How do you handle flaky tests in CI?
- Most asked How would you design CI/CD for a microservices architecture?
- Most asked What is shift-left testing, and what security scanning belongs in a CI pipeline?
- Most asked How do you promote a single build artifact from development through staging to production?
- Most asked How should secrets be handled in CI/CD pipelines?
- Most asked What is pipeline as code and why does it matter?
- What are the core Kubernetes objects a web service needs?
- What is graceful shutdown and why does it matter for deployments?
- How do you design for fast rollback?
- How do feature flags change the way teams release software?
- What is trunk-based development?
- How do you secure the software supply chain in CI/CD?
- How should application configuration be managed across environments?
- What is infrastructure as code and why use it?
- What are self-hosted vs managed CI runners, and when do you choose each?
- How do you use build caching and dependency caching to speed up CI pipelines?
- What is GitOps?
- How do you speed up CI pipelines?
- How should build artifacts be versioned and promoted?
- What should you monitor during and after a deployment?
- What environments do teams typically use, and how do you keep them consistent?
- What are the CI/CD trade-offs of monorepos vs polyrepos?
- When would you choose serverless functions vs containers vs VMs for deployment?
- What are DORA metrics?
- What is semantic versioning?
- What should happen when a deployment causes an incident?
- What is progressive delivery?
Behavioral & STAR Recommended 41
- Most asked Tell me about a time you worked with a difficult teammate.
- Most asked Describe a disagreement you had with a coworker and how you resolved it.
- Most asked Tell me about a time you disagreed with your manager's decision.
- Most asked Tell me about a time you failed at something important.
- Most asked Describe a mistake that had a significant impact and how you handled it.
- Most asked Tell me about a time you had to work with unclear or changing requirements.
- Most asked Tell me about a time you missed a deadline.
- Most asked Tell me about a time you received critical feedback and how you responded.
- Most asked Describe a project you owned from start to finish.
- Most asked Tell me about a time you had to juggle multiple competing deadlines.
- Tell me about a time you led a project without formal authority.
- Tell me about a time you took responsibility for a team failure.
- Describe a time you had to collaborate with someone whose working style was very different from yours.
- Tell me about a successful project you completed as part of a team.
- Tell me about a time you helped a struggling teammate.
- Describe a time you had to push back on a stakeholder's request.
- Describe a time you had to deliver unwelcome feedback to a peer.
- Describe a time you had to motivate a team through a difficult period.
- Tell me about a decision you made that was unpopular with your team.
- Tell me about a time you had to make a decision with incomplete information as a leader.
- Tell me about a project that didn't go as planned.
- Tell me about a time you went above and beyond your job description.
- Describe a time you identified a problem no one had asked you to solve.
- Describe a situation where you had to make a decision without all the information you wanted.
- Tell me about a time priorities shifted midway through a project.
- Describe how you decide what to work on when everything feels urgent.
- Tell me about a time you helped a colleague grow their skills.
- Tell me about a time you received feedback that was hard to hear.
- Describe a time you had to rely on a team member you didn't fully trust yet.
- Tell me about a conflict between two people on your team and how you handled it.
- Describe a time you delegated an important task.
- Tell me about a time you had to say no to your manager.
- Describe how you handle working on something without a clear owner.
- Tell me about a time you had to say no to a request to protect a deadline.
- Describe a time you had to deprioritize something important.
- Describe your approach to onboarding a new team member.
- Tell me about a time you gave someone feedback that changed their behavior.
- Describe a time you learned something valuable from someone more junior than you.
- Describe how you typically respond to criticism.
- Tell me about a time you gave feedback that was poorly received.
- Describe a time feedback from a peer changed how you approached your work.