Bird
0
0

You wrote this snippet to create an Auto Scaling group but it fails:

medium📝 Debug Q14 of 15
AWS - Auto Scaling
You wrote this snippet to create an Auto Scaling group but it fails:
aws autoscaling create-auto-scaling-group --auto-scaling-group-name my-asg --min-size 2 --max-size 1 --desired-capacity 1 --launch-configuration-name my-launch-config --vpc-zone-identifier subnet-12345

What is the error?
AVPC subnet ID is invalid
BDesiredCapacity cannot be less than MinSize
CLaunch configuration name is missing
DMinSize cannot be greater than MaxSize
Step-by-Step Solution
Solution:
  1. Step 1: Check size parameters

    MinSize is set to 2, MaxSize is set to 1, which is invalid because MinSize must be less than or equal to MaxSize.
  2. Step 2: Validate other parameters

    DesiredCapacity is 1, which is allowed if between MinSize and MaxSize, but here MinSize > MaxSize causes failure.
  3. Final Answer:

    MinSize cannot be greater than MaxSize -> Option D
  4. Quick Check:

    MinSize ≤ MaxSize rule violated [OK]
Quick Trick: MinSize must be ≤ MaxSize to create group [OK]
Common Mistakes:
  • Setting MinSize higher than MaxSize
  • Ignoring error messages about sizes
  • Assuming DesiredCapacity fixes size conflicts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes