DevOps Engineer · interview questions

DevOps Engineer interview questions: definition

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

DevOps Engineer Core 11

  1. Most asked What are DORA metrics, and how would you use them without gaming them?
  2. Most asked What does 'build once, deploy many' mean, and why does it matter?
  3. Most asked What is platform engineering, and how does it relate to DevOps?
  4. What are ephemeral (preview) environments, and what are their trade-offs?
  5. What are the security risks of self-hosted CI runners, and how do you mitigate them?
  6. What is configuration management with Ansible, and where does it still fit?
  7. What does 'shift left' on security mean in practice?
  8. What does `set -euo pipefail` do in a bash script, and what are its pitfalls?
  9. What is real-user monitoring, and how do tools like Akamai mPulse help an ecommerce team?
  10. What is an artifact repository, and how do you manage it?
  11. What is chaos engineering's place in a DevOps practice?

DevOps Fundamentals Core 2

  1. What is DevOps?
  2. What is infrastructure as code and why is it useful?

Docker Core 11

  1. Most asked What are multi-stage builds, and why use them?
  2. Most asked What are Dockerfile best practices for production images?
  3. Most asked What is Docker Compose used for, and how do you handle service start-up order?
  4. Most asked What is a software supply chain attack on containers, and how do you defend against it?
  5. What is BuildKit, and what does docker buildx add?
  6. What does HEALTHCHECK do in a Dockerfile, and do orchestrators use it?
  7. What is the OCI, and how do Docker, containerd, runc and Podman relate?
  8. What is the Docker build context, and why does it matter?
  9. What is Docker Swarm, and why do most teams use Kubernetes or managed services instead?
  10. What are rootless Docker and user namespaces?
  11. What changed with Docker Desktop licensing, and what are the alternatives?

Kubernetes Core 18

  1. Most asked What is GitOps, and how do Argo CD or Flux implement it?
  2. Most asked What are Kubernetes namespaces, when should you create them, and what isolation do they provide?
  3. Most asked What is the reconciliation loop, and why is Kubernetes called declarative?
  4. Most asked What are NetworkPolicies, and how would you lock down traffic in a namespace?
  5. Most asked What are Custom Resource Definitions and operators?
  6. Most asked What is Kubernetes not good at, or when would you avoid it?
  7. Most asked What do the common kubectl debugging commands tell you?
  8. What is a Pod, and why are containers grouped into Pods?
  9. What is a PodDisruptionBudget, and why does it matter?
  10. What are the pod lifecycle phases, and how do you use them for debugging?
  11. What are init containers and sidecar containers?
  12. What are admission controllers and webhooks used for?
  13. What is etcd's role, and what can go wrong with it?
  14. What is a service mesh, and when is it worth it?
  15. What are ResourceQuota and LimitRange?
  16. What is the Kubernetes container runtime, and why was dockershim removed?
  17. What are priority classes and preemption?
  18. What are ephemeral containers and kubectl debug used for?

Terraform Core 16

  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 What are Terraform modules, and how do you design good ones?
  4. Most asked What are the main terraform state subcommands, and when do you use them?
  5. Most asked What lifecycle settings does Terraform offer, and when do you use them?
  6. Most asked What is drift, and how do you detect and handle it?
  7. Most asked What are the most common Terraform mistakes you have seen in teams?
  8. Most asked What does terraform plan -target do, and why is it risky?
  9. What is policy as code for Terraform, and which tools are used?
  10. What do dynamic blocks, for expressions and conditionals give you, and when do they hurt?
  11. What are provisioners, and why are they considered a last resort?
  12. What does 'known after apply' mean, and why can it cause problems?
  13. What are check blocks and pre/postconditions used for?
  14. What is Terragrunt, and when is it useful?
  15. What is HCP Terraform (Terraform Cloud), and what does it add?
  16. What is Terraform's resource graph parallelism, and when would you change it?

Ansible Core 2

  1. Most asked What is idempotency in Ansible, and how do you keep your own tasks idempotent?
  2. What is dynamic inventory, and why use it in the cloud?

Linux Core 1

  1. Most asked What do top, htop, vmstat, iostat, ss and lsof each tell you?

CI/CD & Deployment Core 13

  1. Most asked What stages does a typical CI/CD pipeline contain?
  2. Most asked What are best practices for writing Dockerfiles?
  3. Most asked What is shift-left testing, and what security scanning belongs in a CI pipeline?
  4. Most asked What is pipeline as code and why does it matter?
  5. What are the core Kubernetes objects a web service needs?
  6. What is graceful shutdown and why does it matter for deployments?
  7. What is trunk-based development?
  8. What is infrastructure as code and why use it?
  9. What is GitOps?
  10. What are DORA metrics?
  11. What is semantic versioning?
  12. What should happen when a deployment causes an incident?
  13. What is progressive delivery?

Logging & Observability Core 13

  1. Most asked What is structured logging and why is it preferred over plain text logs?
  2. Most asked What is a correlation (request) ID and how do you propagate it?
  3. Most asked What is distributed tracing and how does OpenTelemetry fit in?
  4. Most asked What are the RED, USE and Four Golden Signals methods?
  5. Most asked What are SLIs, SLOs and error budgets?
  6. Most asked What should never be logged, and how do you prevent it?
  7. What are head-based and tail-based sampling in tracing?
  8. What is metric cardinality and why can it break a monitoring system?
  9. What does an error-tracking tool (like Sentry) add beyond logs?
  10. What goes into a good blameless postmortem?
  11. What are synthetic monitoring and real-user monitoring (RUM)?
  12. What is continuous profiling and when is it useful?
  13. What is eBPF and why is it popular for observability?

Site Reliability Engineering Recommended 22

  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 What is an error budget, and how should it be used?
  4. Most asked What is burn-rate alerting, and why is it better than alerting on raw error rates?
  5. Most asked What are the four golden signals?
  6. Most asked What is a blameless postmortem, and what makes one effective?
  7. Most asked What is load shedding, and how does graceful degradation work?
  8. Most asked What is a cascading failure, and how do you prevent one?
  9. Most asked What is toil, and how do you reduce it?
  10. Most asked What is chaos engineering, and how do you start safely?
  11. What Kubernetes settings matter most for reliability?
  12. What are the RED and USE methods?
  13. What is metric cardinality, and why can it become a problem?
  14. What should a good runbook contain?
  15. What are MTTD, MTTR and MTBF, and what are their limitations?
  16. What are common pitfalls of autoscaling?
  17. What is a circuit breaker, and when is it useful?
  18. What are game days and disaster recovery tests?
  19. What is a thundering herd, and how do you prevent it?
  20. What is a production readiness review?
  21. What are logging best practices for production systems?
  22. What SRE engagement models exist?

Networking Recommended 9

  1. Most asked What is CIDR notation? How many usable addresses are in a /26, and in an AWS /26 subnet?
  2. Most asked What does TLS provide, and how does certificate validation work?
  3. Most asked What do 502, 503 and 504 errors from a load balancer usually mean?
  4. What are the private IPv4 ranges, and what are 100.64.0.0/10 and 169.254.0.0/16 used for?
  5. What is MTU, and how can it break connections?
  6. What are ephemeral ports?
  7. What are the options for connecting on-premises networks to the cloud?
  8. What is a CDN and how does it improve performance and resilience?
  9. What are VPC Flow Logs and what can't they tell you?

Cloud Engineer Recommended 8

  1. Most asked What are regions and availability zones, and how do you use them for resilience?
  2. Most asked What do Multi-AZ deployments and read replicas give you for managed databases?
  3. Most asked What security services and settings belong in every cloud account from day one?
  4. Most asked What are the pillars of the Well-Architected Framework and how do you use them?
  5. Most asked What are spot instances and how do you use them safely?
  6. What is SSRF and why is it especially dangerous in the cloud?
  7. What is envelope encryption and how do KMS services use it?
  8. What does 'cattle, not pets' mean for cloud servers?

Web Security & WAF Recommended 22

  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 What is SSRF (Server-Side Request Forgery) and how do you prevent it?
  7. What is Content-Security-Policy and how do you roll it out?
  8. What is CORS, and what are common CORS misconfigurations?
  9. What are common security misconfigurations in web deployments?
  10. What are insecure deserialization vulnerabilities?
  11. What is clickjacking and how do you prevent it?
  12. What are best practices for TLS/HTTPS?
  13. What is threat modeling and how do you run one?
  14. What is an open redirect vulnerability?
  15. What is command injection and how do you prevent it?
  16. What is path traversal and how do you prevent it?
  17. What are software and data integrity failures?
  18. What are common cryptographic failures?
  19. What new security risks do LLM-powered features introduce?
  20. What does the OWASP API Security Top 10 add beyond the web Top 10?
  21. What is XXE (XML External Entity) injection?
  22. What is subdomain takeover?

Was this page helpful?

Report a mistake