D3: Pod Autoscaling & Autopilot Resource Requests
Google Cloud Associate Cloud Engineer exam practice questions · 12 flashcards
Question
What is the Horizontal Pod Autoscaler (HPA)?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 Pod Autoscaling & Autopilot Resource Requests practice questions and answers
- What is the Horizontal Pod Autoscaler (HPA)?Scales the number of Pod replicas based on CPU, memory, custom or external metrics.
- How do you create an HPA?kubectl autoscale deployment NAME --cpu-percent=60 --min=2 --max=10.
- What is the Vertical Pod Autoscaler (VPA)?Adjusts Pod CPU/memory requests based on usage.
- VPA update modes?Off (recommend only), Initial (on creation) and Auto/Recreate.
- Can HPA and VPA both act on CPU for the same workload?Avoid it; they conflict. Use multidimensional autoscaling or different metrics.
- What does HPA need to work on CPU?Pods must have CPU requests defined.
- How is Autopilot billed?By the CPU, memory and storage resources Pods request.
- What if requests aren't set in Autopilot?Autopilot applies default requests.
- How does Autopilot treat limits?Limits are generally set equal to requests.
- What are Autopilot compute classes?Options like Balanced, Scale-Out, Performance and Accelerator for different workload needs.
- Why right-size Autopilot requests?Over-requesting costs money; under-requesting causes throttling or eviction.
- HPA vs cluster autoscaler?HPA scales Pods; cluster autoscaler scales nodes.