SAP-C02 Question 281
Select 2You are designing an Auto Scaling group for a web application that experiences highly variable traffic patterns. The application must scale out quickly during sudden traffic spikes but should scale in gradually to avoid unnecessary costs. Which combination of auto scaling policies and events should you implement to meet these requirements?
- A
Configure a Target Tracking Scaling Policy based on CPU utilization to scale out and scale in.
- B
Use a Step Scaling Policy with a CloudWatch Alarm to trigger scaling out quickly during traffic spikes.
- C
Implement a Scheduled Scaling Policy to scale in during off-peak hours.
- D
Set a Cooldown Period for the Auto Scaling group to delay scaling in operations.
- E
Enable Predictive Scaling to forecast traffic patterns and adjust capacity proactively.
Show answer and explanation
Correct answers: B, D
Explanation
To meet the requirement for quick scaling out during sudden traffic spikes and gradual scaling in to control costs, a combination of Step Scaling Policies and a Cooldown Period is ideal. The Step Scaling Policy ensures rapid response to traffic spikes, while the Cooldown Period prevents excessive scaling in operations, allowing the system to stabilize before further adjustments.
- A. Incorrect.
Target Tracking Scaling Policies are effective for maintaining a specific target metric, but they may not scale out as quickly as a Step Scaling Policy during sudden traffic spikes. This option does not fully address the requirement for quick scaling out and gradual scaling in.
- B. Correct.
Step Scaling Policies are designed to handle sudden changes by triggering specific scaling actions based on CloudWatch Alarms. This option ensures the application can scale out quickly during traffic spikes.
- C. Incorrect.
Scheduled Scaling Policies are useful for predictable traffic patterns but do not address the requirement for dynamic scaling during variable traffic patterns. This option is not relevant to the scenario.
- D. Correct.
Setting a Cooldown Period ensures that the application scales in gradually by preventing excessive scaling in operations. This aligns with the requirement to avoid unnecessary costs.
- E. Incorrect.
Predictive Scaling is excellent for forecasting traffic patterns, but it is not mentioned as a requirement in this scenario. Additionally, it does not directly address the need for quick scale-out and gradual scale-in.