DOP-C02 Question 327
Select 3Your company is using AWS to host a web application that serves millions of users globally. The application uses an Auto Scaling group to dynamically scale based on demand. Recently, users have experienced significant latency during sudden traffic spikes due to the time required to launch new instances. As a DevOps Engineer, how can you optimize the Auto Scaling group to reduce latency during high traffic periods?
- A
Enable a warm pool for the Auto Scaling group to pre-launch instances in a stopped state.
- B
Reduce the cooldown period of the Auto Scaling group to trigger scaling events more frequently.
- C
Use predictive scaling policies to forecast traffic patterns and pre-scale the group accordingly.
- D
Increase the size of the Auto Scaling group’s instance type to handle more traffic per instance.
- E
Configure step scaling policies to add multiple instances at once during a scaling event.
Show answer and explanation
Correct answers: A, C, E
Explanation
To reduce latency during traffic spikes, you can optimize your Auto Scaling group by enabling a warm pool, which pre-initializes instances to reduce their startup time. Predictive scaling can help forecast demand and scale resources proactively, mitigating delays during sudden traffic spikes. Additionally, step scaling policies ensure that the system adds multiple instances at once, quickly addressing increased demand. These approaches focus on improving the responsiveness and readiness of your system during scaling events.
- A. Correct.
This is correct. Enabling a warm pool allows instances to be pre-initialized in a stopped state, significantly reducing the time required to bring instances into service during scaling events.
- B. Incorrect.
This is incorrect. While reducing the cooldown period might slightly improve responsiveness, it does not directly address the latency caused by the time it takes to launch new instances.
- C. Correct.
This is correct. Predictive scaling uses historical data to forecast demand and scale resources proactively, reducing the chances of latency during sudden traffic spikes.
- D. Incorrect.
This is incorrect. Increasing the instance size does not directly address the issue of latency caused by launching new instances. It might only shift the bottleneck rather than solving the underlying problem.
- E. Correct.
This is correct. Step scaling policies allow you to add multiple instances during a scaling action, speeding up the process of accommodating sudden spikes in traffic.