# What is the purpose of a Kubernetes HorizontalPodAutoscaler?

Kubernetes, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-a-kubernetes-horizontalpodautoscaler

- A. To automatically scale the number of nodes in a cluster
- B. To automatically scale the number of pods in a deployment based on CPU utilization or other metrics
- C. To automatically scale the resources allocated to a pod
- D. To automatically scale the storage capacity of persistent volumes

**Answer:** To automatically scale the number of pods in a deployment based on CPU utilization or other metrics

**Explanation:** The HorizontalPodAutoscaler automatically scales the number of pods in a deployment, replication controller, or replica set based on observed CPU utilization or other select metrics. This helps ensure that applications have the resources they need during peak times and saves resources during low-usage periods.
