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

  1. Most asked How do you handle database schema migrations in an automated deployment pipeline?
  2. Most asked How do you handle secrets in CI/CD pipelines securely?
  3. Most asked What happens when you type a URL into a browser and press Enter?
  4. Most asked How does DNS work, and what DNS issues have you seen in production?
  5. Most asked A Dockerfile copies a .env file, uses it, and deletes it in a later RUN step. Is the secret safe?
  6. Most asked How do Kubernetes rolling updates work, and how do maxSurge and maxUnavailable affect them?
  7. A service shows 30% average CPU but high p99 latency. How could CPU limits be involved?
  8. How do you approach a monorepo's CI at scale?

DevOps Fundamentals Core 31

  1. Most asked infrastructure as code
  2. Most asked DevOps tooling: explain Kubernetes Pod.
  3. Most asked DevOps tooling: explain Terraform state.
  4. Most asked DevOps tooling: explain blue/green & canary.
  5. Most asked Security in DevOps: secrets management?
  6. DevOps tooling: explain Dockerfile best practices.
  7. DevOps tooling: explain Service / Ingress.
  8. DevOps tooling: explain Terraform plan/apply.
  9. DevOps tooling: explain Jenkins / GitHub Actions.
  10. Security in DevOps: DevSecOps?
  11. Security in DevOps: least privilege IAM?
  12. shift left
  13. GitOps
  14. blameless postmortems
  15. DORA metrics
  16. DevOps tooling: explain ConfigMap / Secret.
  17. DevOps tooling: explain HPA.
  18. DevOps tooling: explain artifact repositories.
  19. DevOps tooling: explain Prometheus / Grafana.
  20. DevOps tooling: explain OpenTelemetry.
  21. DevOps tooling: explain feature flags.
  22. Security in DevOps: image scanning?
  23. Security in DevOps: network policies?
  24. Security in DevOps: supply chain attacks?
  25. toil
  26. DevOps tooling: explain Ansible.
  27. DevOps tooling: explain ELK / OpenSearch.
  28. DevOps tooling: explain Helm.
  29. DevOps tooling: explain service mesh.
  30. Security in DevOps: SBOM?
  31. Security in DevOps: policy as code?

Docker Core 8

  1. Most asked How does Docker build caching work, and how do you order a Dockerfile to use it well?
  2. Most asked Volumes, bind mounts and tmpfs: when do you use each?
  3. Most asked How does Docker networking work? Explain bridge, host and user-defined networks.
  4. How do container logs work in Docker, and how do you stop them filling the disk?
  5. How do you handle configuration for containers across environments?
  6. Explain what happens when you run docker run nginx.
  7. How do you handle time zones, locales and certificates in minimal images?
  8. Docker Compose in production: is it appropriate?

Kubernetes Core 18

  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 How does the scheduler place pods? Explain resource requests, node affinity, taints and tolerations.
  7. Most asked Liveness, readiness and startup probes: how do you configure them correctly?
  8. Most asked How does RBAC work in Kubernetes, and how do you apply least privilege?
  9. Most asked How do you secure workloads on Kubernetes? Explain Pod Security Standards and securityContext.
  10. Most asked How do persistent volumes work? Explain PV, PVC, StorageClass and CSI.
  11. How does pod networking work in Kubernetes, and what does the CNI plugin do?
  12. A Service is not reachable from another pod. How do you troubleshoot it?
  13. How does DNS work in a Kubernetes cluster, and what is the ndots problem?
  14. How do container logs work in Kubernetes?
  15. How do topology spread constraints and anti-affinity improve availability?
  16. How does kube-proxy work, and what are the alternatives?
  17. How do you run batch and scheduled workloads reliably on Kubernetes?
  18. How do you handle configuration and secrets for different environments with Kubernetes?

Terraform Core 8

  1. Most asked Walk through terraform init, plan and apply. What does each do?
  2. Most asked How do you handle secrets in Terraform?
  3. Most asked A terraform plan wants to destroy and recreate a database. What do you do?
  4. Most asked Workspaces, separate state files, or separate directories: how do you manage multiple environments?
  5. Most asked How do sensitive variables and outputs work in Terraform, and what are their limitations?
  6. How does Terraform determine the order in which it creates resources?
  7. How do you handle large-scale changes, such as a provider major version upgrade across many stacks?
  8. How do you roll back a bad Terraform change?

Ansible Core 2

  1. Most asked Explain Ansible's architecture: control node, inventory, modules, playbooks, roles and handlers.
  2. Explain serial, delegate_to, when and notify in Ansible.

Linux Core 3

  1. How do systemd units work, and how do you debug a service that won't start?
  2. Explain Linux file permissions, ownership and the special bits.
  3. What happens when a Linux system boots?

CI/CD & Deployment Core 4

  1. Most asked How should secrets be handled in CI/CD pipelines?
  2. How do feature flags change the way teams release software?
  3. How should application configuration be managed across environments?
  4. How should build artifacts be versioned and promoted?

Logging & Observability Core 6

  1. How should log levels be used?
  2. How is audit logging different from application logging?
  3. Can logging hurt application performance? How do you mitigate it?
  4. How does chaos engineering relate to observability?
  5. Explain the Prometheus metric types: counter, gauge, histogram, summary.
  6. How do log rotation and retention work for services that write log files?

GitHub Actions Fundamentals Core 2

  1. Most asked Explain how a GitHub Actions workflow is structured: events, jobs, steps, runners and actions.
  2. How does the GITHUB_TOKEN work, and how do you limit its permissions?

Site Reliability Engineering Recommended 8

  1. Most asked How do canary releases and progressive delivery reduce risk?
  2. Most asked Explain RTO and RPO, and how they drive disaster recovery design.
  3. Most asked How much downtime does each 'nine' allow, and how do you pick an SLO target?
  4. Most asked A Linux server has a high load average. How do you find out why?
  5. How does distributed tracing work, and what does OpenTelemetry provide?
  6. How do feature flags help reliability, and what are their risks?
  7. A disk filled up and took a service down. What do you do now and to prevent it next time?
  8. How do rate limiting and admission control protect a service?

Networking Recommended 11

  1. Most asked What happens, at the network level, when you type a URL into a browser and press Enter?
  2. Most asked How does DNS resolution work, and what does a record's TTL control?
  3. Most asked How does NAT work, and what are its limits?
  4. Most asked A service is unreachable. How do you troubleshoot it systematically?
  5. Most asked Explain the OSI and TCP/IP models. Why do engineers still talk about 'layer 4' and 'layer 7'?
  6. Most asked Walk through the TCP three-way handshake and connection teardown. What is TIME_WAIT and why can it cause problems?
  7. Most asked How do private subnets reach AWS services like S3 without going over the internet?
  8. How does a router choose a route when several routes match a destination?
  9. What happens if two networks you need to connect have overlapping CIDRs, and what can you do?
  10. CNAME, A and alias records: why can't the zone apex be a CNAME, and how do cloud DNS services work around it?
  11. How does DNS work inside a VPC, and how do you resolve names between the cloud and on-premises?

Cloud Engineer Recommended 10

  1. Most asked How is an AWS IAM request evaluated when several policies apply?
  2. Most asked Explain RTO and RPO and the four disaster recovery strategies.
  3. Most asked Explain IaaS, PaaS, SaaS and serverless with examples from AWS, Azure and Google Cloud.
  4. Most asked Explain the shared responsibility model. What's the customer responsible for with a managed database?
  5. Most asked How do you make a workload resilient to an availability zone failure?
  6. Most asked How do you make sure backups will actually work when needed?
  7. Most asked How do you design cloud networking for a production workload?
  8. Most asked How do you handle secrets for applications running in the cloud?
  9. A DynamoDB table is throttled while total capacity looks unused. What's going on?
  10. How do containers on Kubernetes get cloud permissions securely?

Web Security & WAF Recommended 4

  1. Most asked How do rate-limiting algorithms work (fixed window, sliding window, token bucket)?
  2. How do you handle file uploads securely?
  3. How should applications manage secrets?
  4. How do cookie prefixes like __Host- and __Secure- improve security?

Behavioral & STAR Recommended 8

  1. Most asked Describe a disagreement you had with a coworker and how you resolved it.
  2. Most asked Describe a mistake that had a significant impact and how you handled it.
  3. Most asked Describe a project you owned from start to finish.
  4. Describe a situation where you had to make a decision without all the information you wanted.
  5. Describe how you decide what to work on when everything feels urgent.
  6. Describe how you handle working on something without a clear owner.
  7. Describe your approach to onboarding a new team member.
  8. Describe how you typically respond to criticism.

Was this page helpful?

Report a mistake