2V0-71.23 exam dumps

2V0-71.23 practice question 29 of 355

VMware Certified Professional - Tanzu for Kubernetes Operations 2024. Associate level, VMware. Free question with the correct answer and a full explanation.

2V0-71.23 Question 29

Single answer

An organization is using VMware Tanzu Kubernetes Grid (TKG) to deploy and manage Kubernetes clusters. The development team plans to deploy a microservices-based application consisting of multiple pods, services, and ConfigMaps. They also want to ensure that the application automatically rolls back if a deployment fails. Which Kubernetes concept should they use to achieve this?

  1. A

    ReplicaSet

  2. B

    Deployment

  3. C

    StatefulSet

  4. D

    Job

Show answer and explanation

Correct answer: B

Explanation

Deployments are the recommended Kubernetes resource for managing stateless applications. They allow for easy updates, scaling, and rollback functionality. By using a Deployment, the development team can ensure that their microservices-based application benefits from features like rolling updates to minimize downtime and automatic rollbacks in case of a failure during deployment.

  • A. Incorrect.

    ReplicaSet ensures that a specified number of pod replicas are running at any given time but does not support rolling updates or rollbacks.

  • B. Correct.

    Deployment is the correct concept as it provides advanced features such as rolling updates and rollbacks to manage the lifecycle of an application.

  • C. Incorrect.

    StatefulSet is used for managing stateful applications and provides guarantees about the ordering and uniqueness of pods but does not focus on rollbacks or rolling updates in the same way as Deployments.

  • D. Incorrect.

    Job is used for running one-off or batch tasks and does not manage long-running applications or provide rollback functionality.

Timed practice exam

Take a 2V0-71.23 practice test under exam conditions

63 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam