Skip to content
PPreptima

DevOps & Cloud interview questions

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

13 published across 8 topics.

DevOps and cloud fundamentals57 short answers on one page, for revising rather than studying.

Linux & Networking

2 questions

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

Containers & Docker

2 questions

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

mediumConcept

What is a container image, and why is a container not a virtual machine?

An image is an ordered stack of read-only filesystem layers plus a config document, addressed by digest. A container is an ordinary host process with namespaces restricting what it can see and cgroups restricting what it can use, sharing the host kernel instead of booting its own.

5 minentry, mid, senior

Kubernetes

2 questions

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

mediumScenarioConcept

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

CrashLoopBackOff means the container starts and exits repeatedly, so read the previous container's logs and the exit code first, then work outward through probes, configuration, dependencies, and resource limits.

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

CI/CD

2 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.

6 minmid, senior, staff

Infrastructure as Code

1 question

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

Cloud Platforms

1 question

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

SRE & Reliability

2 questions

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

mediumConceptScenario

How would you set an SLO for a service, and what is an error budget for?

An SLI measures user-visible behaviour, an SLO is the internal target for that measurement, and an SLA is the contractual promise with penalties. The error budget is the allowed shortfall: 99.9% over a 30-day month is 43.2 minutes, and its job is to trigger an agreed policy.

5 minmid, senior, staff

DevOps Scenarios

1 question

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