D3: Horizontal Pod Autoscaler
Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards
Question
What does HPA do?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Horizontal Pod Autoscaler practice questions and answers
- What does HPA do?Scales the number of Pod replicas based on metrics.
- Required for CPU-based HPA?CPU resource requests on containers.
- Basic HPA command?kubectl autoscale deployment NAME --cpu-percent=60 --min=2 --max=10.
- HPA metric types?Resource (CPU/memory), custom, and external metrics.
- Example external metric?Pub/Sub subscription backlog.
- What are minReplicas and maxReplicas?Bounds on scaling.
- What is the behavior field?Controls scale-up/down rates and stabilization windows.
- Why stabilization windows?Prevent flapping from rapid scale changes.
- HPA vs cluster autoscaler?HPA scales Pods; cluster autoscaler adds nodes for pending Pods.
- HPA vs VPA?HPA changes replica count; VPA changes Pod resource requests.