Interview questions

DevOps Engineer Interview Questions

19 DevOps interview questions on CI/CD, Docker, Kubernetes, infrastructure as code and incidents, with model answers. For interviewers and candidates.

DevOps Engineer Interview Questions

What's here

19 DevOps Engineer interview questions, grouped into 4 areas: ci/cd & automation questions, devops tool questions: ci/cd, docker and kubernetes, infrastructure & cloud platform questions and monitoring, observability & incident management questions. Each one comes with why it is worth asking and what a strong answer contains, so the same question can be scored the same way by different interviewers.

  • Include a practical exercise such as designing a deployment pipeline or debugging a misconfigured infrastructure setup. Hands-on skills are essential for DevOps roles.
  • Ask about failure scenarios they have encountered and resolved. DevOps engineers who have never dealt with production incidents may lack the experience needed for critical infrastructure roles.
  • Evaluate their communication skills alongside technical depth. DevOps engineers must bridge development and operations teams and explain infrastructure decisions to non-specialists.
For hiring teams

Cohesyve finds, contacts and tests DevOps Engineer candidates on the real work, then ranks them for these interviews. Ten candidates free, no card.

Preparing for this interview yourself? Practise it free →

These DevOps interview questions cover the tools and the judgement the job needs: CI/CD pipelines, Docker, Kubernetes, infrastructure as code, cloud, observability and incident response, each with what a strong answer contains. They work for hiring managers building a technical interview and for engineers preparing for one. Hiring a DevOps Engineer requires evaluating expertise in infrastructure automation, continuous integration and delivery, cloud platforms, and a deep understanding of the software development lifecycle. The best candidates bridge the gap between development and operations with a focus on reliability, scalability, and developer experience. Use these questions to assess technical depth in infrastructure, automation mindset, incident management capability, and collaboration with development teams.

CI/CD & Automation Questions

These questions evaluate proficiency in building and maintaining continuous integration and delivery pipelines.

  1. 1

    Describe the CI/CD pipeline you are most proud of building. What stages does it include and what problems did it solve?

    Why ask it

    Tests hands-on experience designing production-grade deployment pipelines.

    What to look for

    Covers source control triggers, automated testing stages (unit, integration, e2e), artifact management, environment promotion strategy, rollback mechanisms, and monitoring integration. Should articulate the business value delivered.
  2. 2

    How do you implement zero-downtime deployments? What strategies have you used?

    Why ask it

    Evaluates knowledge of deployment strategies critical for production reliability.

    What to look for

    Mentions blue-green deployments, canary releases, or rolling updates. Should discuss load balancer configuration, health checks, database migration strategies, and rollback procedures.
  3. 3

    How do you manage secrets and sensitive configuration across multiple environments in your pipeline?

    Why ask it

    Tests security awareness in the deployment process.

    What to look for

    Uses dedicated secrets management tools (HashiCorp Vault, AWS Secrets Manager, or similar), avoids hardcoding secrets, implements least-privilege access, rotates credentials, and audits secret access.
  4. 4

    What is your approach to testing infrastructure changes before applying them to production?

    Why ask it

    Evaluates risk management discipline in infrastructure work.

    What to look for

    Uses infrastructure-as-code with plan and preview steps (terraform plan), maintains staging environments that mirror production, implements policy-as-code for guardrails, and runs automated compliance checks.
For hiring teams

Before the DevOps Engineer interviews, see who can do the work

Cohesyve finds and contacts DevOps Engineer candidates from your job description and tests each one on an AI job simulation of the role, so these questions go to a ranked shortlist. Ten candidates free, no card.

DevOps Tool Questions: CI/CD, Docker and Kubernetes

Tool-level questions with clear right answers. Use them to check hands-on depth before the open-ended design questions.

  1. 5

    What is the difference between continuous integration, continuous delivery and continuous deployment?

    Why ask it

    The most common opening DevOps question, and the terms are often mixed up.

    What to look for

    Continuous integration: every change is merged to the main branch often and automatically built and tested. Continuous delivery: every change that passes the pipeline is kept in a releasable state, with a manual approval to release. Continuous deployment: changes that pass are released to production automatically with no manual step. Strong answers add what each needs: fast reliable tests, trunk-based or short-lived branches, feature flags, and monitoring with automated rollback.
  2. 6

    A pipeline that used to take 10 minutes now takes 40. How do you speed it up?

    Why ask it

    Tests practical pipeline tuning rather than theory.

    What to look for

    Measures first (which stage is slow), then caches dependencies and build layers, runs independent jobs in parallel, splits or shards slow test suites, only builds what changed, uses faster or warmed runners, and moves slow end-to-end suites to a later stage. Mentions keeping flaky tests out of the critical path.
  3. 7

    What is the difference between a Docker image and a container, and between CMD and ENTRYPOINT?

    Why ask it

    Basic Docker fluency every DevOps engineer should have.

    What to look for

    An image is a read-only, layered template; a container is a running (or stopped) instance of an image with its own writable layer. ENTRYPOINT sets the executable the container runs; CMD sets the default command or default arguments to the ENTRYPOINT. Arguments passed to docker run replace CMD and are appended to an exec-form ENTRYPOINT, and --entrypoint overrides the ENTRYPOINT. Prefers the exec (JSON array) form so the process receives signals such as SIGTERM.
  4. 8

    How do you make a Docker image smaller and builds faster?

    Why ask it

    Image size and build time affect deploy speed, cost and attack surface.

    What to look for

    Multi-stage builds that copy only the built artefact into a minimal final image, a small base image, a .dockerignore file, and ordering instructions for the layer cache: copy the dependency manifest and install dependencies before copying the source, because a change in one layer invalidates every layer after it. Also: no secrets baked into layers, and pinned base image versions.
  5. 9

    Explain the main Kubernetes objects you would use to run a stateless web service.

    Why ask it

    Checks a working mental model of Kubernetes rather than buzzwords.

    What to look for

    A Deployment manages a ReplicaSet that keeps the desired number of Pods running; a Service gives those Pods a stable address (ClusterIP is the default type, with NodePort and LoadBalancer for external access); an Ingress or Gateway routes HTTP traffic; ConfigMaps and Secrets hold configuration; resource requests and limits and a HorizontalPodAutoscaler handle capacity.
  6. 10

    What do liveness, readiness and startup probes do in Kubernetes, and what goes wrong if you misconfigure them?

    Why ask it

    Probe mistakes are a common cause of outages and restart loops.

    What to look for

    A failing liveness probe makes the kubelet restart the container. A failing readiness probe marks the Pod unready so Services stop sending it traffic, without restarting it. A startup probe holds off the other checks until a slow-starting app is up. Misconfigurations: a liveness probe that checks a downstream database (so one outage restarts everything), or timeouts too short for start-up, causing restart loops.
  7. 11

    How does a rolling update work in a Kubernetes Deployment, and how do you roll back a bad release?

    Why ask it

    Tests safe-release knowledge on the most common platform.

    What to look for

    RollingUpdate is the default strategy: new Pods are created and old ones removed gradually, controlled by maxSurge and maxUnavailable (both default to 25%). Readiness probes stop broken Pods taking traffic. Rollback with kubectl rollout undo (optionally --to-revision), or by redeploying the previous version through the pipeline or GitOps tool so the repository stays the source of truth.
  8. 12

    Are Kubernetes Secrets secure by default? How would you handle secrets in a cluster?

    Why ask it

    A common gap, with real security consequences.

    What to look for

    Knows that Secrets are stored unencrypted in etcd by default and that base64 is encoding, not encryption, and that anyone who can create Pods in a namespace can read its Secrets. Fixes: enable encryption at rest, least-privilege RBAC, limit which containers mount each Secret, and consider an external secret store (Vault, a cloud secrets manager) synced into the cluster.

Infrastructure & Cloud Platform Questions

These questions assess cloud architecture knowledge and infrastructure management skills.

  1. 13

    Compare Infrastructure as Code tools you have worked with. What are the strengths and weaknesses of each?

    Why ask it

    Tests breadth and depth of IaC experience and ability to evaluate technology tradeoffs.

    What to look for

    Can compare tools like Terraform, Pulumi, CloudFormation, or Ansible with nuance. Discusses state management, modularity, multi-cloud support, learning curve, and community ecosystem rather than just naming tools.
  2. 14

    How do you design a cloud infrastructure that is both cost-effective and highly available? Walk me through a recent example.

    Why ask it

    Evaluates ability to balance cost optimization with reliability requirements.

    What to look for

    Uses right-sizing, reserved or spot instances strategically, implements auto-scaling, designs for multi-AZ or multi-region availability, and monitors costs proactively. Should demonstrate that cost optimization is ongoing, not a one-time exercise.
  3. 15

    Explain your approach to container orchestration. How do you decide between Kubernetes, ECS, or other platforms?

    Why ask it

    Tests containerization depth and technology selection judgment.

    What to look for

    Considers team expertise, operational complexity, scale requirements, and existing infrastructure. Should understand that Kubernetes is powerful but adds complexity, and simpler alternatives may be appropriate for smaller workloads.

Monitoring, Observability & Incident Management Questions

These questions evaluate how candidates ensure system reliability and respond to production issues.

  1. 16

    How do you build an observability stack for a microservices architecture? What are the pillars of your approach?

    Why ask it

    Tests understanding of modern observability practices beyond basic monitoring.

    What to look for

    Covers the three pillars: metrics (Prometheus, CloudWatch), logs (ELK, Splunk), and traces (Jaeger, Datadog). Should discuss correlation between signals, alerting strategy, dashboards, and how observability drives faster incident resolution.
  2. 17

    Walk me through how you handle a production incident from detection to post-mortem. What is your process?

    Why ask it

    Evaluates incident response maturity and systematic approach to reliability.

    What to look for

    Structured incident response: detection via alerts, severity classification, communication protocol, investigation methodology, mitigation focus before root cause analysis, post-incident review with blameless culture, and action items to prevent recurrence.
  3. 18

    How do you define and implement SLOs and SLIs for a service? Give me a practical example.

    Why ask it

    Tests site reliability engineering concepts and ability to define reliability targets.

    What to look for

    Understands the relationship between SLIs (measurements), SLOs (targets), and SLAs (contracts). Can define meaningful SLIs beyond uptime (latency percentiles, error rates), sets realistic SLOs based on user expectations, and uses error budgets to balance reliability with feature velocity.
  4. 19

    How do you approach alert fatigue and ensure your on-call rotations are sustainable for your team?

    Why ask it

    Evaluates people-awareness and operational sustainability thinking.

    What to look for

    Tunes alerts to reduce noise, ensures every alert is actionable, documents runbooks for common issues, distributes on-call load fairly, invests in automation to reduce toil, and treats on-call burnout as a serious operational risk.

Running the interview well

  • 1Include a practical exercise such as designing a deployment pipeline or debugging a misconfigured infrastructure setup. Hands-on skills are essential for DevOps roles.
  • 2Ask about failure scenarios they have encountered and resolved. DevOps engineers who have never dealt with production incidents may lack the experience needed for critical infrastructure roles.
  • 3Evaluate their communication skills alongside technical depth. DevOps engineers must bridge development and operations teams and explain infrastructure decisions to non-specialists.
  • 4Test their security awareness throughout the conversation. Security should be integrated into their thinking, not treated as a separate concern.
  • 5Assess their automation instinct. The best DevOps engineers look to automate repetitive tasks and build self-healing systems rather than relying on manual intervention.

Common questions

What is the difference between a DevOps Engineer and a Site Reliability Engineer?

While there is significant overlap, DevOps Engineers typically focus on CI/CD pipelines, infrastructure automation, and developer tooling. Site Reliability Engineers focus more on production reliability, SLO management, and incident response. In practice, many organizations blend these roles. Focus on your specific needs when writing the job description.

Should DevOps Engineer candidates know multiple cloud platforms?

Deep expertise in one major cloud platform (AWS, GCP, or Azure) is usually sufficient, with awareness of the others. Multi-cloud experience is valuable but not essential unless your organization specifically uses multiple providers. Prioritize depth of knowledge and the ability to learn new platforms over breadth.

How do I evaluate infrastructure-as-code skills in an interview?

Ask candidates to write or review IaC code during the interview. Present a scenario and ask them to outline the Terraform or CloudFormation resources needed. Evaluate their understanding of state management, modularity, and best practices like using modules and version-pinning providers.

For hiring teams

Save these questions for the DevOps Engineer candidates who can do the work

Cohesyve takes your DevOps Engineer job description, finds candidates, reaches out to them and runs an AI job simulation of the real work, then returns a ranked shortlist.

1,500+

assessments completed

50%

faster time-to-hire

5 min

from JD to assessment

No credit card · 10 free candidates · Plans sized to your hiring volume

For job seekers

Preparing for a DevOps Engineer interview yourself? Practise on an AI job simulation of the role. 3 free tests, no card.

Practise a DevOps Engineer interview free →

See Cohesyve in action

Free 30-min walkthrough

See it on your role