Home › MCA Cloud Computing › cloudcomputing › cloudorchestration › 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.
Related questions
A blue/green deployment strategy on cloud platforms primarily:Which IaC concept describes ensuring that applying the same configuration twice yields theWhich Kubernetes object lets you declare a pool of pods that should always have N running,In Terraform, what is the role of the "state" file?GitOps as a deployment pattern means:A service mesh (e.g. Istio, Linkerd) primarily adds which capability to a microservices syHelm in the Kubernetes ecosystem primarily provides:What is the role of a Kubernetes Service object?