>DevOps Interview KB

Senior DevOps Interview Questions

516 questions across 39 categories

Deeper trade-off and design questions — why a specific approach was chosen, what breaks at scale, and how to reason about a system you didn't build.

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

How would you sunset or retire a golden path that's no longer the right default as the organization's needs have evolved?

AdvancedPlatform Engineering7 min

How do you decide what belongs on a golden path / internal developer platform versus what teams should just be free to do themselves?

AdvancedPlatform Engineering8 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

A Python automation script uses subprocess.run(f'kubectl get pod {pod_name}', shell=True) where pod_name comes from user input. What's actually wrong with this, and how do you fix it?

AdvancedPython7 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

How would you handle a data transformation that genuinely needs to see the whole dataset at once, like a global sort, when streaming isn't an option?

AdvancedPython8 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 find a piece of a legacy pipeline that seems actively dangerous — overly broad credentials, say — but nobody can explain why it's configured that way. What do you do?

AdvancedSecurity7 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 would you decide whether to gradually refactor a legacy pipeline versus rewriting it from scratch?

AdvancedCI/CD7 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