Cloud Digital Leader Scaling with Google Cloud operations Practice Question
A company runs a web application on Google Kubernetes Engine (GKE) that experiences sudden traffic spikes. The operations team notices that the application's response time increases significantly during these spikes despite having Horizontal Pod Autoscaler (HPA) configured. They want to ensure consistent performance. What should they do?
⚠ Common exam trap
Google Cloud often tests the misconception that CPU-based HPA is sufficient for all scaling scenarios, but the trap here is that CPU metrics do not capture application-level performance degradation caused by request latency or queue buildup during traffic spikes.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Configure the HPA to use custom metrics based on request latency.
Configuring the HPA to use custom metrics based on request latency allows the autoscaler to react directly to the application's performance degradation. Unlike CPU-based metrics, which may not reflect actual user-facing latency during traffic spikes, custom metrics like request latency provide a more accurate signal for scaling decisions, ensuring consistent response times.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the CPU request limit for all pods.
Why it's wrong here
Increasing CPU request limits only changes the amount of CPU reserved for each pod at the scheduler level; it does not alter what metric the HorizontalPodAutoscaler (HPA) observes. HPA can scale on CPU utilization, but request latency is an application-level performance signal that CPU requests do not influence. In fact, raising CPU request limits can reduce node density (fewer pods per node) and may indirectly worsen latency by forcing more nodes, without improving autoscaling responsiveness to traffic spikes.
- ✓
Configure the HPA to use custom metrics based on request latency.
Why this is correct
Configuring the HPA to consume custom metrics from the Kubernetes Custom Metrics API (e.g., using the Stackdriver adapter or Prometheus adapter) allows it to scale based on request latency metrics such as p95 or p99 duration. This directly measures user-facing performance so the HPA adds pods when latency rises, not just when CPU is saturated. This approach responds to application-level bottlenecks, which is the correct fix for latency-driven scaling on Google Kubernetes Engine.
- ✗
Create multiple node pools with different machine types.
Why it's wrong here
Creating multiple node pools with different machine types is a form of infrastructure scaling that changes the shape of the cluster's nodes, not the HPA's scaling decision. The HPA operates at the pod level and continues to use its configured metric (e.g., CPU or custom latency) regardless of which node pool a pod runs in. While node pools support autoscaling at the node level (Cluster Autoscaler) and can host heterogeneous workloads, they do not enable latency-based pod autoscaling—the HPA still needs a custom metric to react to request latency.
- ✗
Manually scale the deployment during expected spikes.
Why it's wrong here
Manually scaling the deployment in anticipation of spikes relies on human prediction, which is error-prone and cannot adapt to sudden or unexpected traffic increases. Once the spike begins, manual intervention incurs a delay while the new pods are scheduled and start serving, potentially causing latency spikes. The HPA, by contrast, automatically and continuously compares the observed latency metric against a target and adjusts the replica count within seconds to minutes, providing the automated, fine-grained response needed for dynamic web traffic.
Go deeper
Related to this question
Learn chapter
Benefits of Google Cloud
Key term
Anthos
Anthos is a Google Cloud platform that lets you run applications consistently across different computing environments, like on-premises data centers and multiple public clouds.
Key term
Autoscaler
An Autoscaler is a cloud service that automatically increases or decreases the number of virtual machines (instances) or resources based on real-time demand, so your application always has enough capacity without wasting money on idle servers.
About these practice questions
Courseiva writes every GCDL question from scratch — 829 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This GCDL practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GCDL exam.