DevOps Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

58 DevOps interview questions from Accenture, Deloitte, Amazon, TCS, General, Netflix and more. Real questions from Technical, System Design, and HR rounds.

58 questions
Companies: Accenture, Deloitte, Amazon, TCS…

All DevOps Questions

Deloitte Medium Technical round JenkinsGitHub ActionsDocker

Describe the complete CI/CD pipeline you have implemented in your projects. Walk through every stage from code commit to production deployment, including linting, unit tests, build, artifact storage, staging deploy, integration tests, and release gates.

↑ 94 upvotes · 38 engineers asked this · DevOps
Deloitte Medium Technical round JenkinsDockerKubernetes

If a critical issue is found in production, what steps would you take to resolve it quickly? Walk through: immediate triage, deciding between hotfix vs rollback, creating a hotfix branch, fast-track CI pipeline, communication protocol, and post-mortem.

↑ 91 upvotes · 38 engineers asked this · DevOps
Amazon Medium Screening round 3-6 years

Explain how Prometheus and Grafana work together for monitoring. What are the key metrics you'd track for a Node.js API?

↑ 84 upvotes · 52 engineers asked this · SDE2
Amazon Hard System Design round 4-8 years

How would you implement blue-green deployment with database migrations?

↑ 84 upvotes · 12 engineers asked this · SDE2
Deloitte Medium Technical round Docker

What is the difference between ENTRYPOINT and CMD in Docker? Explain with examples how they interact when both are specified, and how CMD can be overridden at runtime while ENTRYPOINT cannot easily be replaced.

↑ 83 upvotes · 34 engineers asked this · DevOps
General Medium Technical round 2-5 years

Your AWS Lambda function runs fine in testing but times out in production on the first invocation. Why?

↑ 83 upvotes · 51 engineers asked this · SDE2
Amazon Hard Screening round 5-9 years

What is a sidecar proxy and how does it work in service mesh architecture?

↑ 83 upvotes · 11 engineers asked this · Staff
Amazon Hard Screening round 5-9 years

What is a service mesh and what problem does it solve that a regular load balancer doesn't?

↑ 82 upvotes · 50 engineers asked this · Staff
Amazon Medium Screening round 3-6 years

Explain how connection draining works in load balancers and why it's important for zero-downtime deployments.

↑ 82 upvotes · 10 engineers asked this · SDE2
TCS Medium Screening round 2-5 years

Explain Docker layer caching. Why do developers often put COPY . . before RUN npm install (wrong) and how to fix it?

↑ 81 upvotes · 49 engineers asked this · SDE2
Amazon Medium Scenario round 3-6 years

Your CI/CD pipeline takes 45 minutes. How do you reduce it to under 10 minutes?

↑ 80 upvotes · 48 engineers asked this · SDE2
Amazon Hard System Design round 4-8 years

Explain how you would implement zero-downtime database migrations in a deployment pipeline.

↑ 79 upvotes · 47 engineers asked this · SDE2
General Hard Scenario round 3-7 years

How does Terraform manage state and what happens when two developers run 'terraform apply' simultaneously?

↑ 78 upvotes · 46 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

What is Kubernetes horizontal pod autoscaling (HPA) and what metrics can it scale on?

↑ 77 upvotes · 45 engineers asked this · SDE2
Deloitte Medium Technical round Docker

What are the key steps involved in building a Docker image? Explain each Dockerfile instruction (FROM, RUN, COPY, WORKDIR, EXPOSE, CMD), multi-stage builds for smaller images, layer caching best practices, and how to scan images for vulnerabilities.

↑ 76 upvotes · 30 engineers asked this · DevOps
Amazon Hard Technical round 3-7 years

Your Kubernetes pod keeps crashing with OOMKilled. How do you diagnose and fix it?

↑ 76 upvotes · 44 engineers asked this · SDE2
Amazon Medium Screening round 3-7 years

Explain blue-green vs canary deployment. When would you choose each?

↑ 75 upvotes · 43 engineers asked this · SDE2
Deloitte Medium Technical round JenkinsDocker

What stages do you generally include in a Jenkins pipeline to ensure code quality? Walk through each stage: checkout, static analysis (SonarQube/ESLint), unit tests with coverage thresholds, security scanning, build, and artifact publishing.

↑ 74 upvotes · 29 engineers asked this · DevOps
Deloitte Medium Technical round Jenkins

Explain the difference between Declarative and Scripted pipelines in Jenkins. When would you choose one over the other? Show a code snippet illustrating the structural difference.

↑ 71 upvotes · 27 engineers asked this · DevOps
Amazon Hard Scenario round 4-8 years

You need zero-downtime database schema changes in production. Your service has 50 instances running. How do you add a NOT NULL column to a high-traffic table?

↑ 69 upvotes · 47 engineers asked this · SDE2
General Hard Technical round 3-6 years

A Docker container is using 100% of its CPU allocation and throttling. The app inside is single-threaded. Adding more CPU limit doesn't help. What's the root cause?

↑ 68 upvotes · 46 engineers asked this · SDE2
General Medium Screening round 2-5 years

Explain how Helm works in Kubernetes. What problem does it solve that kubectl apply doesn't?

↑ 67 upvotes · 45 engineers asked this · SDE2
General Hard Scenario round 3-7 years

Your CI/CD pipeline takes 45 minutes. Developers complain. Break down how you'd systematically reduce it to under 10 minutes.

↑ 66 upvotes · 44 engineers asked this · SDE2
General Hard Scenario round 3-7 years

You need to run a database migration before deploying your new application version in Kubernetes. How do you handle this safely?

↑ 65 upvotes · 43 engineers asked this · SDE2
Amazon Medium Screening round 2-5 years

Explain the difference between liveness probe and readiness probe in Kubernetes. What happens if you configure liveness probe too aggressively?

↑ 64 upvotes · 42 engineers asked this · SDE2
General Hard Technical round 3-7 years

Your Kubernetes deployment has rollingUpdate maxUnavailable:0 and maxSurge:1. A new deployment is stuck at 1/2 pods ready and never completes. What's happening?

↑ 63 upvotes · 41 engineers asked this · SDE2
Deloitte Medium Technical round GitHub Actions

Which Git branching strategy do you follow — GitFlow or trunk-based development — and why? Compare release cadence, merge complexity, hotfix handling, and suitability for CI/CD pipelines.

↑ 62 upvotes · 24 engineers asked this · DevOps
Deloitte Medium Technical round Docker

How do you pass environment variables during Docker build and runtime? Compare ARG (build-time) vs ENV (runtime), how to use --build-arg and --env-file, the security implications of baking secrets into layers, and safer alternatives like Docker secrets.

↑ 61 upvotes · 23 engineers asked this · DevOps
Deloitte Medium Technical round Jenkins

What are Jenkins Shared Libraries and how are they used in Jenkinsfiles? Explain the directory structure, how to import them, and how they help enforce consistency across multiple pipelines in a large organisation.

↑ 58 upvotes · 21 engineers asked this · DevOps
Deloitte Medium Technical round JenkinsGitHub Actions

What is a webhook and how is it used in CI/CD automation? Explain how a GitHub webhook triggers a Jenkins job, the payload structure, how to secure it with a secret token, and how to debug failed webhook deliveries.

↑ 55 upvotes · 20 engineers asked this · DevOps
TCS Medium Technical round 2-5 years

Your Docker container works on developer machines but fails in production with 'Permission denied' errors accessing /data volume. All developers use Mac, production runs on Linux. What's the issue?

↑ 54 upvotes · 52 engineers asked this · SDE2
Accenture Medium Technical round JavaJavaScript

When two developers push changes to the same file in Git simultaneously, how would you resolve the merge conflict? Walk through: pulling latest, identifying conflict markers (<<<, ===, >>>), choosing which changes to keep, testing after resolution, and committing the merge.

↑ 53 upvotes · 20 engineers asked this · Developer
Amazon Hard Screening round 4-8 years

Explain how Kubernetes networking works when Pod A calls Pod B by service name. Trace the exact path of the network packet.

↑ 53 upvotes · 51 engineers asked this · SDE2
Deloitte Medium Technical round JenkinsGitHub Actions

How can Jenkins pipelines be created and triggered automatically? Explain pipeline-as-code with Jenkinsfile in SCM, multibranch pipelines that auto-discover branches, Organization Folders for GitHub orgs, and automatic triggering via webhooks vs SCM polling.

↑ 52 upvotes · 19 engineers asked this · DevOps
Amazon Hard Scenario round 4-7 years

Your Kubernetes cluster nodes are at 80% memory utilization. Adding pods fails with 'Insufficient memory'. You have 10 nodes. Some pods have no resource limits set. What's your investigation and remediation plan?

↑ 52 upvotes · 50 engineers asked this · SDE2
Amazon Hard Scenario round 3-7 years

After deploying a new version in Kubernetes, users report intermittent errors. 30% of requests fail, 70% succeed. Rollback is taking 10 minutes and you need a faster solution right now.

↑ 51 upvotes · 49 engineers asked this · SDE2
TCS Medium Scenario round 2-5 years

Your CI/CD pipeline builds a Docker image on every commit. Build time is 18 minutes. 15 minutes is just npm install. How do you reduce this without caching all npm packages globally?

↑ 50 upvotes · 48 engineers asked this · SDE2
Amazon Hard Scenario round 4-7 years

Your Kubernetes pod keeps crashing with OOMKilled. You set memory limit to 512Mi. The application normally uses 300Mi but spikes to 600Mi on certain requests. How do you fix this without just raising the limit?

↑ 49 upvotes · 47 engineers asked this · SDE2
Deloitte Medium Technical round GitHub ActionsJenkins

How do you prevent breaking the release branch during development? Discuss branch protection rules, required PR reviews, mandatory status checks, feature flags, and how to use a staging environment as a gate before merging to release.

↑ 48 upvotes · 17 engineers asked this · DevOps
Deloitte Medium Technical round JenkinsGitHub Actions

If a Jenkins job runs but the build does not trigger, what could be the possible reasons? Systematically diagnose: webhook misconfiguration, SCM polling, branch filter mismatch, credential errors, and agent availability.

↑ 46 upvotes · 17 engineers asked this · DevOps
Accenture Medium Technical round JenkinsGitHub ActionsDocker

Have you worked with CI/CD pipelines, and how were they used in your project? Describe the tools used (Jenkins, GitHub Actions, GitLab CI), the stages in your pipeline, how tests were triggered, and how deployments were automated.

↑ 41 upvotes · 15 engineers asked this · Developer
Amazon Medium Screening round 3-6 years

Explain the differences between Helm 2 and Helm 3 for Kubernetes package management. What was removed and why?

↑ 41 upvotes · 49 engineers asked this · SDE2
Deloitte Medium Technical round JenkinsDockerKubernetes

Explain your deployment workflow starting from code commit until production release. Cover feature branch → PR → CI → merge → staging deploy → smoke tests → canary/blue-green production deploy → monitoring and rollback plan.

↑ 39 upvotes · 41 engineers asked this · DevOps
Amazon Hard Scenario round 3-7 years

Your team merged 3 PRs simultaneously. Production broke. All 3 PRs look fine individually. What's the likely cause and how do you find it?

↑ 39 upvotes · 27 engineers asked this · SDE2
Amazon Hard Scenario round 3-8 years

You need to give a production hotfix in 30 minutes. The bug is causing data corruption. You don't have time for a full review cycle. What's your process?

↑ 32 upvotes · 20 engineers asked this · SDE2
TCS Medium Scenario round 2-6 years

Your API suddenly starts returning 404 for an endpoint that worked yesterday. No code was deployed. What do you investigate?

↑ 30 upvotes · 18 engineers asked this · SDE2
Netflix Medium Technical round 3-6 yearsDevOps

Explain the difference between a blue-green deployment and a canary deployment. When would you choose canary over blue-green?

↑ 24 upvotes · 13 engineers asked this · Senior SDE
General Hard Scenario round 4-8 years

Your Kubernetes cluster is down. Entire production is offline. You have 15 minutes before CEO calls. What do you do?

↑ 23 upvotes · 11 engineers asked this · SDE2
Amazon Hard Scenario round 3-8 years

You deploy a new feature on Friday. Monday morning, your boss says 'sales dropped 30% over the weekend.' How do you investigate whether your deployment caused it?

↑ 22 upvotes · 10 engineers asked this · SDE2
Amazon Hard Screening round 4-7 years

Explain the difference between active-passive and active-active database configurations.

↑ 21 upvotes · 29 engineers asked this · SDE2
Amazon Hard Scenario round 3-6 years

Your Kubernetes cluster has nodes running at 95% CPU. New pods are in Pending state. How do you resolve this?

↑ 20 upvotes · 28 engineers asked this · SDE2
Amazon Medium Screening round 3-6 years

What is GitOps and how does ArgoCD implement it?

↑ 19 upvotes · 27 engineers asked this · SDE2
Deloitte Medium Technical round 2-6 yearsDevOps

What is the difference between monitoring and observability? Give a concrete example of a production issue that good monitoring alone would miss but observability would catch.

↑ 19 upvotes · 10 engineers asked this · DevOps Engineer
Amazon Hard Screening round 4-7 years

How does HashiCorp Vault work for secret management? How do you integrate it with Kubernetes?

↑ 18 upvotes · 26 engineers asked this · SDE2
Amazon Hard Screening round 3-7 years

Explain Kubernetes Deployments vs StatefulSets. When would you use a StatefulSet?

↑ 17 upvotes · 25 engineers asked this · SDE2
Deloitte Medium Technical round 2-6 yearsTerraform

Why do most teams prefer Terraform over manually configuring cloud infrastructure through the console, even for a small project? Name a concrete risk manual configuration introduces.

↑ 17 upvotes · 7 engineers asked this · Cloud Architect
Amazon Medium Screening round 3-6 years

Explain feature flags and how you use them for A/B testing and safe deployments.

↑ 7 upvotes · 15 engineers asked this · SDE2
Amazon Hard Screening round 4-7 years

Explain OpenTelemetry. How does it unify traces, metrics, and logs?

↑ 5 upvotes · 13 engineers asked this · SDE2

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

Same topic at specific companies

Accenture DevOps Deloitte DevOps Amazon DevOps TCS DevOps General DevOps Netflix DevOps

Related topics

DSA / Arrays System Design DSA / Trees DSA / Graphs Behavioral Testing Domain API Testing DSA / Hashmaps GCP / Real-time Data Java / Pub-Sub React / Performance Node.js / Memory SQL / Query Optimization Python / Async AWS / Lambda Kafka / Consumer Microservices / Saga Pattern TypeScript / Type System MongoDB / Indexing Security / SQL Injection Performance / Latency Tail Redis / Cache Stampede Elasticsearch / Cluster Health GraphQL / Security Data Engineering / Exactly Once Snowflake / Architecture PySpark / Core Concepts Airflow / Scheduling Web / WebAssembly Debugging / Production JavaScript / V8 Engine

Frequently asked questions

Describe the complete CI/CD pipeline you have implemented in your projects. Walk through every stage from code commit to production deployment, including linting, unit tests, build, artifact storage, staging deploy, integration tests, and release gates.
Describe the complete CI/CD pipeline you have implemented in your projects. Walk through every stage from code commit to production deployment, including linting, unit tests, build, artifact storage, staging deploy, integration tests, and release gates.
If a critical issue is found in production, what steps would you take to resolve it quickly? Walk through: immediate triage, deciding between hotfix vs rollback, creating a hotfix branch, fast-track CI pipeline, communication protocol, and post-mortem.
If a critical issue is found in production, what steps would you take to resolve it quickly? Walk through: immediate triage, deciding between hotfix vs rollback, creating a hotfix branch, fast-track CI pipeline, communication protocol, and post-mortem.
Explain how Prometheus and Grafana work together for monitoring. What are the key metrics you'd track for a Node.js API?
Explain how Prometheus and Grafana work together for monitoring. What are the key metrics you'd track for a Node.js API?
How would you implement blue-green deployment with database migrations?
How would you implement blue-green deployment with database migrations?
What is the difference between ENTRYPOINT and CMD in Docker? Explain with examples how they interact when both are specified, and how CMD can be overridden at runtime while ENTRYPOINT cannot easily be replaced.
What is the difference between ENTRYPOINT and CMD in Docker? Explain with examples how they interact when both are specified, and how CMD can be overridden at runtime while ENTRYPOINT cannot easily be replaced.