Google Associate Cloud Engineer Question 227
Select 2Google Cloud PlatformYou are tasked with setting up an autoscaling instance group for your company's web application running on Google Cloud Platform. Your application experiences high traffic during business hours and minimal traffic during the night. Which two scaling parameters should you configure to ensure optimal performance and cost-efficiency?
- A
Set a minimum number of instances to handle the lowest expected traffic.
- B
Configure a schedule-based scaling policy to increase instances during business hours.
- C
Enable predictive autoscaling to automatically adjust based on traffic patterns.
- D
Set a maximum number of instances to avoid exceeding budget constraints.
Show answer and explanation
Correct answers: B, D
Explanation
For applications with predictable traffic patterns, such as high traffic during business hours and low traffic at night, configuring a schedule-based scaling policy ensures that resources are available when needed. Additionally, setting a maximum number of instances helps manage costs by preventing the autoscaler from scaling beyond budget limits.
- A. Incorrect.
Setting a minimum number of instances ensures baseline capacity but doesn't address cost-efficiency during low traffic periods.
- B. Correct.
Configuring a schedule-based scaling policy allows the scaling to be predictable and aligns with known traffic patterns, optimizing performance during peak times.
- C. Incorrect.
Predictive autoscaling is more suited for applications with unpredictable traffic patterns rather than known high and low periods.
- D. Correct.
Setting a maximum number of instances prevents unexpected costs by capping the number of instances that can be scaled up.