2V0-71.23 exam dumps

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

Single answer

A development team is deploying a stateful application on a Kubernetes cluster managed by VMware Tanzu. They need to ensure the application can store and retrieve data persistently across pod restarts and meet the following requirements:

  • The application should dynamically request storage when a pod is created.
  • Storage resources must be shared across multiple nodes in the cluster.
  • Kubernetes should handle the provisioning and deletion of storage automatically.

Which Kubernetes storage concept should the team use to meet these requirements?

  1. A

    Persistent Volume (PV)

  2. B

    Persistent Volume Claim (PVC)

  3. C

    StorageClass

  4. D

    ConfigMap

Show answer and explanation

Correct answer: C

Explanation

To meet the requirements of dynamic provisioning and automatic handling of storage resources, the development team should use a StorageClass. A StorageClass defines how Kubernetes dynamically provisions storage when a Persistent Volume Claim (PVC) is created. The application can then use PVCs to request the required storage, which is automatically created and deleted by Kubernetes based on the StorageClass configuration.

  • A. Incorrect.

    Persistent Volumes (PVs) are pre-provisioned storage resources in the cluster. While they provide persistent storage, they are not dynamically provisioned by default. The team specifically needs dynamic provisioning, which requires a StorageClass.

  • B. Incorrect.

    Persistent Volume Claims (PVCs) are used by applications to request storage from PVs. However, PVCs rely on a StorageClass for dynamic provisioning, so they are not the correct option in isolation.

  • C. Correct.

    StorageClass is a Kubernetes resource that defines the dynamic provisioning of storage. It allows Kubernetes to automatically provision and delete storage resources based on the requirements specified by PVCs. This is the correct choice for the scenario described.

  • D. Incorrect.

    ConfigMaps are used to store configuration data for applications, not persistent storage. They do not meet the requirements for provisioning or persisting storage.

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