MLS-C01 Question 279
Select 4You are deploying an Auto Scaling group to handle unpredictable traffic patterns for a web application hosted on Amazon EC2 instances. The application requires a consistent minimum level of availability, but should also be cost-efficient by scaling down during low traffic times. Additionally, the application must handle sudden spikes in traffic without manual intervention. Which configuration steps should you take to meet these requirements?
- A
Define a minimum number of instances in the Auto Scaling group.
- B
Set up a static desired capacity that does not change over time.
- C
Create scaling policies based on Amazon CloudWatch metrics, such as CPU utilization.
- D
Use a target tracking scaling policy to automatically adjust capacity based on a predefined metric target.
- E
Configure a scaling cooldown period to avoid over-scaling during sudden traffic changes.
Show answer and explanation
Correct answers: A, C, D, E
Explanation
To meet the requirements of maintaining minimum availability, cost-efficiency, and responsiveness to unpredictable traffic patterns, an Auto Scaling group should define a minimum number of instances, set up dynamic scaling policies based on CloudWatch metrics, use target tracking scaling policies for automation, and configure cooldown periods to prevent over-scaling. Setting a static desired capacity would prevent the system from dynamically scaling to meet traffic demands.
- A. Correct.
Defining a minimum number of instances ensures the application maintains a consistent baseline level of availability, even during low traffic periods.
- B. Incorrect.
Setting a static desired capacity would not allow the Auto Scaling group to dynamically adjust the number of instances, which goes against the requirement of handling unpredictable traffic patterns.
- C. Correct.
Creating scaling policies based on CloudWatch metrics allows the Auto Scaling group to scale in response to real-time performance data, such as CPU utilization, helping handle sudden spikes in traffic.
- D. Correct.
Using a target tracking scaling policy helps the Auto Scaling group scale dynamically to meet a predefined target metric, ensuring cost-efficiency and responsiveness to traffic changes.
- E. Correct.
Configuring a scaling cooldown period prevents the Auto Scaling group from launching or terminating instances too quickly in response to fluctuating metrics, avoiding unnecessary costs and instability.