Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
You are architecting an autoscaling strategy for a latency-critical event processing application deployed on Google Kubernetes Engine (GKE) Standard. The application experiences sudden spikes in message volume from a Google Cloud Pub/Sub subscription and variable memory usage during payload deserialization.
You need to scale the container replicas based on queue depth, optimize container resource sizing without metric contention, and ensure the underlying cluster infrastructure dynamically provisions compute capacity when Pods cannot be scheduled.
Which autoscaling configuration should you implement?
Define explicit container CPU and memory resource requests, configure the Horizontal Pod Autoscaler (HPA) using an External metric from Pub/Sub, allow Vertical Pod Autoscaler (VPA) to adjust memory resources, and enable GKE Cluster Autoscaler on the node pools.
Configure the Horizontal Pod Autoscaler (HPA) to scale on custom memory utilization percentage without specifying container resource requests, and configure Cluster Autoscaler to monitor real-time node memory utilization.
Define container resource limits without setting requests, configure HPA to scale on Pub/Sub metrics, and enable both GKE Cluster Autoscaler and Compute Engine autoscaling policies simultaneously on the underlying MIG.
Configure the Horizontal Pod Autoscaler (HPA) to scale on average CPU utilization percentage, configure the Vertical Pod Autoscaler (VPA) in Auto mode to adjust CPU requests, and enable Compute Engine Managed Instance Group autoscaling directly on the node pool.
Define explicit container CPU and memory resource requests, configure the Horizontal Pod Autoscaler (HPA) using an External metric from Pub/Sub, allow Vertical Pod Autoscaler (VPA) to adjust memory resources, and enable GKE Cluster Autoscaler on the node pools.
Multi-dimensional autoscaling on Google Kubernetes Engine (GKE) combines workload-level horizontal elasticity, workload-level vertical resource right-sizing, and cluster-level compute provisioning into a unified, non-conflicting scaling architecture.
Pending (unschedulable) Pods and adds Compute Engine VMs to the node pool when existing nodes lack allocatable capacity.This design establishes a clean separation of concerns: HPA handles concurrency based on external ingress volume, VPA right-sizes container memory footprints, and GKE Cluster Autoscaler ensures underlying compute infrastructure expands dynamically without conflicting with native Compute Engine autoscalers.
Configure the Horizontal Pod Autoscaler (HPA) to scale on custom memory utilization percentage without specifying container resource requests, and configure Cluster Autoscaler to monitor real-time node memory utilization.
Define container resource limits without setting requests, configure HPA to scale on Pub/Sub metrics, and enable both GKE Cluster Autoscaler and Compute Engine autoscaling policies simultaneously on the underlying MIG.
Configure the Horizontal Pod Autoscaler (HPA) to scale on average CPU utilization percentage, configure the Vertical Pod Autoscaler (VPA) in Auto mode to adjust CPU requests, and enable Compute Engine Managed Instance Group autoscaling directly on the node pool.