Question 20
Container OrchestrationIf you need to automatically scale your Kubernetes cluster by adding/removing nodes based on overall resource pressure, which component is responsible?
Correct answer: C
Explanation
Cluster Autoscaler (CA) is responsible for changing the number of nodes in a Kubernetes cluster when pods cannot be scheduled due to resource pressure. It monitors pending pods and node utilization, then "adding/removing nodes" to match demand.
Why each option is right or wrong
A. Horizontal Pod Autoscaler (HPA)
B. Vertical Pod Autoscaler (VPA)
C. Cluster Autoscaler (CA)
The Kubernetes component that adjusts the node count in response to unschedulable pods and overall capacity pressure is the Cluster Autoscaler, which watches for pending pods that cannot be placed because existing nodes lack sufficient CPU, memory, or other resources. It then triggers scale-up or scale-down actions through the underlying cloud provider or node group, whereas the Horizontal Pod Autoscaler only changes pod replicas and does not add or remove nodes.
D. kube-scheduler
E. metrics-server