2V0-71.23 Question 31
Select 3Your organization is deploying a Kubernetes application that requires persistent storage and high availability. The application also needs to communicate with external users over the internet. Which of the following Kubernetes concepts should you leverage to meet these requirements?
- A
PersistentVolumeClaim (PVC) for storage provisioning
- B
Ingress for external access
- C
NetworkPolicy to restrict external traffic
- D
StorageClass to define storage backend and parameters
- E
Service of type ClusterIP to expose the application
Show answer and explanation
Correct answers: A, B, D
Explanation
To meet the application's requirements, PersistentVolumeClaim (PVC) ensures persistent storage, StorageClass defines the desired storage backend, and Ingress enables external communication over the internet. NetworkPolicy and ClusterIP are unrelated to the specific needs of storage and external access in this context.
- A. Correct.
PersistentVolumeClaim (PVC) is used to request storage resources in Kubernetes, making it essential for applications that require persistent storage.
- B. Correct.
Ingress is used to manage external HTTP and HTTPS access to services running in a Kubernetes cluster, meeting the requirement for external user communication.
- C. Incorrect.
NetworkPolicy is used to control traffic between pods or from external sources, but it does not directly address the need for storage or external access in this scenario.
- D. Correct.
StorageClass defines the storage backend and parameters (e.g., provisioner, reclaim policy), which is critical when provisioning storage with specific requirements.
- E. Incorrect.
Service of type ClusterIP only exposes the application within the cluster and does not provide external access, making it unsuitable for this scenario.