0
0
AWScloud~20 mins

Scheduled scaling in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Scheduled Scaling Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Scheduled Scaling Behavior

You configure an AWS Auto Scaling group with a scheduled scaling action to increase the desired capacity from 2 to 5 instances at 8:00 AM daily. What happens if the current desired capacity is already 6 instances at 8:00 AM?

AThe desired capacity is reduced to 5 instances at 8:00 AM as per the scheduled action.
BThe desired capacity remains at 6 instances; the scheduled action does not reduce capacity.
CThe scheduled action fails and triggers an error notification.
DThe Auto Scaling group terminates one instance immediately to match the scheduled capacity.
Attempts:
2 left
💡 Hint

Scheduled scaling actions set the desired capacity to the specified value and can scale in or out.

Configuration
intermediate
2:00remaining
Correct Scheduled Scaling Configuration

Which of the following AWS CLI commands correctly creates a scheduled scaling action to increase the desired capacity of an Auto Scaling group named webserver-group to 10 instances at 6:00 PM UTC daily?

Aaws autoscaling put-scheduled-update-group-action --auto-scaling-group-name webserver-group --scheduled-action-name scale-up-evening --start-time 18:00 --desired-capacity 10
Baws autoscaling put-scheduled-update-group-action --auto-scaling-group-name webserver-group --scheduled-action-name scale-up-evening --start-time 2024-06-01T18:00:00Z --desired-capacity 10 --recurrence '0 18 * * *'
Caws autoscaling put-scheduled-update-group-action --auto-scaling-group-name webserver-group --scheduled-action-name scale-up-evening --start-time 2024-06-01T18:00:00Z --desired-capacity 10
Daws autoscaling put-scheduled-update-group-action --auto-scaling-group-name webserver-group --scheduled-action-name scale-up-evening --recurrence '0 18 * * *' --desired-capacity 10
Attempts:
2 left
💡 Hint

Scheduled scaling requires either a start time or a recurrence expression for repeated actions.

Architecture
advanced
2:00remaining
Designing Scheduled Scaling for Cost Optimization

You manage an application with predictable traffic spikes from 9 AM to 5 PM on weekdays. You want to optimize costs by scaling out before 9 AM and scaling in after 5 PM. Which architecture best supports this using AWS scheduled scaling?

AConfigure scheduled scaling to increase capacity at 9 AM and decrease capacity at 5 PM every day including weekends.
BUse a single scheduled scaling action to set desired capacity to high at 9 AM and rely on manual scaling to reduce capacity after 5 PM.
CCreate two scheduled scaling actions: one to increase desired capacity at 8:45 AM and another to decrease desired capacity at 5:15 PM on weekdays.
DUse dynamic scaling policies triggered by CPU utilization thresholds instead of scheduled scaling.
Attempts:
2 left
💡 Hint

Think about timing and days when traffic spikes occur.

security
advanced
2:00remaining
Security Best Practices for Scheduled Scaling

Which IAM policy statement least restricts permissions while allowing a user to create and manage scheduled scaling actions for a specific Auto Scaling group named app-group?

A{"Effect": "Allow", "Action": ["autoscaling:PutScheduledUpdateGroupAction", "autoscaling:DeleteScheduledAction"], "Resource": "arn:aws:autoscaling:*:*:autoScalingGroup:*:autoScalingGroupName/app-group"}
B{"Effect": "Allow", "Action": "autoscaling:*", "Resource": "*"}
C{"Effect": "Allow", "Action": ["autoscaling:PutScheduledUpdateGroupAction"], "Resource": "*"}
D{"Effect": "Allow", "Action": ["autoscaling:PutScheduledUpdateGroupAction", "autoscaling:DeleteScheduledAction"], "Resource": "*"}
Attempts:
2 left
💡 Hint

Consider least privilege principle and resource scoping.

Best Practice
expert
2:00remaining
Troubleshooting Scheduled Scaling Not Triggering

You set a scheduled scaling action to increase desired capacity at 7:00 AM daily, but the Auto Scaling group does not scale up as expected. Which is the most likely cause?

AThe Auto Scaling group has a minimum size higher than the scheduled desired capacity, preventing scaling.
BThe scheduled action's start time is in the past and no recurrence is set, so it only ran once and will not run again.
CThe scheduled action is missing the desired capacity parameter, so it does nothing.
DThe Auto Scaling group is in a suspended state and ignores all scaling actions.
Attempts:
2 left
💡 Hint

Check if the scheduled action is configured to repeat or only run once.