0
0
AWScloud~20 mins

Scaling policies (target tracking, step, simple) in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Scaling Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does a target tracking scaling policy behave?

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%?

AThe policy increases the number of instances to bring CPU utilization back to 50%.
BThe policy decreases the number of instances to reduce CPU utilization further.
CThe policy does nothing because CPU utilization is above the target.
DThe policy terminates all instances to reset the group.
Attempts:
2 left
💡 Hint

Think about how target tracking tries to keep a metric close to a set value.

Architecture
intermediate
2:00remaining
Choosing between step scaling and simple scaling

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?

AUse a target tracking policy set to 55% CPU utilization.
BUse a simple scaling policy with the same cooldown for scaling out and in.
CUse manual scaling to add and remove instances as needed.
DUse a step scaling policy with different step adjustments for scaling out and scaling in.
Attempts:
2 left
💡 Hint

Consider which policy allows different responses based on how much the metric changes.

security
advanced
2:00remaining
Security considerations for scaling policies

Which IAM permission is required to allow an Auto Scaling group to execute scaling policies?

Acloudwatch:PutMetricAlarm
Bec2:ModifyInstanceAttribute
Cautoscaling:ExecutePolicy
Diam:PassRole
Attempts:
2 left
💡 Hint

Think about the permission that lets Auto Scaling perform scaling actions.

🧠 Conceptual
advanced
2:00remaining
Cooldown period effect on simple scaling

What is the effect of setting a cooldown period in a simple scaling policy?

AIt prevents additional scaling actions until the cooldown period ends, allowing the system to stabilize.
BIt immediately triggers multiple scaling actions to quickly adjust capacity.
CIt disables scaling actions during peak hours.
DIt resets the scaling policy to default settings after each action.
Attempts:
2 left
💡 Hint

Think about why you might want to wait before scaling again.

Best Practice
expert
2:00remaining
Optimizing cost and performance with scaling policies

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?

AUse step scaling only with large step adjustments for all traffic changes.
BUse target tracking for average CPU utilization and step scaling for sudden traffic spikes.
CUse manual scaling to control instance count precisely.
DUse only simple scaling with a short cooldown period.
Attempts:
2 left
💡 Hint

Consider combining policies to handle steady and sudden changes efficiently.