DevOps Engineer · interview questions

DevOps Engineer 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.

DevOps Engineer Core 23

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

Docker Core 11

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

Kubernetes Core 8

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

Terraform Core 17

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

Ansible Core 6

  1. Most asked How do you manage secrets with Ansible Vault?
  2. How do you structure reusable Ansible roles for several environments?
  3. How would you automate TLS certificate installation and renewal with Ansible?
  4. How would you configure 100 Linux servers consistently with Ansible?
  5. How do Ansible and Terraform work together in one delivery pipeline?
  6. How do you test Ansible roles before they reach production?

Linux Core 3

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

CI/CD & Deployment Core 7

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

Logging & Observability Core 8

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

GitHub Actions Fundamentals Core 4

  1. Most asked How do you keep secrets safe in GitHub Actions, and why use OIDC to reach the cloud?
  2. How do you speed up slow GitHub Actions workflows?
  3. How do you add approval gates to deployments in GitHub Actions?
  4. How do you run a matrix build, and how do you stop one failing combination cancelling the rest?

Site Reliability Engineering Recommended 13

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

Networking Recommended 7

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

Cloud Engineer Recommended 10

  1. Most asked How do you eliminate long-lived credentials in a cloud environment?
  2. Most asked How do you approach cloud cost optimisation?
  3. Most asked How do you choose between VMs, containers and serverless functions for a new service?
  4. Most asked What should you design for when using serverless functions?
  5. Most asked How do you process queue messages safely in the cloud?
  6. Most asked How would you use infrastructure as code across clouds?
  7. Most asked How do you decide between AWS, Azure and Google Cloud for a new company or project?
  8. How do you reduce object storage costs for data that ages?
  9. How do you migrate an application to the cloud?
  10. How do you share a large file from private storage with a customer for 24 hours?

Web Security & WAF Recommended 4

  1. How do you protect a web application from DDoS and abusive traffic?
  2. How do you manage vulnerable and outdated dependencies?
  3. How do you protect sign-up, login and checkout flows from bots?
  4. How do you build security into the development lifecycle?

Was this page helpful?

Report a mistake