Google Professional Cloud Network Engineer Question 439
Select 2Google Cloud PlatformYour organization is running a web application on Google Cloud using a managed instance group (MIG) behind a global external HTTP(S) load balancer. The application is experiencing intermittent traffic spikes during peak hours, causing occasional downtime. You want to ensure the system can handle these spikes while optimizing costs. Which of the following configurations should you implement?
- A
Configure autoscaling for the managed instance group based on CPU utilization.
- B
Set up a health check for the managed instance group to ensure traffic is only routed to healthy instances.
- C
Manually scale the managed instance group to ensure sufficient instances are always running.
- D
Configure an autoscaling policy with a minimum number of instances set to match traffic at peak hours and allow scaling beyond this during traffic spikes.
- E
Use a static number of instances in the managed instance group to avoid scaling complexities.
Show answer and explanation
Correct answers: A, D
Explanation
To handle intermittent traffic spikes efficiently, you should configure autoscaling policies for the managed instance group. Autoscaling based on CPU utilization allows the system to dynamically adjust to real-time demand, while setting a minimum number of instances ensures adequate capacity during predictable peak hours. This approach optimizes costs and ensures reliability without requiring constant manual intervention.
- A. Correct.
Correct: Configuring autoscaling based on CPU utilization ensures that the managed instance group can dynamically adjust the number of instances based on real-time demand, which is critical for handling intermittent traffic spikes.
- B. Incorrect.
Incorrect: While health checks are important for sending traffic only to healthy instances, they do not directly address handling traffic spikes or workload increases.
- C. Incorrect.
Incorrect: Manually scaling the managed instance group is not an efficient or scalable solution, especially for intermittent traffic spikes, as it requires constant monitoring and manual intervention.
- D. Correct.
Correct: Setting a minimum number of instances to handle peak-hour traffic ensures the system can handle predictable demand while allowing autoscaling to address unexpected spikes. This strikes a balance between cost and performance.
- E. Incorrect.
Incorrect: Using a static number of instances does not optimize costs or handle dynamic traffic patterns effectively. It can lead to over-provisioning during low traffic and under-provisioning during high traffic.