2V0-71.23 Question 290
Select 4Your organization is running a Kubernetes cluster managed by VMware Tanzu. A critical application deployed on the cluster experiences fluctuating workloads throughout the day. To handle these workload changes efficiently, you have been tasked with configuring application autoscaling. Which of the following statements correctly describes the functionality and considerations of application autoscaling in Tanzu Kubernetes environments?
- A
Horizontal Pod Autoscaler (HPA) adjusts the number of pod replicas based on CPU or memory utilization metrics.
- B
Vertical Pod Autoscaler (VPA) adjusts the resources (CPU and memory) requested by the pods without changing the replica count.
- C
Cluster Autoscaler increases the number of Kubernetes worker nodes when there are insufficient resources for scheduling new pods.
- D
Application autoscaling in Tanzu automatically scales the cluster nodes without requiring any configuration or policies.
- E
Autoscaling policies in Tanzu can only be configured using the Kubernetes command-line interface (kubectl).
- F
Custom metrics can be used with HPA to scale applications beyond CPU and memory usage.
Show answer and explanation
Correct answers: A, B, C, F
Explanation
Application autoscaling in Tanzu Kubernetes environments encompasses Horizontal Pod Autoscaler (HPA), Vertical Pod Autoscaler (VPA), and Cluster Autoscaler. These mechanisms handle different scaling requirements: HPA adjusts the number of pods, VPA adjusts resource requests, and Cluster Autoscaler adjusts the node count. Custom metrics can also be used with HPA to scale applications based on business or application-specific requirements. However, these features require configuration and integration, and they are not limited to a specific tool like kubectl.
- A. Correct.
Horizontal Pod Autoscaler (HPA) scales applications horizontally by increasing or decreasing the number of pod replicas based on resource utilization metrics like CPU or memory. This is a core feature of Kubernetes and supported in Tanzu.
- B. Correct.
Vertical Pod Autoscaler (VPA) adjusts the resource requests and limits for pods to better fit their actual resource usage. This helps optimize resource allocation without changing the number of replicas.
- C. Correct.
Cluster Autoscaler is responsible for scaling the number of worker nodes in the Kubernetes cluster. It ensures the cluster has sufficient capacity to run pods when resources are constrained.
- D. Incorrect.
Application autoscaling in Tanzu does not automatically scale cluster nodes without configuration or policies. Cluster Autoscaler must be explicitly configured to manage node scaling.
- E. Incorrect.
Autoscaling policies can be configured using various tools, not just kubectl. Users can also leverage YAML manifests, Tanzu Mission Control, or other management interfaces.
- F. Correct.
Custom metrics can be used with HPA by integrating external metric systems like Prometheus or custom APIs. This expands the autoscaling capabilities beyond just CPU and memory metrics.