>DevOps Interview KB

DevOps Engineer Interview Questions

372 questions across 38 categories

The bulk of a working DevOps engineer's day-to-day: hands-on tooling, common troubleshooting, and the practical judgment calls that come up once you're actually operating systems.

What's the relationship between distributed traces and structured logs — should trace IDs actually be injected into log lines, and why?

IntermediateOpentelemetry6 min

How do you handle a team that has a legitimate reason to deviate from a golden path — what does a good exception process actually look like?

IntermediatePlatform Engineering6 min

How would you measure whether a golden path is actually succeeding, versus just being nominally adopted because it's mandated?

IntermediatePlatform Engineering6 min

Usage data shows one of your platform's supported deployment strategies is used by exactly two teams out of sixty, but maintaining it still consumes real platform-team time. How do you handle deprecating it?

IntermediatePlatform Engineering6 min

Should platform engineers be organized as one centralized team, or embedded within product teams? What actually determines the right structure?

IntermediatePlatform Engineering6 min

Do we actually need a full internal developer portal (like Backstage), or would genuinely good documentation and a couple of CLI tools solve most of the same problem?

IntermediatePlatform Engineering6 min

Finance is asking your platform team to justify its headcount with concrete ROI numbers. How would you actually measure and communicate the value a platform team provides?

IntermediatePlatform Engineering7 min

What does it actually mean to run an internal platform 'as a product,' and how is that concretely different from just building infrastructure tooling?

IntermediatePlatform Engineering6 min

Your platform team started as an enabler, but teams now complain that every new capability request sits in the platform team's backlog for months. How do you diagnose and fix this?

IntermediatePlatform Engineering7 min

A Python CLI tool used in CI pipelines always exits with code 0, even when it detects and reports a real failure. What breaks because of this, and how do you fix it?

IntermediatePython6 min

An automation script opens a database connection, does some work, and closes it at the end — but an exception partway through leaves the connection open. Why does 'with' fix this, and how does it actually work?

IntermediatePython6 min

You want to speed up a Python automation script that processes many files. Should you use threading or multiprocessing? What does the GIL actually have to do with this decision?

IntermediatePython7 min

A script calling a flaky API retries immediately with a fixed 1-second delay. During a real outage, this made things worse. Why, and how should retry logic actually be designed?

IntermediatePython7 min

A log-processing script uses json.load() to parse a multi-gigabyte newline-delimited JSON log file and gets killed with an out-of-memory error. What's wrong, and how do you fix it?

IntermediatePython7 min

What's the difference between a Docker container being OOM-killed by its own cgroup memory limit versus the host machine itself running out of memory?

IntermediateDocker6 min

Why does Docker report exit code 137 specifically for an OOM-killed container, and how does that map to the underlying kernel signal?

BeginnerDocker5 min

A Python script that processes a large file works fine on your laptop but gets OOM-killed when run in a container with a memory limit. What's likely wrong, and how do you fix it?

IntermediatePythonDocker8 min

You inherit a legacy CI/CD pipeline with zero documentation, and the person who built it left the company months ago. How do you approach understanding it and safely making your first change?

IntermediateCI/CD8 min

How do you balance the time investment in fully understanding a legacy system against the pressure to just make the requested change quickly?

IntermediateDevops6 min

You've proposed a robust, well-architected solution to a problem, but your manager wants a quick, hacky fix instead because the problem is genuinely minor. Are they wrong, or are you over-engineering?

IntermediateDevops6 min

You've just joined a team responsible for critical infrastructure, and there's essentially no documentation — the previous engineers who understood it have all left. How do you approach getting up to speed safely?

IntermediateDevops6 min

Your organization depends heavily on an internal tool maintained by exactly one engineer, who's showing clear signs of burnout and has hinted they might leave. How do you handle this before it becomes a crisis?

IntermediateDevops6 min

Product leadership keeps deprioritizing infrastructure tech debt work in favor of features, and the debt is now visibly slowing down every new feature. How do you actually change this dynamic?

IntermediateDevops7 min

When would you actually choose manual credential rotation over fully automated rotation, given that automation is generally considered the more secure default?

IntermediateSecurity6 min