C. The number of pods increases up to 5 to handle load
D. CPU limits are increased automatically
Solution
Step 1: Understand HPA behavior with CPU utilization
HPA increases pod count when average CPU usage exceeds target utilization (50%).
Step 2: Check min and max replicas
Pods scale between 2 and 5 replicas based on load; exceeding 50% triggers scaling up.
Final Answer:
The number of pods increases up to 5 to handle load -> Option C
Quick Check:
CPU > 50% triggers scale up = A [OK]
Hint: HPA scales pods up when CPU usage exceeds target [OK]
Common Mistakes:
Thinking pods scale down on high CPU
Assuming pods restart on high CPU
Believing CPU limits auto-increase
4. You notice your Kubernetes cluster is overspending because pods are not scaling down after load decreases. Which is the most likely cause?
medium
A. CPU requests are set higher than limits
B. Resource limits are set too low
C. Pods have no readinessProbe configured
D. The Horizontal Pod Autoscaler has a high minReplicas value
Solution
Step 1: Analyze autoscaling parameters
A high minReplicas prevents scaling below that number, causing overspending.
Step 2: Evaluate other options
Low limits or readiness probes don't directly prevent scaling down; CPU requests > limits is invalid.
Final Answer:
The Horizontal Pod Autoscaler has a high minReplicas value -> Option D
Quick Check:
High minReplicas blocks scale down = A [OK]
Hint: Check minReplicas to allow scaling down [OK]
Common Mistakes:
Confusing limits with requests
Ignoring minReplicas effect
Assuming readinessProbe affects scaling
5. You want to optimize costs by automatically scaling your Kubernetes cluster nodes based on pod resource usage. Which combination of tools and settings should you use?
hard
A. Cluster Autoscaler with properly set pod resource requests and limits
B. Manual node scaling with no pod resource limits
C. Disable Horizontal Pod Autoscaler and increase node count permanently
D. Set pod resource limits to zero and rely on node autoscaling
Solution
Step 1: Understand cluster autoscaling
Cluster Autoscaler adjusts node count based on pod scheduling needs and resource requests.
Step 2: Importance of pod resource requests and limits
Proper requests and limits let the autoscaler know actual resource needs to scale nodes efficiently.
Step 3: Evaluate other options
Manual scaling wastes resources; disabling HPA or zero limits causes inefficiency or errors.
Final Answer:
Cluster Autoscaler with properly set pod resource requests and limits -> Option A