2V0-71.23 Question 30
Single answerYour organization uses VMware Tanzu to manage Kubernetes clusters and deploy applications. As part of an application lifecycle management strategy, you are tasked with deploying a microservices-based application that requires scaling, version control, and rollback capabilities. Which Kubernetes resource is best suited to achieve these requirements?
- A
Deployment
- B
Pod
- C
ConfigMap
- D
StatefulSet
Show answer and explanation
Correct answer: A
Explanation
The Deployment resource in Kubernetes is specifically designed to manage the lifecycle of stateless applications, including features like scaling, rolling updates, and rollback capabilities. It provides a declarative way to manage workloads, making it the best choice for deploying a microservices-based application that requires these functionalities.
- A. Correct.
Deployments are designed for managing application lifecycle tasks, such as scaling, rolling updates, and rollbacks. They are ideal for stateless applications and support version control.
- B. Incorrect.
Pods are the basic units in Kubernetes but lack built-in capabilities for scaling, updates, or rollbacks. They are typically managed by higher-level resources like Deployments.
- C. Incorrect.
ConfigMaps are used for managing configuration data and do not handle application deployment, scaling, or updates.
- D. Incorrect.
StatefulSets are used for stateful applications, such as databases, and focus on maintaining stable network identities and storage. They are not the best choice for stateless microservices requiring scaling and rollbacks.