Skip to content
Preptima

DevOps & Cloud interview questions and answers

Platform and infrastructure questions for DevOps, SRE, and any backend role expected to own its service in production.

37 published across 8 topics.

Processes and signals, file descriptors, DNS and TLS, and debugging connectivity from first principles.

mediumScenarioConcept

df says the filesystem is 100% full but du only accounts for half of it. What is going on?

df and du disagree because df reads filesystem block allocation while du walks visible directory entries. Deleted-but-open files, inode exhaustion, hidden files under mounts and reserved blocks are the usual causes. Use this LINUX answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects filesystems to the point an interviewer is testing.

4 minmid, senior
All 5 in Linux & Networking

Namespaces and cgroups, image layering, multi-stage builds, and container security basics.

mediumScenarioConceptDesign

Your source control stores every version of a 200MB binary and the repository is now 40GB. What is being stored, and why can you not delete it?

Roughly 200 near-full copies, because delta compression works on text and a relinked binary differs throughout, so each version costs almost its own size. Deleting the file changes nothing: history is content-addressed and every past commit still reaches the blob. The design fix is that build outputs belong in a registry that can expire them, because version control is built never to forget.

6 minmid, senior, staff
mediumConceptScenario

What happens when a container hits its CPU limit, and what happens when it hits its memory limit?

Container CPU and memory limits fail differently: CPU limits throttle work, while memory limits can trigger OOMKilled restarts. Debug by comparing requests, limits, actual usage and runtime-specific memory settings. Use this containers answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects cgroups to the point an interviewer is testing.

5 minmid, senior, staff
All 4 in Containers & Docker

Kubernetes

5 questions

Scheduling, controllers and reconciliation, services and ingress, probes, and resource management.

hardScenarioConceptDesign

Pods are being evicted during node pressure even though your CPU dashboards look fine. Where do you look, and what would you change so it stops?

CPU is compressible, so the kubelet throttles it rather than evicting for it. Eviction comes from memory, ephemeral storage or inodes - and which pods die is decided by QoS class, not by who caused the pressure. Check node conditions and eviction thresholds first, then fix the requests and limits so critical workloads are Guaranteed rather than BestEffort.

4 minmid, senior, staff
mediumScenarioConcept

A pod is stuck in CrashLoopBackOff. How do you debug it?

Kubernetes CrashLoopBackOff debugging starts with the previous container logs, exit code and pod events. Then separate application crashes from liveness probe kills, bad configuration, missing dependencies and OOMKilled restarts.

4 minmid, senior
hardScenarioDesign

Every rolling update drops a small number of requests. Where do they go?

Removing a pod from its EndpointSlice and sending it SIGTERM happen concurrently, and the data-plane update takes time to propagate, so requests keep arriving at a pod that has already begun shutting down. The fix is a preStop delay plus an application that finishes in-flight work before exiting.

4 minmid, senior, staff
hardDesignScenario

Your worker nodes take operating system and kernel updates automatically. What is the risk, and how would you make node-level change safe?

A node image change is a release of the layer underneath Kubernetes, so the control plane cannot stage it, roll it back or reliably report on it. Treat node pools as rings, replace nodes rather than patching them in place, and get the health signal from outside the cluster. It also connects node lifecycle to the point an interviewer is testing.

6 minsenior, staff, lead
All 5 in Kubernetes

CI/CD

5 questions

Pipeline design, artefact promotion, deployment strategies, and safe rollback mechanics.

hardDesignScenario

How would you design a deployment pipeline that can be rolled back safely?

Build one immutable artefact, promote that same artefact through environments behind ordered quality gates, and deploy so traffic can be shifted back instantly. Rollback only stays possible if schema changes are backward-compatible expand-contract steps decoupled from the code deploy.

7 minmid, senior, staff
All 5 in CI/CD

Terraform state and drift, module design, and managing environments without duplication.

All 3 in Infrastructure as Code

Cloud Platforms

5 questions

Compute, networking, identity, and managed-service selection across Azure, AWS, and GCP.

hardDesignCase Study

One managed service in your primary region is having a bad day and your product is down with it. What can you do during the outage, and what should you have designed before it?

During the event your only levers are the ones already built: fail over, serve degraded from cache, or shed the dependent feature. Beforehand the work is finding your transitive dependencies on foundational services, making the running system statically stable, and choosing which features are allowed to fail alone.

6 minsenior, staff, lead
hardScenarioDesign

When your infrastructure is heavily coupled to proprietary managed services, how do you design and execute a cloud provider exit strategy without obliterating the business?

An examination of strategic foresight, the realities of vendor lock-in, and the technical necessity of abstracting proprietary dependencies during a large-scale migration. Use this engineering leadership answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects vendor management to the point an interviewer is testing.

2 minsenior, staff
hardScenarioDesign

How do you architect an automated lifecycle management system to identify, quarantine, and terminate orphaned cloud resources without accidentally destroying critical infrastructure?

Zombie cloud infrastructure should be detected with billing, utilization, ownership, and access signals, then quarantined before deletion so FinOps automation saves cost without destroying critical standby resources. Use this FINOPS answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects cloud infrastructure to the point an interviewer is testing.

2 minsenior, staff
hardScenarioDesign

Would you rely on VPNs and static credentials, or how do you architect a Zero Trust identity system for a globally distributed workforce accessing highly sensitive cloud workloads?

Assessing the architectural transition from legacy perimeter models to Zero Trust, focusing on continuous authentication, context-aware access, and the elimination of static credentials. Use this security answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects cloud security to the point an interviewer is testing.

2 minsenior, staff
All 5 in Cloud Platforms

SLIs, SLOs and error budgets, incident command, on-call design, and blameless postmortems.

hardConceptScenarioDesign

Your error budget burn alert pages every few hours, but half the time nobody outside the team has noticed anything. How do you tune it without simply making it quieter?

A single threshold on a single window cannot separate a real outage from a brief spike, so it either pages on noise or misses slow burns. Replace it with multi-window multi-burn-rate alerting: a fast rule that pages and a slow rule that files a ticket, each gated by a short window so a spike that already stopped does not keep paging.

5 minmid, senior, staff
hardScenarioCase Study

A network blip lasting under a minute leaves two database primaries having each accepted writes, and you spend the next day degraded. Why does a short fault produce a long recovery, and what would you have changed?

Recovery time is set by how much state diverged, not by how long the fault lasted, so seconds of dual writes can take a day to reconcile. The prevention is a single writer enforced by quorum and fencing; the mitigation is designing the write path so repair is mechanical rather than forensic.

6 minsenior, staff, lead
hardScenarioDesign

How do you conduct a post-mortem after a catastrophic Sev1 outage triggered by a junior engineer's mistake, without succumbing to the blame game?

Analyse the leader's approach to blameless post-mortems, identifying root causes over symptoms, and driving accountability for remediation. Use this engineering leadership answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects incident management to the point an interviewer is testing.

2 minsenior, staff
hardScenarioDesign

You want to prove the system survives losing a database, in production, on a Tuesday afternoon. How do you run that without being fired?

Turn it into an experiment: a steady state you can measure in under a minute, a blast radius you chose, an abort that is one command with a named person who can call it, and written approval from whoever owns the revenue. Tuesday afternoon is the right time because everyone who understands the system is awake, and the announcement goes to the channel your own alerts land in.

7 minsenior, staff, lead
hardScenarioDesign

A Kubernetes cluster admin account has been compromised for 45 minutes. Do you clean the cluster or burn it to the ground, and why?

Evaluate the candidate's crisis management and technical recovery skills in a high-stakes scenario involving a total compromise of Kubernetes administrative control. Use this security answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects incident response to the point an interviewer is testing.

2 minsenior, staff
All 7 in SRE & Reliability

DevOps Scenarios

3 questions

Situations to work through: a failing rollout, an exhausted node, a leaked credential, a 3am pager.

hardScenarioCase Study

You have just joined and you are asked whether the company could restore production if the primary database were destroyed right now. How do you find out?

You cannot answer it from configuration, only by performing a restore into an isolated environment and timing it. Establish the recovery targets first, then test each mechanism separately, because backup jobs that report success and replicas that are not backups are the two ways this claim is usually wrong.

6 minsenior, staff, lead
hardScenarioDesign

When a multi-year legacy migration stalls at eighty percent due to edge cases and waning morale, how do you ruthlessly unblock the final stretch?

Evaluating the engineering leader's capability to drive complex, long-running programs across the finish line when initial momentum has faded and organisational fatigue sets in. Use this engineering leadership answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects program delivery to the point an interviewer is testing.

2 minsenior, staff
All 3 in DevOps Scenarios