You want to schedule your Auto Scaling group to scale down to 2 instances every day at 11 PM UTC and scale up to 6 instances every weekday at 7 AM UTC. Which configuration correctly achieves this?
hard📝 Application Q8 of 15
AWS - Auto Scaling
You want to schedule your Auto Scaling group to scale down to 2 instances every day at 11 PM UTC and scale up to 6 instances every weekday at 7 AM UTC. Which configuration correctly achieves this?
ACreate one scheduled action with Recurrence 'cron(0 23,7 * * ? *)' setting DesiredCapacity to 4
BCreate two scheduled actions: one with Recurrence 'cron(0 23 * * ? *)' setting DesiredCapacity to 2, and another with Recurrence 'cron(0 7 ? * MON-FRI *)' setting DesiredCapacity to 6
CCreate two scheduled actions: one with StartTime at 11 PM UTC setting DesiredCapacity to 2, and another with StartTime at 7 AM UTC setting DesiredCapacity to 6, both without Recurrence
DUse dynamic scaling policies with target tracking instead of scheduled scaling
Step-by-Step Solution
Solution:
Step 1: Understand the requirement
Scaling down daily at 11 PM UTC and scaling up weekdays at 7 AM UTC requires two scheduled actions with appropriate recurrence.
Step 2: Analyze cron expressions
'cron(0 23 * * ? *)' triggers daily at 11 PM UTC; 'cron(0 7 ? * MON-FRI *)' triggers weekdays at 7 AM UTC.
Step 3: Confirm DesiredCapacity values
Set DesiredCapacity to 2 for scale down and 6 for scale up.
Final Answer:
Create two scheduled actions: one with Recurrence 'cron(0 23 * * ? *)' setting DesiredCapacity to 2, and another with Recurrence 'cron(0 7 ? * MON-FRI *)' setting DesiredCapacity to 6 -> Option B
Quick Check:
Separate scheduled actions with correct recurrence for each scale event [OK]
Quick Trick:Use separate scheduled actions with correct cron recurrences [OK]
Common Mistakes:
MISTAKES
Combining times in one cron expression incorrectly
Using StartTime without Recurrence for recurring schedules
Replacing scheduled scaling with dynamic scaling policies
Master "Auto Scaling" in AWS
9 interactive learning modes - each teaches the same concept differently