AI
prepair.app
Start interview →
EnglishУкраїнськаРусский
⚙️

Junior DevOps / SREDevOps interview questions

Junior · no experience / under 1 year

DevOps and SRE interviews are less about naming tools and more about judgement under constraints: what you roll back first, what you alert on, and what you deliberately leave broken until morning. Below are the questions asked most often, each with a model answer. Junior: core theory, definitions, and simple practical cases.

Topics to prepare

CI/CD pipelines
Docker and containers
Kubernetes
Terraform and IaC
Observability and SLO
Incidents and reliability

9 Junior-level questions with answers

1

What is the difference between continuous integration, delivery and deployment?

Answer

Continuous integration means every commit is merged and verified by an automated build and test run, so the branch never drifts far from main. Continuous delivery means every passing build produces an artefact that could go to production, with the final push being a human decision. Continuous deployment removes that decision — every green build ships. The distinction matters in interviews because most teams claiming CD actually practise delivery.

2

How do Docker layers work, and how do you keep an image small?

Answer

Each instruction creates a read-only layer, and layers are cached and reused as long as everything before them is unchanged — which is why you copy the dependency manifest and install dependencies before copying the source. Size comes down through multi-stage builds that leave the compiler behind, a slim or distroless base image, and combining commands so intermediate files never reach a layer. Deleting a file in a later layer does not shrink the image, because the earlier layer still contains it.

3

Explain the relationship between a Pod, a Deployment and a Service.

Answer

A Pod is the smallest schedulable unit — one or more containers sharing a network namespace and lifecycle. A Deployment manages a ReplicaSet that keeps a declared number of identical Pods running and handles rolling updates and rollbacks. A Service gives that changing set of Pods a stable virtual IP and DNS name, load balancing across whichever Pods currently match its selector, so callers never track individual Pod IPs.

4

What is the difference between a liveness and a readiness probe?

Answer

A readiness probe decides whether a Pod receives traffic; failing it removes the Pod from the Service endpoints but leaves it running. A liveness probe decides whether the container is restarted. Confusing them is a classic outage: pointing liveness at a dependency means a slow database restarts every replica simultaneously, turning degraded service into total downtime. Liveness should test only "is this process wedged", readiness should test "can I serve right now".

5

What is Terraform state and why is it dangerous?

Answer

State maps the resources declared in your configuration to the real objects in the provider, so Terraform can tell what to create, change or destroy. It is dangerous because it is authoritative: if it is lost, Terraform no longer knows it owns your infrastructure and will try to recreate it. It also frequently contains secrets in plaintext. That is why state belongs in a remote backend with encryption, versioning, and locking so two engineers cannot apply at once.

6

When do you use Terraform versus Ansible?

Answer

Terraform is declarative provisioning: it creates and destroys infrastructure and converges the real world to your declared state. Ansible is procedural configuration management: it runs ordered tasks against machines that already exist. The clean split is Terraform for anything with a lifecycle in a cloud API, Ansible for what happens inside a VM. On a Kubernetes-based stack, Ansible's role shrinks a lot, because container images replace machine configuration.

7

What are SLI, SLO and an error budget?

Answer

An SLI is a measured indicator of service health, such as the fraction of requests served successfully under 300 ms. An SLO is the target for that indicator over a window, for example 99.9% over 30 days. The error budget is the allowed shortfall — 0.1% of requests — and it turns reliability into a spendable resource: if the budget is intact you can ship faster, and if it is exhausted you freeze features and fix reliability. That is what stops "reliability versus velocity" being an argument about opinions.

8

What is the difference between metrics, logs and traces?

Answer

Metrics are cheap numeric aggregates over time and answer "is something wrong" — they are what you alert on. Logs are discrete events with detail and answer "what exactly happened" in one request or component. Traces follow a single request across services and answer "where did the time go" in a distributed call chain. Alerting on logs is expensive and noisy; debugging from metrics alone is guesswork. You need all three, used for what each is good at.

9

Compare rolling, blue-green and canary deployments.

Answer

Rolling replaces instances gradually, needs little extra capacity, but during the roll two versions serve traffic and rollback is slow. Blue-green runs a full second environment and switches traffic at once, giving instant rollback at the cost of double capacity and a hard database-migration problem. Canary sends a small slice of traffic to the new version and watches metrics before widening, which catches issues real users hit but requires solid observability and automated analysis to be worth it.

🦎

Reading answers is not enough

In a real interview you speak under pressure. Cam asks these same questions, scores every answer, and shows exactly what to fix.

Practice a Junior DevOps / SRE interview →
Free · 3 interviews per month

Other levels — DevOps / SRE

Middle DevOps / SRESenior DevOps / SREAll DevOps / SRE questions

Other specializations

🔍Junior Manual QA🤖Junior QA AutomationJunior Java Backend🐍Junior Python Backend🐘Junior PHP Backend🦫Junior Go Backend🟢Junior Node.js Backend⚛️Junior React Frontend💚Junior Vue Frontend🅰️Junior Angular Frontend