Bird
0
0

Which setup correctly uses scheduled scaling to achieve this?

hard📝 Application Q15 of 15
AWS - Auto Scaling
You want to reduce your AWS Auto Scaling group capacity to 2 instances every night at 11 PM UTC and increase it to 10 instances every weekday morning at 7 AM UTC. Which setup correctly uses scheduled scaling to achieve this?
ACreate one scheduled action with cron(0 23,7 * * ? *) setting DesiredCapacity=2 and DesiredCapacity=10
BCreate two scheduled actions: one with cron(0 23 * * ? *) setting DesiredCapacity=2, another with cron(0 7 ? * MON-FRI *) setting DesiredCapacity=10
CCreate two scheduled actions: one with rate(1 day) setting DesiredCapacity=2, another with rate(1 hour) setting DesiredCapacity=10
DCreate one scheduled action with cron(0 7 * * ? *) setting DesiredCapacity=10 only
Step-by-Step Solution
Solution:
  1. Step 1: Understand the scheduling requirements

    Capacity should be 2 at 11 PM daily and 10 at 7 AM on weekdays only.
  2. Step 2: Match cron expressions to requirements

    cron(0 23 * * ? *) runs daily at 11 PM; cron(0 7 ? * MON-FRI *) runs at 7 AM Monday to Friday. Two separate scheduled actions are needed with correct DesiredCapacity values.
  3. Final Answer:

    Create two scheduled actions: one with cron(0 23 * * ? *) setting DesiredCapacity=2, another with cron(0 7 ? * MON-FRI *) setting DesiredCapacity=10 -> Option B
  4. Quick Check:

    Separate cron for each time and capacity [OK]
Quick Trick: Use separate scheduled actions with correct cron and capacity [OK]
Common Mistakes:
  • Trying to set two capacities in one scheduled action
  • Using rate expressions instead of cron for weekdays
  • Missing weekday restriction for morning scale-up

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes