DevOps Engineer · interview questions

DevOps Engineer interview questions

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

DevOps Engineer Core 72

  1. Most asked Design a CI/CD pipeline for a containerised microservice from commit to production.
  2. Most asked How do you handle database schema migrations in an automated deployment pipeline?
  3. Most asked How do you handle secrets in CI/CD pipelines securely?
  4. Most asked What are DORA metrics, and how would you use them without gaming them?
  5. Most asked What happens when you type a URL into a browser and press Enter?
  6. 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?
  7. Most asked Pods keep restarting with OOMKilled under load. How do you investigate and fix it?
  8. Most asked Every deployment produces a burst of 502s. What do you check?
  9. 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?
  10. Most asked Your Kubernetes-based ecommerce site goes down during peak traffic. Walk through your first 15 minutes.
  11. Most asked Design an end-to-end CI/CD and GitOps setup for 50 microservices, with testing, security scanning, artifact management and production deployment.
  12. 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?
  13. Most asked A production API credential was committed to Git. What do you do immediately, and how do you stop it happening again?
  14. Most asked Trunk-based development or GitFlow: which do you prefer, and why?
  15. Most asked What does 'build once, deploy many' mean, and why does it matter?
  16. Most asked How do you secure the CI/CD pipeline itself against supply-chain attacks?
  17. Most asked Your CI pipeline takes 45 minutes. How would you speed it up?
  18. Most asked What is platform engineering, and how does it relate to DevOps?
  19. Most asked How does DNS work, and what DNS issues have you seen in production?
  20. Most asked Explain the difference between L4 and L7 load balancers and when to use each.
  21. Most asked How do you approach observability as a DevOps engineer?
  22. Most asked How do you control cloud costs as part of DevOps (FinOps)?
  23. Most asked What is the difference between continuous integration, continuous delivery and continuous deployment, in practice?
  24. Most asked A production deployment failed halfway and the site is partially broken. What do you do?
  25. Most asked Which Linux skills matter most for a DevOps engineer?
  26. Most asked How do you implement GitOps for both infrastructure and applications?
  27. Most asked How do you plan and test disaster recovery as a DevOps engineer?
  28. Most asked How would you introduce DevOps practices into a team that deploys manually once a month?
  29. Most asked Describe a time you improved deployment reliability or speed. How did you measure it?
  30. Most asked A Dockerfile copies a .env file, uses it, and deletes it in a later RUN step. Is the secret safe?
  31. Most asked Why is deploying the latest tag a bad idea, and what should you do instead?
  32. Most asked Your on-call gets hundreds of pages a week. How do you fix the alerting?
  33. Most asked A release worked in staging but failed in production. How do you prevent that class of problem?
  34. Most asked How do Kubernetes rolling updates work, and how do maxSurge and maxUnavailable affect them?
  35. After a release, checkout becomes slow. How do you use traces, JVM metrics, connection pool metrics and database monitoring to find the cause?
  36. How do you implement automated rollback in a deployment pipeline?
  37. A service shows 30% average CPU but high p99 latency. How could CPU limits be involved?
  38. Design an internal delivery platform so twelve product teams can deploy daily.
  39. How would you enforce common security controls across hundreds of CI/CD pipelines so teams can't bypass them?
  40. Your organisation manages development, QA, staging and production by hand. Design automation with Terraform, Ansible and GitOps.
  41. Two engineers ran Terraform against production at the same time. One run failed and left the infrastructure half-changed. How do you recover safely?
  42. 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?
  43. How do you implement approval gates and separation of duties for production deployments?
  44. How do you integrate SonarQube, SAST, DAST and container image scanning into CI/CD without slowing everyone down?
  45. What would you monitor during a high-traffic event such as Black Friday, and how do you prepare?
  46. How do you rotate production credentials without downtime?
  47. Your Java service throws 'connection pool exhausted' errors. How do you investigate?
  48. How do you prioritise several production incidents happening at the same time?
  49. How do you deal with flaky tests?
  50. Mutable or immutable infrastructure: what is the difference?
  51. How do you manage configuration across environments without drift?
  52. What are ephemeral (preview) environments, and what are their trade-offs?
  53. How would you migrate a team from Jenkins to GitHub Actions (or another CI system)?
  54. What are the security risks of self-hosted CI runners, and how do you mitigate them?
  55. How do you keep dependencies up to date safely across many repositories?
  56. How do you write reliable shell scripts for automation?
  57. How do you release a new version of a stateful service, such as a message broker or database, with minimal downtime?
  58. What is configuration management with Ansible, and where does it still fit?
  59. What is the difference between a canary release, a feature flag and an A/B test?
  60. How do you manage TLS certificates across many services?
  61. What does 'shift left' on security mean in practice?
  62. How do you make deployments of a monolith safer when you cannot break it up soon?
  63. How do you decide what to automate first?
  64. How do you structure on-call and incident handling in a DevOps team?
  65. How do you approach a multi-cloud strategy?
  66. Nodes are running out of disk space. What are the usual causes and fixes?
  67. What does `set -euo pipefail` do in a bash script, and what are its pitfalls?
  68. What is real-user monitoring, and how do tools like Akamai mPulse help an ecommerce team?
  69. How do you build golden machine images, and why?
  70. How do you approach a monorepo's CI at scale?
  71. What is an artifact repository, and how do you manage it?
  72. What is chaos engineering's place in a DevOps practice?

DevOps Fundamentals Core 40

  1. Most asked CI vs CD
  2. Most asked infrastructure as code
  3. Most asked DevOps tooling: explain Docker image vs container.
  4. Most asked DevOps tooling: explain Kubernetes Pod.
  5. Most asked DevOps tooling: explain liveness vs readiness probes.
  6. Most asked DevOps tooling: explain Terraform state.
  7. Most asked DevOps tooling: explain blue/green & canary.
  8. Most asked Security in DevOps: secrets management?
  9. Most asked DevOps tooling: explain Deployment vs StatefulSet.
  10. What is DevOps?
  11. continuous delivery vs deployment
  12. DevOps tooling: explain Dockerfile best practices.
  13. DevOps tooling: explain Service / Ingress.
  14. DevOps tooling: explain Terraform plan/apply.
  15. DevOps tooling: explain Jenkins / GitHub Actions.
  16. Security in DevOps: DevSecOps?
  17. Security in DevOps: least privilege IAM?
  18. shift left
  19. GitOps
  20. SRE vs DevOps
  21. blameless postmortems
  22. DORA metrics
  23. DevOps tooling: explain ConfigMap / Secret.
  24. DevOps tooling: explain HPA.
  25. DevOps tooling: explain artifact repositories.
  26. DevOps tooling: explain Prometheus / Grafana.
  27. DevOps tooling: explain OpenTelemetry.
  28. DevOps tooling: explain feature flags.
  29. Security in DevOps: image scanning?
  30. Security in DevOps: network policies?
  31. Security in DevOps: supply chain attacks?
  32. toil
  33. DevOps tooling: explain Ansible.
  34. DevOps tooling: explain ELK / OpenSearch.
  35. DevOps tooling: explain Helm.
  36. DevOps tooling: explain service mesh.
  37. Security in DevOps: SBOM?
  38. Security in DevOps: policy as code?
  39. What is infrastructure as code and why is it useful?
  40. How does continuous integration differ from continuous deployment?

Docker Core 39

  1. Most asked What is a container, and how does it differ from a virtual machine?
  2. Most asked What is the difference between an image and a container, and how do image layers work?
  3. Most asked How does Docker build caching work, and how do you order a Dockerfile to use it well?
  4. Most asked What are multi-stage builds, and why use them?
  5. Most asked CMD or ENTRYPOINT: what is the difference, and what are exec and shell forms?
  6. Most asked What are Dockerfile best practices for production images?
  7. Most asked ARG or ENV: what is the difference, and how do you pass secrets into a build safely?
  8. Most asked How do you secure Docker containers and images?
  9. Most asked Write a production Dockerfile for a Python web app: small, non-root and cache-friendly.
  10. Most asked Why does PID 1 matter in containers, and what problems can it cause?
  11. Most asked How do you make Docker images smaller?
  12. Most asked Volumes, bind mounts and tmpfs: when do you use each?
  13. Most asked How does Docker networking work? Explain bridge, host and user-defined networks.
  14. Most asked What is Docker Compose used for, and how do you handle service start-up order?
  15. Most asked How do you limit a container's CPU and memory, and what happens when it exceeds them?
  16. Most asked How should you tag Docker images, and why is 'latest' a problem?
  17. Most asked How do you debug a container that exits immediately or behaves differently in production?
  18. Most asked How do you run Docker builds in CI pipelines efficiently and safely?
  19. Most asked What is a software supply chain attack on containers, and how do you defend against it?
  20. Why is mounting the Docker socket into a container dangerous?
  21. What is BuildKit, and what does docker buildx add?
  22. COPY or ADD: what is the difference?
  23. What does HEALTHCHECK do in a Dockerfile, and do orchestrators use it?
  24. How do container logs work in Docker, and how do you stop them filling the disk?
  25. What is the OCI, and how do Docker, containerd, runc and Podman relate?
  26. What should you consider when choosing a base image?
  27. How do you handle configuration for containers across environments?
  28. What is the Docker build context, and why does it matter?
  29. Why might a container work on your laptop but fail on a server or in CI?
  30. How do you run a database in Docker for local development, and should you do it in production?
  31. How do you speed up a slow Docker build?
  32. Explain what happens when you run docker run nginx.
  33. What is Docker Swarm, and why do most teams use Kubernetes or managed services instead?
  34. What are rootless Docker and user namespaces?
  35. How do you clean up disk space used by Docker?
  36. How do you run multiple processes in one container, and should you?
  37. What changed with Docker Desktop licensing, and what are the alternatives?
  38. How do you handle time zones, locales and certificates in minimal images?
  39. Docker Compose in production: is it appropriate?

Kubernetes Core 60

  1. Most asked Describe the Kubernetes architecture: what runs on the control plane and what runs on the nodes?
  2. Most asked What happens, step by step, when you run kubectl apply for a Deployment?
  3. Most asked Deployment, StatefulSet, DaemonSet, Job and CronJob: when do you use each?
  4. Most asked How do rolling updates work in a Deployment, and how do you roll back?
  5. Most asked Explain the Service types: ClusterIP, NodePort, LoadBalancer, ExternalName and headless.
  6. Most asked ConfigMaps and Secrets: how do they differ, and how should secrets really be handled?
  7. Most asked How does the scheduler place pods? Explain resource requests, node affinity, taints and tolerations.
  8. Most asked What is the difference between resource requests and limits, and what are the QoS classes?
  9. Most asked Liveness, readiness and startup probes: how do you configure them correctly?
  10. Most asked How do you make pods shut down gracefully without dropping requests?
  11. Most asked A pod is in CrashLoopBackOff. How do you debug it?
  12. Most asked How does autoscaling work in Kubernetes? Compare HPA, VPA, Cluster Autoscaler and Karpenter.
  13. Most asked How does RBAC work in Kubernetes, and how do you apply least privilege?
  14. Most asked How do you secure workloads on Kubernetes? Explain Pod Security Standards and securityContext.
  15. Most asked What is GitOps, and how do Argo CD or Flux implement it?
  16. Most asked Write a Kubernetes Deployment and Service for a web API with probes, resource requests and a rolling update strategy.
  17. Most asked What are Kubernetes namespaces, when should you create them, and what isolation do they provide?
  18. Most asked What is the reconciliation loop, and why is Kubernetes called declarative?
  19. Most asked Ingress or Gateway API: how do you expose HTTP services, and what has changed recently?
  20. Most asked What are NetworkPolicies, and how would you lock down traffic in a namespace?
  21. Most asked How do persistent volumes work? Explain PV, PVC, StorageClass and CSI.
  22. Most asked What are Custom Resource Definitions and operators?
  23. Most asked Helm or Kustomize: how do you manage manifests?
  24. Most asked How do you upgrade a Kubernetes cluster safely?
  25. Most asked How do you monitor a Kubernetes cluster and the applications on it?
  26. Most asked Your application on Kubernetes has intermittent 502/503 errors during deployments. What would you investigate?
  27. Most asked What is Kubernetes not good at, or when would you avoid it?
  28. Most asked How do you control costs in Kubernetes?
  29. Most asked What do the common kubectl debugging commands tell you?
  30. Most asked How would you design a production-ready Kubernetes platform for several teams?
  31. What is a Pod, and why are containers grouped into Pods?
  32. How does pod networking work in Kubernetes, and what does the CNI plugin do?
  33. Pods are stuck in Pending or ImagePullBackOff. What do you check?
  34. What is a PodDisruptionBudget, and why does it matter?
  35. How do you give pods access to cloud resources such as S3 or a database without static credentials?
  36. A Service is not reachable from another pod. How do you troubleshoot it?
  37. What are the pod lifecycle phases, and how do you use them for debugging?
  38. How do you find and fix deprecated Kubernetes APIs before a cluster upgrade?
  39. What are init containers and sidecar containers?
  40. How does DNS work in a Kubernetes cluster, and what is the ndots problem?
  41. Should you run databases on Kubernetes?
  42. What are admission controllers and webhooks used for?
  43. How do you organise multi-tenancy in a Kubernetes cluster?
  44. How do you back up a Kubernetes cluster?
  45. What is etcd's role, and what can go wrong with it?
  46. What is a service mesh, and when is it worth it?
  47. How do container logs work in Kubernetes?
  48. How do topology spread constraints and anti-affinity improve availability?
  49. What are ResourceQuota and LimitRange?
  50. How does kube-proxy work, and what are the alternatives?
  51. Why might gRPC traffic be unevenly balanced across pods in Kubernetes, and how do you fix it?
  52. How do you run batch and scheduled workloads reliably on Kubernetes?
  53. What is the Kubernetes container runtime, and why was dockershim removed?
  54. How do you manage TLS certificates in Kubernetes?
  55. How do you handle configuration and secrets for different environments with Kubernetes?
  56. What happens to workloads when a node fails?
  57. What are labels, selectors and annotations, and how should you use them?
  58. What are priority classes and preemption?
  59. What is the difference between a Deployment's rollout and a restart, and when would you use kubectl rollout restart?
  60. What are ephemeral containers and kubectl debug used for?

Terraform Core 59

  1. Most asked What is Terraform, and how does it work at a high level?
  2. Most asked What is Terraform state, why is it needed, and where should it be stored?
  3. Most asked Walk through terraform init, plan and apply. What does each do?
  4. Most asked What are Terraform modules, and how do you design good ones?
  5. Most asked count or for_each: when do you use each?
  6. Most asked How do you handle secrets in Terraform?
  7. Most asked How would you run Terraform in CI/CD?
  8. Most asked A terraform plan wants to destroy and recreate a database. What do you do?
  9. Most asked When do you need depends_on in Terraform, and when is it a code smell?
  10. Most asked What are the main terraform state subcommands, and when do you use them?
  11. Most asked Terraform apply fails halfway through — some resources were created, others were not. How do you recover?
  12. Most asked Someone manually deletes an EC2 instance that Terraform manages. What happens on the next plan and apply?
  13. Most asked What lifecycle settings does Terraform offer, and when do you use them?
  14. Most asked What is drift, and how do you detect and handle it?
  15. Most asked How do you bring existing infrastructure under Terraform management?
  16. Most asked How do you refactor Terraform code without destroying resources? Explain moved blocks and state mv.
  17. Most asked Workspaces, separate state files, or separate directories: how do you manage multiple environments?
  18. Most asked How do you pin provider and module versions, and what is the dependency lock file?
  19. Most asked Terraform and Ansible: how do they differ, and do you need both?
  20. Most asked What are the most common Terraform mistakes you have seen in teams?
  21. Most asked Compare Terraform with CloudFormation, CDK and Pulumi.
  22. Most asked What does terraform plan -target do, and why is it risky?
  23. Most asked How do sensitive variables and outputs work in Terraform, and what are their limitations?
  24. Most asked Terraform or OpenTofu: what is the difference, and how would you choose?
  25. How do you use Terraform to deploy the same infrastructure to nonprod and production AWS accounts?
  26. How do you configure OIDC authentication between GitHub Actions and AWS for Terraform pipelines?
  27. How should nonprod and production Terraform configurations differ, and how do you enforce those differences?
  28. How should you split Terraform state for a large organisation?
  29. What is policy as code for Terraform, and which tools are used?
  30. How do you test Terraform code?
  31. Write a reusable Terraform module for a private, encrypted S3 bucket, and show how it's used.
  32. How do you bootstrap an S3 remote state backend for Terraform without a chicken-and-egg problem?
  33. What is the difference between an ECS task execution role and a task role, and how do you define them in Terraform?
  34. How do you manage RDS passwords securely with Terraform?
  35. How do you set up CloudFront with an S3 origin using Origin Access Control in Terraform?
  36. How do you manage AWS costs with Terraform, and what resources help?
  37. What happens if two engineers apply at the same time without state locking?
  38. How would you recover a corrupted or lost Terraform state file?
  39. How do variable validation rules work in Terraform, and when should you use them?
  40. What happens if the CI runner crashes or loses connectivity during terraform apply?
  41. How does Terraform determine the order in which it creates resources?
  42. What is the difference between variables, locals and outputs?
  43. What are data sources, and when should you use them?
  44. What do dynamic blocks, for expressions and conditionals give you, and when do they hurt?
  45. How do you manage multiple accounts, regions or subscriptions in one Terraform configuration?
  46. The Terraform state lock is stuck. How do you handle it?
  47. What are provisioners, and why are they considered a last resort?
  48. How do you structure a Terraform repository for a team?
  49. How do you manage Kubernetes resources with Terraform, and what are the pitfalls?
  50. How do you handle large-scale changes, such as a provider major version upgrade across many stacks?
  51. What does 'known after apply' mean, and why can it cause problems?
  52. How do you design a reusable Terraform module for an internal platform team to offer, for example 'a secure S3 bucket'?
  53. How do you roll back a bad Terraform change?
  54. What is the difference between terraform refresh, plan -refresh-only and apply -refresh-only?
  55. What are check blocks and pre/postconditions used for?
  56. What is Terragrunt, and when is it useful?
  57. How do you tag resources consistently with Terraform?
  58. What is HCP Terraform (Terraform Cloud), and what does it add?
  59. What is Terraform's resource graph parallelism, and when would you change it?

Ansible Core 13

  1. Most asked Explain Ansible's architecture: control node, inventory, modules, playbooks, roles and handlers.
  2. Most asked What is idempotency in Ansible, and how do you keep your own tasks idempotent?
  3. Most asked Write an Ansible playbook that installs Nginx, deploys its configuration, enables the service and restarts it only when the configuration changes.
  4. Most asked How do you manage secrets with Ansible Vault?
  5. How do you structure reusable Ansible roles for several environments?
  6. Explain serial, delegate_to, when and notify in Ansible.
  7. How would you automate TLS certificate installation and renewal with Ansible?
  8. How would you configure 100 Linux servers consistently with Ansible?
  9. How do Ansible and Terraform work together in one delivery pipeline?
  10. A playbook run fails halfway through 50 hosts. What do you do?
  11. How do you test Ansible roles before they reach production?
  12. What is dynamic inventory, and why use it in the cloud?
  13. A playbook takes 40 minutes across 300 hosts. How do you speed it up?

Linux Core 13

  1. Most asked A Linux server has high CPU usage. How do you find the cause?
  2. Most asked What do top, htop, vmstat, iostat, ss and lsof each tell you?
  3. Most asked Write a script that alerts when disk usage passes a threshold.
  4. How do you troubleshoot DNS resolution and network connectivity on Linux?
  5. A server keeps running out of memory and the kernel kills processes. How do you investigate?
  6. The disk is full, but du shows far less usage than df. What's going on?
  7. How do systemd units work, and how do you debug a service that won't start?
  8. Explain Linux file permissions, ownership and the special bits.
  9. What is load average, and how is it different from CPU utilisation?
  10. How do you find what's listening on a port and which process owns it?
  11. How do you search logs effectively with journalctl and standard tools?
  12. What happens when a Linux system boots?
  13. What is the difference between kill, kill -9 and a graceful shutdown?

CI/CD & Deployment Core 33

  1. Most asked What's the difference between continuous integration, continuous delivery and continuous deployment?
  2. Most asked What stages does a typical CI/CD pipeline contain?
  3. Most asked Compare rolling, blue-green and canary deployments.
  4. Most asked How do you run database migrations without downtime?
  5. Most asked What are best practices for writing Dockerfiles?
  6. Most asked What's the difference between liveness and readiness probes?
  7. Most asked How do you handle flaky tests in CI?
  8. Most asked How would you design CI/CD for a microservices architecture?
  9. Most asked What is shift-left testing, and what security scanning belongs in a CI pipeline?
  10. Most asked How do you promote a single build artifact from development through staging to production?
  11. Most asked How should secrets be handled in CI/CD pipelines?
  12. Most asked What is pipeline as code and why does it matter?
  13. What are the core Kubernetes objects a web service needs?
  14. What is graceful shutdown and why does it matter for deployments?
  15. How do you design for fast rollback?
  16. How do feature flags change the way teams release software?
  17. What is trunk-based development?
  18. How do you secure the software supply chain in CI/CD?
  19. How should application configuration be managed across environments?
  20. What is infrastructure as code and why use it?
  21. What are self-hosted vs managed CI runners, and when do you choose each?
  22. How do you use build caching and dependency caching to speed up CI pipelines?
  23. What is GitOps?
  24. How do you speed up CI pipelines?
  25. How should build artifacts be versioned and promoted?
  26. What should you monitor during and after a deployment?
  27. What environments do teams typically use, and how do you keep them consistent?
  28. What are the CI/CD trade-offs of monorepos vs polyrepos?
  29. When would you choose serverless functions vs containers vs VMs for deployment?
  30. What are DORA metrics?
  31. What is semantic versioning?
  32. What should happen when a deployment causes an incident?
  33. What is progressive delivery?

Logging & Observability Core 35

  1. Most asked What are the three pillars of observability, and how do they differ?
  2. Most asked What is structured logging and why is it preferred over plain text logs?
  3. Most asked What is a correlation (request) ID and how do you propagate it?
  4. Most asked What is distributed tracing and how does OpenTelemetry fit in?
  5. Most asked What are the RED, USE and Four Golden Signals methods?
  6. Most asked What are SLIs, SLOs and error budgets?
  7. Most asked What should never be logged, and how do you prevent it?
  8. Most asked Walk through how you would investigate a sudden latency spike in production.
  9. How should log levels be used?
  10. Why should you track latency percentiles instead of averages?
  11. What are head-based and tail-based sampling in tracing?
  12. What is metric cardinality and why can it break a monitoring system?
  13. What makes a good alert?
  14. How do you design centralized log aggregation?
  15. How is audit logging different from application logging?
  16. What does an error-tracking tool (like Sentry) add beyond logs?
  17. How would you design a service dashboard?
  18. What is the difference between liveness, readiness and startup checks?
  19. How do you collect logs and metrics in Kubernetes?
  20. What makes an error log line useful during an incident?
  21. What goes into a good blameless postmortem?
  22. Can logging hurt application performance? How do you mitigate it?
  23. What are synthetic monitoring and real-user monitoring (RUM)?
  24. How do you control the cost of logs and telemetry?
  25. What is continuous profiling and when is it useful?
  26. How do you add observability to a frontend application?
  27. How does chaos engineering relate to observability?
  28. Why should you monitor business metrics, not just technical ones?
  29. Explain the Prometheus metric types: counter, gauge, histogram, summary.
  30. How do you find slow database queries in production?
  31. How do log rotation and retention work for services that write log files?
  32. How do you observe the impact of a deployment or feature flag?
  33. What is eBPF and why is it popular for observability?
  34. How do you keep log context (user, request) in async or multi-threaded code?
  35. What's the difference between monitoring and observability?

GitHub Actions Fundamentals Core 11

  1. Most asked Explain how a GitHub Actions workflow is structured: events, jobs, steps, runners and actions.
  2. Most asked How do you keep secrets safe in GitHub Actions, and why use OIDC to reach the cloud?
  3. Most asked Write a GitHub Actions workflow that tests, builds and pushes a Docker image, and deploys only from main.
  4. How do you speed up slow GitHub Actions workflows?
  5. Reusable workflows or composite actions: what's the difference, and when do you use each?
  6. How do you add approval gates to deployments in GitHub Actions?
  7. Why should you pin third-party actions to a commit SHA?
  8. What are the security risks of pull_request_target and self-hosted runners?
  9. How does the GITHUB_TOKEN work, and how do you limit its permissions?
  10. A workflow passes on main but fails for pull requests from forks. Why?
  11. How do you run a matrix build, and how do you stop one failing combination cancelling the rest?

Site Reliability Engineering Recommended 62

  1. Most asked What is Site Reliability Engineering, and how does it relate to DevOps?
  2. Most asked Define SLI, SLO and SLA, and explain how they relate.
  3. Most asked How do you choose good SLIs for a service?
  4. Most asked What is an error budget, and how should it be used?
  5. Most asked What is burn-rate alerting, and why is it better than alerting on raw error rates?
  6. Most asked What are the four golden signals?
  7. Most asked What makes a good alert? Explain symptom-based alerting and alert fatigue.
  8. Most asked What is the difference between monitoring and observability? Explain metrics, logs and traces.
  9. Most asked How should incident response be organised? Describe the key roles.
  10. Most asked What is a blameless postmortem, and what makes one effective?
  11. Most asked What is load shedding, and how does graceful degradation work?
  12. Most asked What is a cascading failure, and how do you prevent one?
  13. Most asked How should clients retry failed requests safely?
  14. Most asked How do canary releases and progressive delivery reduce risk?
  15. Most asked Explain RTO and RPO, and how they drive disaster recovery design.
  16. Most asked What is the difference between liveness, readiness and startup probes in Kubernetes?
  17. Most asked Latency for a service suddenly doubled. Walk me through how you investigate.
  18. Most asked How would you take a service from 99.9% to 99.99% availability?
  19. Most asked Write Prometheus alerting rules for an SLO of 99.9% successful requests using multi-window burn rates.
  20. Most asked How much downtime does each 'nine' allow, and how do you pick an SLO target?
  21. Most asked What is toil, and how do you reduce it?
  22. Most asked Why use percentiles instead of averages for latency, and how should percentiles be aggregated?
  23. Most asked How do you do capacity planning for a service?
  24. Most asked What is chaos engineering, and how do you start safely?
  25. Most asked A Linux server has a high load average. How do you find out why?
  26. Most asked Product wants to launch a feature, but the error budget is exhausted. What do you do?
  27. How does distributed tracing work, and what does OpenTelemetry provide?
  28. What makes an on-call rotation sustainable?
  29. How do you choose timeouts, and what is deadline propagation?
  30. Compare rolling, blue-green and canary deployments.
  31. During an incident, when do you roll back and when do you roll forward?
  32. Why do most outages follow changes, and how do you make change safer?
  33. Active-active or active-passive multi-region: what are the trade-offs?
  34. How do you design a service so that its dependencies' failures do not take it down?
  35. What Kubernetes settings matter most for reliability?
  36. Why are configuration changes risky, and how do you roll them out safely?
  37. Design the observability platform for an organisation with 200 services.
  38. A service's p99 latency doubles every day at 2 a.m. How do you investigate?
  39. What are the RED and USE methods?
  40. What is metric cardinality, and why can it become a problem?
  41. How do you define incident severity levels?
  42. What should a good runbook contain?
  43. What are MTTD, MTTR and MTBF, and what are their limitations?
  44. How would you load test a service before a big launch?
  45. What are common pitfalls of autoscaling?
  46. What is a circuit breaker, and when is it useful?
  47. How do feature flags help reliability, and what are their risks?
  48. What are game days and disaster recovery tests?
  49. What is a thundering herd, and how do you prevent it?
  50. Certificates expired and DNS changes are classic outage causes. How do you prevent them?
  51. Why is infrastructure as code important for reliability?
  52. A service's memory keeps growing until it is OOM-killed. How do you handle it?
  53. A disk filled up and took a service down. What do you do now and to prevent it next time?
  54. Why does latency rise sharply as utilisation approaches 100%?
  55. How do you define SLOs for batch jobs and data pipelines?
  56. What is a production readiness review?
  57. What are logging best practices for production systems?
  58. How do you make sure postmortem action items actually get done?
  59. How do rate limiting and admission control protect a service?
  60. What is the difference between synthetic monitoring and real-user monitoring?
  61. How do you design dashboards that help during an incident?
  62. What SRE engagement models exist?

Networking Recommended 40

  1. Most asked What happens, at the network level, when you type a URL into a browser and press Enter?
  2. Most asked What's the difference between TCP and UDP, and when would you choose UDP?
  3. Most asked What is CIDR notation? How many usable addresses are in a /26, and in an AWS /26 subnet?
  4. Most asked How does DNS resolution work, and what does a record's TTL control?
  5. Most asked What does TLS provide, and how does certificate validation work?
  6. Most asked What do 502, 503 and 504 errors from a load balancer usually mean?
  7. Most asked How does NAT work, and what are its limits?
  8. Most asked What's the difference between stateful and stateless firewalls? Give cloud examples.
  9. Most asked A service is unreachable. How do you troubleshoot it systematically?
  10. Most asked Design a VPC for a three-tier web application on AWS.
  11. Most asked Security groups versus network ACLs: how do they differ and how would you use them together?
  12. Most asked Explain the OSI and TCP/IP models. Why do engineers still talk about 'layer 4' and 'layer 7'?
  13. Most asked Walk through the TCP three-way handshake and connection teardown. What is TIME_WAIT and why can it cause problems?
  14. Most asked Compare HTTP/1.1, HTTP/2 and HTTP/3.
  15. Most asked Compare layer 4 and layer 7 load balancers. When would you use each?
  16. Most asked Why can keep-alive timeouts cause intermittent 502 errors behind a load balancer?
  17. Most asked How should you design health checks for services behind a load balancer?
  18. Most asked What makes a subnet public or private in AWS?
  19. Most asked How do you connect many VPCs together, and why isn't VPC peering always enough?
  20. Most asked How do private subnets reach AWS services like S3 without going over the internet?
  21. Most asked How would you migrate a production domain to a new load balancer with no downtime?
  22. What are the private IPv4 ranges, and what are 100.64.0.0/10 and 169.254.0.0/16 used for?
  23. How does a router choose a route when several routes match a destination?
  24. What is MTU, and how can it break connections?
  25. What happens if two networks you need to connect have overlapping CIDRs, and what can you do?
  26. Your EKS pods are stuck in Pending with IP assignment errors. What's happening and how do you fix it?
  27. Design networking for a multi-account organisation on AWS.
  28. Calls to one external API time out intermittently at peak, while other destinations work. What do you suspect?
  29. Why does IPv6 exist and what changes in practice when you adopt it?
  30. CNAME, A and alias records: why can't the zone apex be a CNAME, and how do cloud DNS services work around it?
  31. What are ephemeral ports?
  32. How do you get the real client IP behind proxies and load balancers safely?
  33. How does DNS work inside a VPC, and how do you resolve names between the cloud and on-premises?
  34. How would you give an application fixed outbound IP addresses for a partner's allow-list?
  35. What are the options for connecting on-premises networks to the cloud?
  36. What is a CDN and how does it improve performance and resilience?
  37. How do you reduce cloud networking costs?
  38. What's the difference between Azure VNets and Google Cloud VPCs compared with AWS VPCs?
  39. How do you secure administrative access to instances in private subnets?
  40. What are VPC Flow Logs and what can't they tell you?

Cloud Engineer Recommended 43

  1. Most asked What are regions and availability zones, and how do you use them for resilience?
  2. Most asked How is an AWS IAM request evaluated when several policies apply?
  3. Most asked How do you eliminate long-lived credentials in a cloud environment?
  4. Most asked How do you keep object storage buckets from being exposed publicly?
  5. Most asked What do Multi-AZ deployments and read replicas give you for managed databases?
  6. Most asked How do you approach cloud cost optimisation?
  7. Most asked Explain RTO and RPO and the four disaster recovery strategies.
  8. Most asked An application on AWS suddenly gets AccessDenied when reading from S3. How do you troubleshoot it?
  9. Most asked Design a highly available web application on AWS that survives the loss of an availability zone.
  10. Most asked Explain IaaS, PaaS, SaaS and serverless with examples from AWS, Azure and Google Cloud.
  11. Most asked Explain the shared responsibility model. What's the customer responsible for with a managed database?
  12. Most asked What security services and settings belong in every cloud account from day one?
  13. Most asked How would you design a multi-account (landing zone) structure?
  14. Most asked How do you choose between VMs, containers and serverless functions for a new service?
  15. Most asked What should you design for when using serverless functions?
  16. Most asked Compare object, block and file storage in the cloud.
  17. Most asked How do you process queue messages safely in the cloud?
  18. Most asked How do you make a workload resilient to an availability zone failure?
  19. Most asked How do you make sure backups will actually work when needed?
  20. Most asked How do you design cloud networking for a production workload?
  21. Most asked How would you use infrastructure as code across clouds?
  22. Most asked Tell me about a time you reduced cloud cost or improved reliability. How did you measure it?
  23. Most asked How do you handle secrets for applications running in the cloud?
  24. Most asked What are the pillars of the Well-Architected Framework and how do you use them?
  25. Most asked How do you decide between AWS, Azure and Google Cloud for a new company or project?
  26. Most asked What are spot instances and how do you use them safely?
  27. An access key leaked publicly. Walk through your response.
  28. What is SSRF and why is it especially dangerous in the cloud?
  29. A DynamoDB table is throttled while total capacity looks unused. What's going on?
  30. Which data transfer charges surprise teams, and how do you reduce them?
  31. Why might autoscaling fail during a traffic spike, and how do you prepare?
  32. Design a multi-region failover for a critical API.
  33. Write a least-privilege IAM policy that lets an application read and write objects under one prefix of a bucket.
  34. The monthly cloud bill jumped 40% with no traffic increase. What do you look for, and what would you change?
  35. What is envelope encryption and how do KMS services use it?
  36. How do you reduce object storage costs for data that ages?
  37. How do monitoring and logging differ between AWS, Azure and Google Cloud, and what defaults would you set?
  38. How do you migrate an application to the cloud?
  39. What is the difference between AWS Organizations SCPs, Azure Policy and Google Cloud organization policies?
  40. A team's monthly bill jumped 40% overnight. How do you investigate?
  41. How do containers on Kubernetes get cloud permissions securely?
  42. How do you share a large file from private storage with a customer for 24 hours?
  43. What does 'cattle, not pets' mean for cloud servers?

Web Security & WAF Recommended 32

  1. Most asked What is the OWASP Top 10 and which risks does it currently highlight?
  2. Most asked What is Cross-Site Scripting (XSS) and how do you prevent it?
  3. Most asked What is SQL injection and how do you prevent it?
  4. Most asked What is CSRF and how do you defend against it?
  5. Most asked What is a Web Application Firewall (WAF), and what can and can't it do?
  6. Most asked How do rate-limiting algorithms work (fixed window, sliding window, token bucket)?
  7. Most asked What is SSRF (Server-Side Request Forgery) and how do you prevent it?
  8. How do you protect a web application from DDoS and abusive traffic?
  9. What is Content-Security-Policy and how do you roll it out?
  10. Which HTTP security headers should every web app send?
  11. What is CORS, and what are common CORS misconfigurations?
  12. How do you manage vulnerable and outdated dependencies?
  13. What are common security misconfigurations in web deployments?
  14. How do you handle file uploads securely?
  15. How should applications manage secrets?
  16. What are insecure deserialization vulnerabilities?
  17. What is clickjacking and how do you prevent it?
  18. What are best practices for TLS/HTTPS?
  19. How do you protect sign-up, login and checkout flows from bots?
  20. What is threat modeling and how do you run one?
  21. What is an open redirect vulnerability?
  22. What is command injection and how do you prevent it?
  23. What is path traversal and how do you prevent it?
  24. Why are security logging and monitoring failures in the OWASP Top 10?
  25. What are software and data integrity failures?
  26. What are common cryptographic failures?
  27. What new security risks do LLM-powered features introduce?
  28. What does the OWASP API Security Top 10 add beyond the web Top 10?
  29. How do cookie prefixes like __Host- and __Secure- improve security?
  30. How do you build security into the development lifecycle?
  31. What is XXE (XML External Entity) injection?
  32. What is subdomain takeover?

Behavioral & STAR Recommended 41

  1. Most asked Tell me about a time you worked with a difficult teammate.
  2. Most asked Describe a disagreement you had with a coworker and how you resolved it.
  3. Most asked Tell me about a time you disagreed with your manager's decision.
  4. Most asked Tell me about a time you failed at something important.
  5. Most asked Describe a mistake that had a significant impact and how you handled it.
  6. Most asked Tell me about a time you had to work with unclear or changing requirements.
  7. Most asked Tell me about a time you missed a deadline.
  8. Most asked Tell me about a time you received critical feedback and how you responded.
  9. Most asked Describe a project you owned from start to finish.
  10. Most asked Tell me about a time you had to juggle multiple competing deadlines.
  11. Tell me about a time you led a project without formal authority.
  12. Tell me about a time you took responsibility for a team failure.
  13. Describe a time you had to collaborate with someone whose working style was very different from yours.
  14. Tell me about a successful project you completed as part of a team.
  15. Tell me about a time you helped a struggling teammate.
  16. Describe a time you had to push back on a stakeholder's request.
  17. Describe a time you had to deliver unwelcome feedback to a peer.
  18. Describe a time you had to motivate a team through a difficult period.
  19. Tell me about a decision you made that was unpopular with your team.
  20. Tell me about a time you had to make a decision with incomplete information as a leader.
  21. Tell me about a project that didn't go as planned.
  22. Tell me about a time you went above and beyond your job description.
  23. Describe a time you identified a problem no one had asked you to solve.
  24. Describe a situation where you had to make a decision without all the information you wanted.
  25. Tell me about a time priorities shifted midway through a project.
  26. Describe how you decide what to work on when everything feels urgent.
  27. Tell me about a time you helped a colleague grow their skills.
  28. Tell me about a time you received feedback that was hard to hear.
  29. Describe a time you had to rely on a team member you didn't fully trust yet.
  30. Tell me about a conflict between two people on your team and how you handled it.
  31. Describe a time you delegated an important task.
  32. Tell me about a time you had to say no to your manager.
  33. Describe how you handle working on something without a clear owner.
  34. Tell me about a time you had to say no to a request to protect a deadline.
  35. Describe a time you had to deprioritize something important.
  36. Describe your approach to onboarding a new team member.
  37. Tell me about a time you gave someone feedback that changed their behavior.
  38. Describe a time you learned something valuable from someone more junior than you.
  39. Describe how you typically respond to criticism.
  40. Tell me about a time you gave feedback that was poorly received.
  41. Describe a time feedback from a peer changed how you approached your work.

Was this page helpful?

Report a mistake