GCP Professional Cloud Architect Practice Question
Your online learning platform runs a regional GKE Standard cluster. A Deployment currently scales with a Horizontal Pod Autoscaler (HPA) that targets 60 % CPU, but load tests show pods crash at 80 % memory while CPU stays below the threshold, so no scale-out occurs. You must redesign scaling so that pods add replicas when either CPU or memory exceeds 70 %, and node pools automatically grow and shrink with minimal operational effort. Which solution best meets these goals?
Create an HPA that targets 70 % on both cpu and memory resource metrics, and enable the cluster autoscaler on the node pool.
Migrate the service to Cloud Run, set concurrency to 1, and cap the revision at 1 000 instances to obtain automatic scaling.
Keep the CPU-based HPA, add a Vertical Pod Autoscaler in recommend mode to right-size memory requests, and disable the cluster autoscaler to prevent conflicts.
Replace the HPA with a KEDA scaler that watches a Cloud Monitoring memory metric and turn on node auto-provisioning instead of the cluster autoscaler.
GKE's HPA can use multiple built-in resource metrics simultaneously. Defining one HPA that targets 70 % for both cpu and memory causes a scale-out when either metric is above the target, eliminating the current blind spot. Because the metrics server is enabled by default on GKE, no additional components are needed. Enabling the cluster autoscaler on the node pool lets the cluster add or remove nodes as replica counts change, meeting the cost-efficiency requirement with native, fully managed capabilities.
KEDA adds a third-party component and is unnecessary when resource metrics are sufficient. A Vertical Pod Autoscaler only tunes requests and, with the cluster autoscaler disabled, would not add nodes or replicas quickly enough. Migrating to Cloud Run changes the platform, may still need memory tuning, and introduces higher re-architecting effort that the question explicitly wants to avoid. Therefore, using a single HPA with both cpu and memory metrics plus the cluster autoscaler is the optimal answer.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a Horizontal Pod Autoscaler (HPA) in GKE?
Open an interactive chat with Bash
What is the cluster autoscaler in GKE, and how does it work?
Open an interactive chat with Bash
What is KEDA and how does it differ from HPA?
Open an interactive chat with Bash
What is a Horizontal Pod Autoscaler (HPA)?
Open an interactive chat with Bash
What is cluster autoscaler in GKE?
Open an interactive chat with Bash
What is KEDA and why is it not preferred here?
Open an interactive chat with Bash
GCP Professional Cloud Architect
Designing and planning a cloud solution architecture
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .