Google Cloud Professional Cloud Developer — Question 181
You are deploying a microservices application to Google Kubernetes Engine (GKE) that will broadcast livestreams. You expect unpredictable traffic patterns and large variations in the number of concurrent users. Your application must meet the following requirements:
• Scales automatically during popular events and maintains high availability
• Is resilient in the event of hardware failures
How should you configure the deployment parameters? (Choose two.)
Answer options
- A. Distribute your workload evenly using a multi-zonal node pool.
- B. Distribute your workload evenly using multiple zonal node pools.
- C. Use cluster autoscaler to resize the number of nodes in the node pool, and use a Horizontal Pod Autoscaler to scale the workload.
- D. Create a managed instance group for Compute Engine with the cluster nodes. Configure autoscaling rules for the managed instance group.
- E. Create alerting policies in Cloud Monitoring based on GKE CPU and memory utilization. Ask an on-duty engineer to scale the workload by executing a script when CPU and memory usage exceed predefined thresholds.
Correct answer: A, C
Explanation
Option A is correct as using a multi-zonal node pool helps distribute the application across multiple zones, enhancing availability and resilience. Option C is also correct because it incorporates both the cluster autoscaler and Horizontal Pod Autoscaler, which together ensure automatic scaling of nodes and workloads. Options B and D do not fully utilize GKE’s features for automatic scaling, while option E relies on manual intervention, which does not provide the needed responsiveness during unpredictable traffic spikes.