DevOps engineer interview questions and scenarios

DevOps engineer interviews test whether you can build delivery pipelines, run containers and Kubernetes, manage cloud infrastructure as code, and respond calmly when production breaks. The format mixes knowledge questions with troubleshooting scenarios, where the interviewer describes a failing system and asks what you would check first. Scenario answers carry the most weight, because they show how you think under pressure.

By Published 5 min read

What to expect

Titles overlap. Site reliability engineer, platform engineer and cloud engineer interviews cover much of the same ground, with SRE roles asking more about reliability targets and coding, and platform roles asking more about internal tooling for developers. A typical process has a phone screen on fundamentals, a hands-on or scenario round, a system design round about infrastructure, and behavioral questions focused on incidents.

Linux and networking questions

Fundamentals that interviewers check first
QuestionWhat to cover
A server is slow. What do you look at?CPU, memory, disk input and output, and network, in that order of quick checks. Name the tools you use and what a bad reading looks like
The disk is full but you cannot find large files.Deleted files still held open by a process, or exhausted inodes from many small files
What happens when you type a URL and press Enter?DNS lookup, TCP connection, TLS handshake, HTTP request, load balancer, application, response
TCP versus UDP?TCP is ordered and reliable with connection setup. UDP is connectionless and faster, used where some loss is acceptable
How does DNS resolution work?Resolver, root, top-level domain and authoritative servers, with caching controlled by the record's time to live
What is the difference between a process and a thread?Processes have separate memory. Threads share memory inside a process
How do file permissions work?Read, write and execute for owner, group and others, and how to change them safely
Fundamentals that interviewers check first. Scroll sideways on a small screen.

CI/CD questions

  • Describe a pipeline you built. Walk through the stages: build, unit tests, static checks, packaging an artifact, deploying to a test environment, further tests, and promotion to production. Say how long it takes and what you did to shorten it.
  • Blue-green, canary or rolling deployment? Blue-green switches all traffic between two environments and rolls back instantly, at double the capacity. Canary sends a small share of traffic to the new version and watches metrics. Rolling replaces instances gradually with no extra environment.
  • How do you roll back? Redeploy the previous artifact, which must still exist. Database changes need care: make schema changes backward compatible so the old version still runs.
  • How do you handle secrets in a pipeline? A secrets manager or the pipeline's protected variables, never in the repository or in logs.
  • A pipeline is flaky. What do you do? Find the unstable tests or steps, quarantine and fix them, and stop automatic retries from hiding the problem.

Containers and Kubernetes questions

Container and Kubernetes questions
QuestionA good answer mentions
Container versus virtual machine?Containers share the host kernel and isolate processes. Virtual machines run a full guest operating system
How do you make an image smaller and safer?Multi-stage builds, a minimal base image, no secrets in layers, a non-root user, and pinned versions
What is a pod?The smallest deployable unit: one or more containers sharing network and storage
Deployment versus StatefulSet?Deployments for interchangeable replicas. StatefulSets for stable identity and storage, such as databases
Liveness versus readiness probes?Liveness restarts a stuck container. Readiness removes a pod from traffic until it can serve
A pod is in CrashLoopBackOff. What now?Read the logs of the previous container, describe the pod for events, check configuration, probes and memory limits
How does a Service find pods?Label selectors, with a stable virtual address in front of changing pod addresses
Requests versus limits?Requests are what the scheduler reserves. Limits are the ceiling. Exceeding a memory limit kills the container
Container and Kubernetes questions. Scroll sideways on a small screen.

Cloud and infrastructure as code

  • Why infrastructure as code? Changes are reviewed, repeatable and versioned, and an environment can be rebuilt from the repository.
  • How does Terraform state work? It maps your configuration to real resources. Store it remotely with locking so two people cannot apply at once, and treat it as sensitive.
  • What is drift? A difference between the code and what exists, usually from a manual change. Detect it with a plan and decide whether to import or revert.
  • Explain least privilege. Each person and service gets only the permissions it needs. Prefer short-lived roles over long-lived keys.
  • Design a network for a web application. Public subnets for load balancers, private subnets for application servers and databases, and security rules that allow only the needed paths.
  • How would you reduce a cloud bill? Find idle and oversized resources, use autoscaling, commit to reserved capacity for steady load, and tag resources so cost has an owner.

Monitoring and reliability questions

  • Metrics, logs and traces: what is each for? Metrics show that something is wrong, traces show where in a request path, and logs show the detail.
  • What would you alert on? Symptoms users feel, such as error rate and latency, not every internal cause. An alert should need a human action.
  • What are SLIs, SLOs and error budgets? An indicator is a measurement, an objective is its target, and the budget is how much failure the target allows. When the budget is spent, reliability work takes priority over features.
  • How do you reduce alert fatigue? Remove alerts nobody acts on, group related ones, and route by severity.

Troubleshooting scenarios

A scenario such as "users report intermittent 502 errors" has no single right answer. What the interviewer wants is an order of investigation that narrows the problem quickly.

  1. Scope itAll users or some? Since when? Did anything deploy or change at that time?
  2. Follow the request pathLoad balancer health checks and logs, then the application instances, then their dependencies.
  3. Form one hypothesis at a timeFor 502s: instances failing health checks, a timeout mismatch between the load balancer and the application, or pods being killed for memory.
  4. Mitigate before you perfectRoll back, scale out or remove a bad instance to stop the impact. Find the root cause after users are safe.
  5. Close the loopExplain the fix that prevents a repeat and the alert that would have caught it sooner.

Fictional example

Answering "Tell me about an incident you handled"
Our checkout service started timing out on a Saturday evening. I was on call. Error rate was at 15 percent and the database connection pool was exhausted. Nothing had been deployed, so I looked at traffic and found a partner's job calling an export endpoint in a tight loop. I rate-limited that client at the gateway, and errors cleared within five minutes. On Monday I wrote the review with no blame attached. We added a per-client limit by default, an alert on pool usage at 80 percent, and moved exports to a background queue. The same partner job ran the following month with no impact.

Scripting and coding

Expect a short task in Bash, Python or Go: parse a log file and count errors per hour, call an API and act on the response, or write a health check. Clean, readable code with error handling matters more than cleverness. SRE roles may include a standard algorithm question as well.

Preparation

Rebuild something small end to end: a containerized service, a pipeline that deploys it, infrastructure defined in code, and a dashboard with one alert. Then break it on purpose and practice narrating the diagnosis. Narration is the part people skip. Natively, a live interview assistant for Mac and Windows, can transcribe a mock scenario round on your computer so you can check afterward whether your steps were in a sensible order.

Questions people ask

What questions are asked in a DevOps interview?

Linux and networking fundamentals, CI/CD pipeline design and deployment strategies, Docker and Kubernetes, infrastructure as code, monitoring and alerting, and troubleshooting scenarios.

How do I answer DevOps troubleshooting scenarios?

Scope the problem, follow the request path from the load balancer inward, test one hypothesis at a time, mitigate the user impact first, then find the root cause and say how to prevent a repeat.

Which Kubernetes questions are most common?

Pods, Deployments versus StatefulSets, Services, liveness and readiness probes, requests and limits, and how to debug a pod in CrashLoopBackOff.

Is coding required for DevOps interviews?

Usually a short scripting task in Bash, Python or Go, such as parsing logs or calling an API. Site reliability roles may add an algorithm question.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP