DevOps Engineer · interview questions
DevOps Engineer interview questions: how it works
From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.
DevOps Engineer Core 8
- 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 happens when you type a URL into a browser and press Enter?
- Most asked How does DNS work, and what DNS issues have you seen in production?
- Most asked A Dockerfile copies a .env file, uses it, and deletes it in a later RUN step. Is the secret safe?
- Most asked How do Kubernetes rolling updates work, and how do maxSurge and maxUnavailable affect them?
- A service shows 30% average CPU but high p99 latency. How could CPU limits be involved?
- How do you approach a monorepo's CI at scale?
DevOps Fundamentals Core 31
- Most asked infrastructure as code
- Most asked DevOps tooling: explain Kubernetes Pod.
- Most asked DevOps tooling: explain Terraform state.
- Most asked DevOps tooling: explain blue/green & canary.
- Most asked Security in DevOps: secrets management?
- DevOps tooling: explain Dockerfile best practices.
- DevOps tooling: explain Service / Ingress.
- DevOps tooling: explain Terraform plan/apply.
- DevOps tooling: explain Jenkins / GitHub Actions.
- Security in DevOps: DevSecOps?
- Security in DevOps: least privilege IAM?
- shift left
- GitOps
- blameless postmortems
- DORA metrics
- DevOps tooling: explain ConfigMap / Secret.
- DevOps tooling: explain HPA.
- DevOps tooling: explain artifact repositories.
- DevOps tooling: explain Prometheus / Grafana.
- DevOps tooling: explain OpenTelemetry.
- DevOps tooling: explain feature flags.
- Security in DevOps: image scanning?
- Security in DevOps: network policies?
- Security in DevOps: supply chain attacks?
- toil
- DevOps tooling: explain Ansible.
- DevOps tooling: explain ELK / OpenSearch.
- DevOps tooling: explain Helm.
- DevOps tooling: explain service mesh.
- Security in DevOps: SBOM?
- Security in DevOps: policy as code?
Docker Core 8
- Most asked How does Docker build caching work, and how do you order a Dockerfile to use it well?
- 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.
- How do container logs work in Docker, and how do you stop them filling the disk?
- How do you handle configuration for containers across environments?
- Explain what happens when you run docker run nginx.
- How do you handle time zones, locales and certificates in minimal images?
- Docker Compose in production: is it appropriate?
Kubernetes Core 18
- 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 How does the scheduler place pods? Explain resource requests, node affinity, taints and tolerations.
- Most asked Liveness, readiness and startup probes: how do you configure them correctly?
- 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 How do persistent volumes work? Explain PV, PVC, StorageClass and CSI.
- How does pod networking work in Kubernetes, and what does the CNI plugin do?
- A Service is not reachable from another pod. How do you troubleshoot it?
- How does DNS work in a Kubernetes cluster, and what is the ndots problem?
- How do container logs work in Kubernetes?
- How do topology spread constraints and anti-affinity improve availability?
- How does kube-proxy work, and what are the alternatives?
- How do you run batch and scheduled workloads reliably on Kubernetes?
- How do you handle configuration and secrets for different environments with Kubernetes?
Terraform Core 8
- Most asked Walk through terraform init, plan and apply. What does each do?
- Most asked How do you handle secrets in Terraform?
- Most asked A terraform plan wants to destroy and recreate a database. What do you do?
- Most asked Workspaces, separate state files, or separate directories: how do you manage multiple environments?
- Most asked How do sensitive variables and outputs work in Terraform, and what are their limitations?
- How does Terraform determine the order in which it creates resources?
- How do you handle large-scale changes, such as a provider major version upgrade across many stacks?
- How do you roll back a bad Terraform change?
Ansible Core 2
Linux Core 3
CI/CD & Deployment Core 4
Logging & Observability Core 6
- How should log levels be used?
- How is audit logging different from application logging?
- Can logging hurt application performance? How do you mitigate it?
- How does chaos engineering relate to observability?
- Explain the Prometheus metric types: counter, gauge, histogram, summary.
- How do log rotation and retention work for services that write log files?
GitHub Actions Fundamentals Core 2
Site Reliability Engineering Recommended 8
- 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 How much downtime does each 'nine' allow, and how do you pick an SLO target?
- Most asked A Linux server has a high load average. How do you find out why?
- How does distributed tracing work, and what does OpenTelemetry provide?
- How do feature flags help reliability, and what are their risks?
- A disk filled up and took a service down. What do you do now and to prevent it next time?
- How do rate limiting and admission control protect a service?
Networking Recommended 11
- Most asked What happens, at the network level, when you type a URL into a browser and press Enter?
- Most asked How does DNS resolution work, and what does a record's TTL control?
- Most asked How does NAT work, and what are its limits?
- Most asked A service is unreachable. How do you troubleshoot it systematically?
- 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 How do private subnets reach AWS services like S3 without going over the internet?
- How does a router choose a route when several routes match a destination?
- What happens if two networks you need to connect have overlapping CIDRs, and what can you do?
- CNAME, A and alias records: why can't the zone apex be a CNAME, and how do cloud DNS services work around it?
- How does DNS work inside a VPC, and how do you resolve names between the cloud and on-premises?
Cloud Engineer Recommended 10
- Most asked How is an AWS IAM request evaluated when several policies apply?
- Most asked Explain RTO and RPO and the four disaster recovery strategies.
- Most asked Explain IaaS, PaaS, SaaS and serverless with examples from AWS, Azure and Google Cloud.
- Most asked Explain the shared responsibility model. What's the customer responsible for with a managed database?
- Most asked How do you make a workload resilient to an availability zone failure?
- Most asked How do you make sure backups will actually work when needed?
- Most asked How do you design cloud networking for a production workload?
- Most asked How do you handle secrets for applications running in the cloud?
- A DynamoDB table is throttled while total capacity looks unused. What's going on?
- How do containers on Kubernetes get cloud permissions securely?
Web Security & WAF Recommended 4
Behavioral & STAR Recommended 8
- Most asked Describe a disagreement you had with a coworker and how you resolved it.
- Most asked Describe a mistake that had a significant impact and how you handled it.
- Most asked Describe a project you owned from start to finish.
- Describe a situation where you had to make a decision without all the information you wanted.
- Describe how you decide what to work on when everything feels urgent.
- Describe how you handle working on something without a clear owner.
- Describe your approach to onboarding a new team member.
- Describe how you typically respond to criticism.