2V0-71.23 Question 33
Select 3A platform engineer is deploying a stateful application on a Kubernetes cluster managed by VMware Tanzu. The application requires persistent storage and must be accessible through a specific network IP address. Which Kubernetes concepts should the engineer utilize for this deployment?
- A
PersistentVolume and PersistentVolumeClaim
- B
StatefulSet
- C
Service of type LoadBalancer
- D
DaemonSet
- E
NetworkPolicy
Show answer and explanation
Correct answers: A, B, C
Explanation
To successfully deploy a stateful application in Kubernetes, the engineer must use PersistentVolume and PersistentVolumeClaim to manage persistent storage, a StatefulSet to ensure stable identities and storage for Pods, and a Service of type LoadBalancer to allow external network access to the application. DaemonSet and NetworkPolicy are not directly relevant to the requirements stated in the scenario.
- A. Correct.
PersistentVolume (PV) and PersistentVolumeClaim (PVC) are essential for provisioning and managing persistent storage for stateful applications in Kubernetes.
- B. Correct.
StatefulSet is the correct Kubernetes resource for managing stateful applications since it provides stable network identities and persistent storage using PVCs.
- C. Correct.
A Service of type LoadBalancer is required to ensure the application can be accessed from outside the cluster using a specific IP address.
- D. Incorrect.
DaemonSet is used for ensuring a specific Pod runs on all or some nodes in the cluster. It is not relevant for managing persistent storage or network accessibility for stateful applications.
- E. Incorrect.
NetworkPolicy is used to define network traffic rules for Pods, but it does not address persistent storage or external accessibility requirements.