Google Professional Cloud Network Engineer Question 436
Single answerGoogle Cloud PlatformYour organization is running an e-commerce application on Google Cloud Platform, using a regional managed instance group to handle web traffic. During seasonal sales events, traffic to the application increases significantly, often peaking unpredictably. How can you ensure that your application can handle these traffic spikes efficiently while minimizing costs?
- A
Configure autoscaling for the managed instance group based on CPU utilization and set a maximum number of instances.
- B
Manually scale the instance group by increasing the number of instances before the sales event starts.
- C
Enable preemptible VM instances in the managed instance group to reduce costs during high traffic periods.
- D
Configure an autoscaler to scale based on a schedule tied to expected sales event times.
Show answer and explanation
Correct answer: A
Explanation
Autoscaling based on CPU utilization is the most suitable solution in this scenario as it dynamically adjusts resources to match traffic demand, ensuring the application can handle traffic spikes while minimizing costs during low traffic periods. Other options either require manual intervention or are not designed to handle unpredictable traffic patterns effectively.
- A. Correct.
This is the correct approach because autoscaling based on CPU utilization allows the instance group to dynamically scale up during traffic spikes and scale down during low traffic periods, optimizing performance and cost.
- B. Incorrect.
Manually scaling the instance group can handle traffic spikes but requires preemptive action and constant monitoring, which is less efficient and prone to human error.
- C. Incorrect.
Using preemptible VM instances can reduce costs but does not directly address the need for scaling to accommodate unpredictable traffic spikes, as these instances can be terminated unexpectedly.
- D. Incorrect.
Scaling based on a schedule can be useful for predictable workloads, but it is not suitable for handling unpredictable traffic spikes like those during sales events.