Skip to main content
DevOps Engineer

What do DevOps engineer interviews ask?

A DevOps engineer interview asks how you get code from a laptop to production safely and how you keep it running. Expect Linux and networking fundamentals, questions on build and deploy pipelines, containers and a cloud provider, infrastructure as code, and scenario questions about an outage. Interviewers care about how you reason when something is broken and what you change so it does not break the same way again.

DevOps Engineer interview questions, by round

19 questions across 4 rounds.

Recruiter and background screen

Finds out what you have run yourself, even on a home server or a class project, since most early-career candidates have little production time.

  1. Tell me about the most complex system you have set up and kept running.
  2. Have you deployed an application to a cloud account? Walk me through what you did.
  3. What does DevOps mean to you, and how is it different from a sysadmin role?
  4. Describe a time something you built broke and what you did.

Linux and networking

Basic fluency on the command line and in how machines talk, because every later problem is debugged here.

  1. A server is running slowly. Which commands do you run first, and what are you looking for?
  2. What is the difference between a process and a service, and how do you see what is listening on port 8080?
  3. Explain file permissions in Linux. What does chmod 640 do?
  4. What happens when you run curl against a hostname? Walk through DNS, TCP and TLS.
  5. What is the difference between a hard link and a soft link?

CI/CD, containers and cloud

Checks that you understand the delivery path and the tools behind it, and that you build for repeatability.

  1. Describe a pipeline you would build for a small web service, from commit to production.
  2. What is the difference between a container and a virtual machine?
  3. A container works on your laptop but exits immediately in the cluster. How do you debug it?
  4. What is infrastructure as code, and what problem does it solve compared with clicking in a console?
  5. How would you store a database password so it is not in the repository or the image?
  6. Explain a rolling deployment and a blue-green deployment. When would you choose each?

Reliability and incidents

Scenario questions that show how you behave under pressure and whether you learn from failures.

  1. Users report the site is returning errors. What do you do in the first ten minutes?
  2. What would you monitor on a web service, and what would you alert a person about?
  3. You deployed a change and error rates went up. Do you roll back or fix forward?
  4. What belongs in a blameless postmortem?

Sample answers

Illustrative answers written for this guide, not transcripts of real candidates.

A server is running slowly. Which commands do you run first, and what are you looking for?

I would work through the resources one at a time. First uptime to see the load average against the number of cores. Then top or htop to find which process is using processor or memory. If memory is nearly full I check whether the machine is swapping, because that makes everything slow. Then iostat or iotop to see whether disk is the bottleneck, and df to check a full disk. Then ss to look at connections, in case something is holding thousands of sockets open. Last, the logs around the time it slowed down, with journalctl or the application log. The aim is to decide which of processor, memory, disk or network is the limit before I touch anything, and to write down what I saw, so the next person does not have to repeat it.

Why it scores: Problem-Solving: checks each resource in order instead of guessing. Technical: names the right tool for each and knows swapping is a cause of slowness. Communication: states the goal of the process and writes down findings.

You deployed a change and error rates went up. Do you roll back or fix forward?

My default is to roll back, because it is the fastest way to stop users being hurt and it is a known step. I would roll back first if the change is the likely cause and rolling back is safe, then investigate with no pressure. The exceptions are when the change included a database migration that cannot be undone, or when the fix is a one-line, well-understood change and the rollback itself carries risk. Before deciding I would check the timing of the error increase against the deploy, to be sure I am not blaming the wrong thing. I would also tell the team in the incident channel what I am doing and why. Afterwards I would ask why our checks did not catch it, and what would let us release it to a small share of traffic first.

Why it scores: Problem-Solving: gives a default and the specific cases that change it. Technical: aware that migrations make rollback unsafe. Behavioral: communicates during the incident and follows up on prevention.

A container works on your laptop but exits immediately in the cluster. How do you debug it?

I would read the exit first. I check the pod or container status for the exit code and the last state, because code 137 means the process was killed, often for running out of memory, and code 1 means the application itself failed. Then I read the logs, including from the previous run since the container restarted. The usual differences between my laptop and the cluster are environment variables or secrets that are missing, a different architecture, a memory limit lower than the application needs, a read-only filesystem, and a health check that fails before the app has started. I would run the same image locally with the cluster settings, such as the limit and the variables, to reproduce it. Once fixed, I would add a note to the deployment template so the next service does not repeat it.

Why it scores: Technical: knows exit codes and the common environment gaps. Problem-Solving: reproduces the failure with the cluster settings instead of changing things in the cluster. Communication: orders the checks clearly.

Describe a time something you built broke and what you did.

I ran a small API for a class project on a cloud instance, and one night it stopped responding. I connected and found the disk was full. The cause was application logs with no rotation. I cleared the oldest logs to get it back up, which took a few minutes of downtime, then set up log rotation and a disk-usage alert at a threshold that would give me hours of warning, not minutes. I also wrote a short note in the repository on how to check for it. The lesson I took is that a system failing from a boring cause like disk space usually means monitoring was missing, and that the fix is the alert as well as the cleanup.

Why it scores: Behavioral: owns the failure and states what changed afterward. Technical: root cause named precisely. Problem-Solving: treats the missing alert as part of the fix.

What a DevOps Engineer answer is scored on

Problem-Solving
Narrowing an outage by evidence, choosing between rollback and fix-forward with reasons and finding the underlying cause, not only the symptom.
Code Quality
Pipelines, scripts and infrastructure definitions that are repeatable, versioned, readable and free of secrets.
Technical
Linux, networking, containers, a cloud provider and monitoring, with accurate answers on why a tool exists and not only how to run it.
Communication
Keeping people informed during an incident, writing a postmortem and explaining a risk to a developer who wants to ship.
Behavioral
Staying calm under pressure, owning an outage you caused and treating a failure as a system problem, not a person problem.

These are the five dimensions every interview rolls up to. The full rubric and its measured limits are on the scoring page.

How a Lifelike DevOps Engineer interview is scored

How a Lifelike DevOps Engineer interview is scored: a live voice interview, graded on the rubric for its type with an overall score out of 100, calibrated and banded into YES, MAYBE or NO, then rolled up onto the Profile Card across five dimensions (Technical, Problem-Solving, Communication, Code Quality, Behavioral).
The same rubric grades every Lifelike interview. See the full rubric

What the report shows you

Sample report Performance snapshot: strengths and improvement actions, each quoting the exact sentence from the interview it came from, tagged with its question number.
Sample report, synthetic data. Every strength and gap quotes the moment it came from.

How to prepare

  • Deploy a small application end to end yourself: a container image, a pipeline that builds and ships it, and a cloud instance or cluster that runs it.
  • Practise the first ten commands you would run on a slow or unreachable server, and say out loud what each tells you.
  • Learn what a request does from DNS to TLS to the application so you can place any failure on that path.
  • Write the infrastructure for one project as code and be ready to explain why it beats configuring by hand.
  • Prepare one honest story about a thing you broke, including the alert or process you added afterward.

DevOps Engineer interviews: common questions

Do I need cloud certifications for an early-career DevOps role?

They can help a resume get read, but interviewers test what you have actually run. A project you deployed and can explain in detail usually counts for more than a certificate you cannot talk through.

How much coding is in a DevOps interview?

Some. Expect to write or read a short script in Python or Bash, such as parsing a log or calling an API, not algorithm puzzles. Knowing one scripting language well is enough.

What is the difference between DevOps and SRE?

DevOps is a way of working that joins building and running software. Site reliability engineering applies software engineering to reliability, often with explicit targets for availability. The interviews overlap, and an SRE one leans more on incident response and reliability measures.

How do I practise this interview?

Run a mock interview for the DevOps Engineer role and answer out loud. The feedback report scores each answer on the five dimensions above and shows the transcript beside the score.