Kubernetes and Cloud Native Associate (KCNA) — Question 99
What is the difference between a Deployment and a ReplicaSet?
Answer options
- A. With a Deployment, you can’t control the number of pod replicas.
- B. A ReplicaSet does not guarantee a stable set of replica pods running.
- C. A Deployment is basically the same as a ReplicaSet with annotations.
- D. A Deployment is a higher-level concept that manages ReplicaSets.
Correct answer: D
Explanation
The correct answer is D because a Deployment indeed manages ReplicaSets, providing higher-level functionalities such as rolling updates and rollbacks. Option A is incorrect since a Deployment allows control over pod replicas, while B is false as a ReplicaSet does ensure a stable set of pods. Option C is misleading; while a Deployment may use annotations, it is not merely a ReplicaSet with annotations.