KCNA · Question #73
What is the difference between a Deployment and a ReplicaSet?
The correct answer is D. A Deployment is a higher-level concept that manages ReplicaSets. A Kubernetes Deployment is a higher-level abstraction that manages the lifecycle of ReplicaSets, enabling declarative updates and rollbacks for applications.
Question
What is the difference between a Deployment and a ReplicaSet?
Options
- AWith a Deployment, you can't control the number of pod replicas.
- BA ReplicaSet does not guarantee a stable set of replica pods running.
- CA Deployment is basically the same as a ReplicaSet with annotations.
- DA Deployment is a higher-level concept that manages ReplicaSets.
How the community answered
(54 responses)- A2% (1)
- B2% (1)
- C7% (4)
- D89% (48)
Why each option
A Kubernetes Deployment is a higher-level abstraction that manages the lifecycle of ReplicaSets, enabling declarative updates and rollbacks for applications.
Deployments explicitly allow you to control the number of pod replicas through their `spec.replicas` field.
A ReplicaSet's primary purpose is to guarantee a stable set of replica pods running at all times.
A Deployment is a controller that owns and manages ReplicaSets, it is not merely a ReplicaSet with annotations.
A Deployment is a higher-level API object that manages ReplicaSets, providing declarative updates to Pods and ReplicaSets. This abstraction allows for functionalities like rolling updates, rollbacks, and scaling of application instances.
Concept tested: Kubernetes Deployment vs. ReplicaSet
Source: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
Topics
Community Discussion
No community discussion yet for this question.