Consider an AWS Auto Scaling group with a target tracking scaling policy set to maintain an average CPU utilization of 50%. What happens when the average CPU utilization rises to 70%?
Think about how target tracking tries to keep a metric close to a set value.
Target tracking scaling policies automatically adjust the number of instances to keep the specified metric (CPU utilization) near the target value (50%). When CPU utilization rises above 50%, the policy adds instances to reduce the load per instance.
You want to scale your application based on CPU usage spikes. You want to add more instances quickly when CPU usage exceeds 80%, and remove instances slowly when CPU usage drops below 30%. Which scaling policy fits best?
Consider which policy allows different responses based on how much the metric changes.
Step scaling policies allow you to define multiple thresholds with different scaling actions. This lets you add many instances quickly when CPU usage is high and remove instances more slowly when usage is low.
Which IAM permission is required to allow an Auto Scaling group to execute scaling policies?
Think about the permission that lets Auto Scaling perform scaling actions.
The autoscaling:ExecutePolicy permission allows the Auto Scaling group to run scaling policies that add or remove instances.
What is the effect of setting a cooldown period in a simple scaling policy?
Think about why you might want to wait before scaling again.
The cooldown period prevents the Auto Scaling group from launching or terminating additional instances until the previous scaling activity is complete and the system stabilizes.
You manage an Auto Scaling group for a web app with variable traffic. You want to minimize cost while maintaining performance. Which combination of scaling policies is best?
Consider combining policies to handle steady and sudden changes efficiently.
Target tracking maintains steady performance by adjusting capacity automatically, while step scaling handles sudden spikes quickly. This combination balances cost and responsiveness.