DevOps Engineer · interview questions
DevOps Engineer interview questions: comparison
From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.
DevOps Engineer Core 6
- Most asked Trunk-based development or GitFlow: which do you prefer, and why?
- Most asked Explain the difference between L4 and L7 load balancers and when to use each.
- Most asked What is the difference between continuous integration, continuous delivery and continuous deployment, in practice?
- Most asked Which Linux skills matter most for a DevOps engineer?
- Mutable or immutable infrastructure: what is the difference?
- What is the difference between a canary release, a feature flag and an A/B test?
DevOps Fundamentals Core 7
- Most asked CI vs CD
- Most asked DevOps tooling: explain Docker image vs container.
- Most asked DevOps tooling: explain liveness vs readiness probes.
- Most asked DevOps tooling: explain Deployment vs StatefulSet.
- continuous delivery vs deployment
- SRE vs DevOps
- How does continuous integration differ from continuous deployment?
Docker Core 5
- Most asked What is a container, and how does it differ from a virtual machine?
- Most asked What is the difference between an image and a container, and how do image layers work?
- Most asked CMD or ENTRYPOINT: what is the difference, and what are exec and shell forms?
- Most asked ARG or ENV: what is the difference, and how do you pass secrets into a build safely?
- COPY or ADD: what is the difference?
Kubernetes Core 8
- Most asked ConfigMaps and Secrets: how do they differ, and how should secrets really be handled?
- Most asked What is the difference between resource requests and limits, and what are the QoS classes?
- Most asked How does autoscaling work in Kubernetes? Compare HPA, VPA, Cluster Autoscaler and Karpenter.
- Most asked Ingress or Gateway API: how do you expose HTTP services, and what has changed recently?
- Most asked Helm or Kustomize: how do you manage manifests?
- Should you run databases on Kubernetes?
- What are labels, selectors and annotations, and how should you use them?
- What is the difference between a Deployment's rollout and a restart, and when would you use kubectl rollout restart?
Terraform Core 11
- Most asked count or for_each: when do you use each?
- Most asked When do you need depends_on in Terraform, and when is it a code smell?
- Most asked Terraform and Ansible: how do they differ, and do you need both?
- Most asked Compare Terraform with CloudFormation, CDK and Pulumi.
- Most asked Terraform or OpenTofu: what is the difference, and how would you choose?
- How should nonprod and production Terraform configurations differ, and how do you enforce those differences?
- What is the difference between an ECS task execution role and a task role, and how do you define them in Terraform?
- How do variable validation rules work in Terraform, and when should you use them?
- What is the difference between variables, locals and outputs?
- What are data sources, and when should you use them?
- What is the difference between terraform refresh, plan -refresh-only and apply -refresh-only?
Linux Core 2
CI/CD & Deployment Core 6
- Most asked What's the difference between continuous integration, continuous delivery and continuous deployment?
- Most asked Compare rolling, blue-green and canary deployments.
- Most asked What's the difference between liveness and readiness probes?
- What are self-hosted vs managed CI runners, and when do you choose each?
- What are the CI/CD trade-offs of monorepos vs polyrepos?
- When would you choose serverless functions vs containers vs VMs for deployment?
Logging & Observability Core 3
GitHub Actions Fundamentals Core 1
Site Reliability Engineering Recommended 5
- Most asked What is the difference between monitoring and observability? Explain metrics, logs and traces.
- Most asked What is the difference between liveness, readiness and startup probes in Kubernetes?
- Compare rolling, blue-green and canary deployments.
- Active-active or active-passive multi-region: what are the trade-offs?
- What is the difference between synthetic monitoring and real-user monitoring?
Networking Recommended 7
- Most asked What's the difference between TCP and UDP, and when would you choose UDP?
- Most asked What's the difference between stateful and stateless firewalls? Give cloud examples.
- Most asked Security groups versus network ACLs: how do they differ and how would you use them together?
- Most asked Compare HTTP/1.1, HTTP/2 and HTTP/3.
- Most asked Compare layer 4 and layer 7 load balancers. When would you use each?
- Most asked What makes a subnet public or private in AWS?
- What's the difference between Azure VNets and Google Cloud VPCs compared with AWS VPCs?
Cloud Engineer Recommended 4
- Most asked Compare object, block and file storage in the cloud.
- Which data transfer charges surprise teams, and how do you reduce them?
- How do monitoring and logging differ between AWS, Azure and Google Cloud, and what defaults would you set?
- What is the difference between AWS Organizations SCPs, Azure Policy and Google Cloud organization policies?