Kubernetes and Cloud Native Associate (KCNA) — Question 21
Which API object is the recommended way to run a scalable, stateless application on your cluster?
Answer options
- A. ReplicaSet
- B. Deployment
- C. DaemonSet
- D. Pod
Correct answer: B
Explanation
The correct answer is B, Deployment, as it is designed to manage the deployment of stateless applications and ensures scalability and updates. ReplicaSets are usually managed by Deployments, while DaemonSets are used for running a single instance of a pod on each node, and Pods are the smallest deployable units in Kubernetes, but do not inherently provide scalability.