Kubernetes and Cloud Native Associate (KCNA) — Question 2
How are ReplicaSets and Deployments related?
Answer options
- A. Deployments manage ReplicaSets and provide declarative updates to Pods.
- B. ReplicaSets manage stateful applications, Deployments manage stateless applications.
- C. Deployments are runtime instances of ReplicaSets.
- D. ReplicaSets are subsets of Jobs and CronJobs which use imperative Deployments.
Correct answer: A
Explanation
The correct answer is A because Deployments are specifically designed to manage ReplicaSets, allowing for easy updates and management of Pods. Option B is incorrect as both ReplicaSets and Deployments can handle both stateful and stateless applications. Option C is wrong because Deployments are not runtime instances of ReplicaSets; they create and manage them. Option D is also incorrect as ReplicaSets are not subsets of Jobs and CronJobs; they are entirely different resources.