DOP-C02 Question 190
Select 2Your company runs a critical application on AWS with an Auto Scaling group that scales based on CPU utilization. Recently, during periods of high traffic, you noticed a delay in scaling out because new instances take several minutes to initialize and become ready to serve traffic. To address this issue, you are tasked with improving the Auto Scaling group’s responsiveness to traffic spikes. How can you achieve this most effectively?
- A
Enable EC2 Auto Scaling warm pools to pre-warm instances before they are added to the group.
- B
Configure an Auto Scaling lifecycle hook to perform custom instance configuration during initialization.
- C
Reduce the cooldown period for the Auto Scaling group to allow faster scaling actions.
- D
Use EC2 instance types with faster initialization times.
- E
Create predictive scaling policies for the Auto Scaling group using historical traffic patterns.
Show answer and explanation
Correct answers: A, E
Explanation
To improve responsiveness during traffic spikes, enabling EC2 Auto Scaling warm pools ensures instances are pre-warmed and ready to handle requests faster. Additionally, predictive scaling can help anticipate traffic spikes and scale proactively, reducing the dependency on reactive scaling policies. Together, these approaches effectively address delays caused by instance initialization.
- A. Correct.
Enabling EC2 Auto Scaling warm pools allows instances to be pre-warmed and ready to handle traffic quickly, reducing the initialization delay during scaling events.
- B. Incorrect.
While lifecycle hooks can be used for custom configuration, they do not directly address the delay in instance initialization. It may actually increase the time before the instance is ready to serve traffic.
- C. Incorrect.
Reducing the cooldown period might lead to more frequent scaling actions but does not address the root cause of instance initialization delays.
- D. Incorrect.
Choosing an instance type with faster initialization times might help slightly, but it is not a comprehensive solution to the problem.
- E. Correct.
Predictive scaling policies use historical patterns to forecast demand and scale proactively, which can reduce delays during traffic spikes.