SAP-C02 Question 277
Select 3Your organization runs a scalable web application on Amazon EC2 instances behind an Application Load Balancer (ALB). You have configured an Auto Scaling Group (ASG) to handle fluctuating traffic. Recently, during a traffic surge, the application experienced delays in scaling out, causing degraded performance. You are tasked with improving the Auto Scaling configuration to minimize delays during future traffic spikes. Which configuration changes should you implement?
- A
Configure a predictive scaling policy to anticipate traffic patterns and proactively adjust capacity.
- B
Increase the cooldown period of the Auto Scaling Group to prevent excessive scaling operations.
- C
Use a target tracking scaling policy tied to the ALB request count per target metric.
- D
Enable instance warm-up in the Auto Scaling Group settings to ensure new instances are ready before contributing to metrics.
- E
Switch from an Application Load Balancer to a Network Load Balancer for faster scaling decisions.
Show answer and explanation
Correct answers: A, C, D
Explanation
To minimize delays during scaling operations, it's essential to proactively scale out using predictive scaling policies and real-time metrics like ALB request count per target. Additionally, enabling instance warm-up ensures new instances are fully initialized before affecting scaling decisions. These combined strategies help reduce delays and improve application performance during traffic surges.
- A. Correct.
Configuring a predictive scaling policy helps anticipate traffic patterns based on historical data, allowing the Auto Scaling Group to scale out proactively before a traffic surge occurs. This reduces delays during scaling.
- B. Incorrect.
Increasing the cooldown period delays subsequent scaling actions after a previous scaling event. While this can help prevent excessive scaling, it would not address the issue of delays during scaling out.
- C. Correct.
Using a target tracking scaling policy tied to the ALB request count per target metric ensures scaling decisions are based on real-time load, helping the application maintain performance during traffic surges.
- D. Correct.
Enabling instance warm-up ensures that Auto Scaling waits for new instances to be fully initialized and ready to handle load before including them in metrics. This avoids premature scaling adjustments and enhances the effectiveness of scaling actions.
- E. Incorrect.
Switching to a Network Load Balancer is not directly related to improving scaling decisions. ALBs are better suited for HTTP/HTTPS traffic and offer metrics like request count per target, which are crucial for fine-tuned scaling.