Configure Autoscaling for Peak Traffic | AWS Certified DevOps Engineer Exam Preparation

Best Practices for Autoscaling in AWS | Exam DOP-C01

Prev Question Next Question

Question

Your company is using an Autoscaling Group to scale out and scale in instances.

There is an expectation of a peak in traffic every Monday at 8 am.

The traffic is then expected to come down before the weekend on Friday at 5 pm.

How should you configure Autoscaling in this?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - C.

The AWS Documentation mentions the following for Scheduled scaling.

Scaling based on a schedule allows you to scale your application in response to predictable load changes.

For example, every week the traffic to your web application starts to increase on Wednesday, remains high on Thursday, and starts to decrease on Friday.

You can plan your scaling activities based on the predictable traffic patterns of your web application.

For more information on scheduled scaling for Autoscaling, please visit the below URL.

http://docs.aws.amazon.com/autoscaling/latest/userguide/schedule_time.html

The correct answer is C. Create a scheduled policy to scale out on Monday and scale in on Friday.

Explanation: An Autoscaling group is a group of EC2 instances that adjust the number of instances in response to changes in demand. In this scenario, we need to configure the Autoscaling group to scale out on Monday and scale in on Friday.

Option A - Create dynamic scaling policies to scale up on Monday and scale down on Friday: This option is incorrect because dynamic scaling policies scale based on metric thresholds. They can be useful for scaling in response to load, but in this scenario, we know exactly when the traffic will peak and when it will drop, so we can use scheduled scaling instead of dynamic scaling.

Option B - Create a scheduled policy to scale up on Friday and scale down on Monday: This option is incorrect because it is the opposite of what we need. We need to scale out on Monday when the traffic peaks and scale in on Friday when the traffic drops.

Option C - Create a scheduled policy to scale out on Monday and scale in on Friday: This is the correct option. We can create a scheduled scaling policy to increase the desired capacity of the Autoscaling group on Monday at 8 am and decrease it on Friday at 5 pm. This will ensure that we have enough instances to handle the peak traffic on Monday and that we don't pay for unnecessary instances over the weekend.

Option D - Manually add instances to the Autoscaling Group on Monday and remove them on Friday: This option is not recommended because it requires manual intervention and is prone to errors. Autoscaling groups are designed to automatically adjust the number of instances based on demand, so it is better to use scheduled scaling to automate the process.