CS FundamentalsHardProduct-company DevOps interview

A database cluster needs each replica to keep a stable network name (db-0, db-1, db-2) and its own persistent volume across restarts. Which Kubernetes workload type fits, rather than a Deployment?

  1. A. StatefulSet
  2. B. DaemonSet
  3. C. Job
  4. D. ReplicaSet

Correct answer: A. StatefulSet

StatefulSets give pods ordered, stable identities and per-pod persistent volume claims. Deployments treat pods as interchangeable; DaemonSets run one pod per node.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic