All jobs / DevOps / SRE / cloud / Kubernetes

DevOps / SRE / cloud interview question · 0–1 years

Which Kubernetes object do you reach for: a stateless API, a database, a log agent on every node, and a nightly clean-up?

The strongest answer

Deployment for the API, StatefulSet for the database (stable identity and per-pod storage), DaemonSet for the agent, and a CronJob that creates Jobs for the clean-up

Why it works

Exactly — each controller encodes a different lifecycle: replaceable replicas, ordered stateful identity, one-per-node, run-to-completion.

What a good answer covers

Answers that fall short

Who gets asked this

More Kubernetes questions