Practice free →
HomeMCA Cloud Computingcloudcomputingcloudorchestration › What is the difference between a Kubernetes Depl…

What is the difference between a Kubernetes Deployment and a StatefulSet?

ADeployments are billed per minute; StatefulSets are free
BDeployments are for stateless workloads with interchangeable pods; StatefulSets give each pod a stable network identity and persistent storage for stateful workloads like databases
CDeployments require physical servers; StatefulSets only run in virtual ones
DStatefulSets are deprecated; Deployments replace them
Answer & Solution
Correct answer: B. Deployments are for stateless workloads with interchangeable pods; StatefulSets give each pod a stable network identity and persistent storage for stateful workloads like databases
StatefulSet pods have stable names (pod-0, pod-1), stable storage (PVC templates), and ordered rollout — ideal for clustered DBs. Deployments treat pods as interchangeable. Neither is deprecated; billing is unrelated.
Solve this in the app — MCA Cloud Computing practice & 24k+ MCQs →
Related questions