2V0-71.23 exam dumps

2V0-71.23 practice question 26 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 26

Single answer

A development team is deploying a multi-tier application to a Kubernetes cluster using declarative YAML manifests. The application includes several microservices that must be deployed in a specific order. During testing, the team notices that some microservices fail to start because their dependencies are not yet available. Which Kubernetes feature should the team use to ensure proper deployment order?

  1. A

    Use Init Containers to manage application dependency initialization.

  2. B

    Define an Ingress resource to control the order of service communication.

  3. C

    Utilize Kubernetes Jobs to deploy dependent microservices sequentially.

  4. D

    Set up PodDisruptionBudgets to ensure Pods are not disrupted during startup.

Show answer and explanation

Correct answer: A

Explanation

When deploying a multi-tier application in Kubernetes, managing dependencies between microservices is critical. Init Containers are a Kubernetes feature that allow developers to execute initialization logic, such as waiting for a dependent service to be ready, before the main application containers start. This ensures the proper startup order and avoids errors caused by unavailable dependencies.

  • A. Correct.

    Init Containers can be used to handle initialization logic, such as waiting for dependencies to be ready, before the main application containers start. This ensures proper deployment order.

  • B. Incorrect.

    Ingress resources are used to manage external access to services, such as HTTP/S traffic routing. They do not control deployment order or service dependencies.

  • C. Incorrect.

    Kubernetes Jobs are designed for running batch or one-time tasks and are not suitable for managing the startup order of dependent microservices.

  • D. Incorrect.

    PodDisruptionBudgets are used to ensure high availability during voluntary disruptions and do not address the problem of managing deployment order or microservice dependencies.

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