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
- Most asked How do you secure the CI/CD pipeline itself against supply-chain attacks?
- Most asked How do you approach observability as a DevOps engineer?
- Most asked How do you control cloud costs as part of DevOps (FinOps)?
- Most asked How do you implement GitOps for both infrastructure and applications?
- Most asked How do you plan and test disaster recovery as a DevOps engineer?
- Most asked How would you introduce DevOps practices into a team that deploys manually once a month?
- How do you implement automated rollback in a deployment pipeline?
- How do you implement approval gates and separation of duties for production deployments?
- How do you integrate SonarQube, SAST, DAST and container image scanning into CI/CD without slowing everyone down?
- What would you monitor during a high-traffic event such as Black Friday, and how do you prepare?
- How do you rotate production credentials without downtime?
- How do you prioritise several production incidents happening at the same time?
- How do you deal with flaky tests?
- How do you manage configuration across environments without drift?
- How would you migrate a team from Jenkins to GitHub Actions (or another CI system)?
- How do you write reliable shell scripts for automation?
- How do you release a new version of a stateful service, such as a message broker or database, with minimal downtime?
- How do you manage TLS certificates across many services?
- How do you make deployments of a monolith safer when you cannot break it up soon?
- How do you decide what to automate first?
- How do you structure on-call and incident handling in a DevOps team?
- How do you approach a multi-cloud strategy?
- How do you build golden machine images, and why?
Docker Core 11
- Most asked How do you secure Docker containers and images?
- Most asked How do you make Docker images smaller?
- Most asked How do you limit a container's CPU and memory, and what happens when it exceeds them?
- Most asked How should you tag Docker images, and why is 'latest' a problem?
- Most asked How do you debug a container that exits immediately or behaves differently in production?
- Most asked How do you run Docker builds in CI pipelines efficiently and safely?
- What should you consider when choosing a base image?
- How do you run a database in Docker for local development, and should you do it in production?
- How do you speed up a slow Docker build?
- How do you clean up disk space used by Docker?
- How do you run multiple processes in one container, and should you?
Kubernetes Core 8
- Most asked How do you make pods shut down gracefully without dropping requests?
- Most asked How do you upgrade a Kubernetes cluster safely?
- Most asked How do you monitor a Kubernetes cluster and the applications on it?
- Most asked How do you control costs in Kubernetes?
- How do you give pods access to cloud resources such as S3 or a database without static credentials?
- How do you organise multi-tenancy in a Kubernetes cluster?
- How do you back up a Kubernetes cluster?
- How do you manage TLS certificates in Kubernetes?
Terraform Core 17
- Most asked How would you run Terraform in CI/CD?
- Most asked How do you bring existing infrastructure under Terraform management?
- Most asked How do you refactor Terraform code without destroying resources? Explain moved blocks and state mv.
- Most asked How do you pin provider and module versions, and what is the dependency lock file?
- How do you use Terraform to deploy the same infrastructure to nonprod and production AWS accounts?
- How do you configure OIDC authentication between GitHub Actions and AWS for Terraform pipelines?
- How should you split Terraform state for a large organisation?
- How do you test Terraform code?
- How do you bootstrap an S3 remote state backend for Terraform without a chicken-and-egg problem?
- How do you manage RDS passwords securely with Terraform?
- How do you set up CloudFront with an S3 origin using Origin Access Control in Terraform?
- How do you manage AWS costs with Terraform, and what resources help?
- How do you manage multiple accounts, regions or subscriptions in one Terraform configuration?
- How do you structure a Terraform repository for a team?
- How do you manage Kubernetes resources with Terraform, and what are the pitfalls?
- How do you design a reusable Terraform module for an internal platform team to offer, for example 'a secure S3 bucket'?
- How do you tag resources consistently with Terraform?
Ansible Core 6
- Most asked How do you manage secrets with Ansible Vault?
- How do you structure reusable Ansible roles for several environments?
- How would you automate TLS certificate installation and renewal with Ansible?
- How would you configure 100 Linux servers consistently with Ansible?
- How do Ansible and Terraform work together in one delivery pipeline?
- How do you test Ansible roles before they reach production?
Linux Core 3
CI/CD & Deployment Core 7
- Most asked How do you run database migrations without downtime?
- Most asked How do you promote a single build artifact from development through staging to production?
- How do you design for fast rollback?
- How do you secure the software supply chain in CI/CD?
- How do you use build caching and dependency caching to speed up CI pipelines?
- How do you speed up CI pipelines?
- What should you monitor during and after a deployment?
Logging & Observability Core 8
- What makes a good alert?
- How do you design centralized log aggregation?
- How do you collect logs and metrics in Kubernetes?
- What makes an error log line useful during an incident?
- How do you control the cost of logs and telemetry?
- How do you add observability to a frontend application?
- How do you find slow database queries in production?
- How do you observe the impact of a deployment or feature flag?
GitHub Actions Fundamentals Core 4
- Most asked How do you keep secrets safe in GitHub Actions, and why use OIDC to reach the cloud?
- How do you speed up slow GitHub Actions workflows?
- How do you add approval gates to deployments in GitHub Actions?
- How do you run a matrix build, and how do you stop one failing combination cancelling the rest?
Site Reliability Engineering Recommended 13
- Most asked How do you choose good SLIs for a service?
- Most asked What makes a good alert? Explain symptom-based alerting and alert fatigue.
- Most asked How should incident response be organised? Describe the key roles.
- Most asked How would you take a service from 99.9% to 99.99% availability?
- Most asked How do you do capacity planning for a service?
- What makes an on-call rotation sustainable?
- How do you choose timeouts, and what is deadline propagation?
- How do you design a service so that its dependencies' failures do not take it down?
- How do you define incident severity levels?
- How would you load test a service before a big launch?
- How do you define SLOs for batch jobs and data pipelines?
- How do you make sure postmortem action items actually get done?
- How do you design dashboards that help during an incident?
Networking Recommended 7
- Most asked How should you design health checks for services behind a load balancer?
- Most asked How do you connect many VPCs together, and why isn't VPC peering always enough?
- Most asked How would you migrate a production domain to a new load balancer with no downtime?
- How do you get the real client IP behind proxies and load balancers safely?
- How would you give an application fixed outbound IP addresses for a partner's allow-list?
- How do you reduce cloud networking costs?
- How do you secure administrative access to instances in private subnets?
Cloud Engineer Recommended 10
- Most asked How do you eliminate long-lived credentials in a cloud environment?
- Most asked How do you approach cloud cost optimisation?
- Most asked How do you choose between VMs, containers and serverless functions for a new service?
- Most asked What should you design for when using serverless functions?
- Most asked How do you process queue messages safely in the cloud?
- Most asked How would you use infrastructure as code across clouds?
- Most asked How do you decide between AWS, Azure and Google Cloud for a new company or project?
- How do you reduce object storage costs for data that ages?
- How do you migrate an application to the cloud?
- How do you share a large file from private storage with a customer for 24 hours?