Bird
0
0

Given this AWS Auto Scaling group configuration snippet:

medium📝 service behavior Q13 of 15
AWS - Auto Scaling
Given this AWS Auto Scaling group configuration snippet:
{
  "AutoScalingGroupName": "web-asg",
  "TargetGroupARNs": ["arn:aws:elasticloadbalancing:region:123456789012:targetgroup/web-tg/abc123"],
  "MinSize": 2,
  "MaxSize": 4,
  "DesiredCapacity": 3
}

What happens when one instance fails health checks in the ELB target group?
AAuto Scaling terminates the unhealthy instance and launches a new one to maintain desired capacity
BELB stops sending traffic but Auto Scaling does not replace the instance
CAuto Scaling increases MaxSize to 5 automatically
DNothing happens until manual intervention
Step-by-Step Solution
Solution:
  1. Step 1: Understand health check integration

    When an instance fails ELB health checks, Auto Scaling detects it as unhealthy.
  2. Step 2: Auto Scaling response

    Auto Scaling terminates the unhealthy instance and launches a new one to keep the desired capacity at 3.
  3. Final Answer:

    Auto Scaling terminates the unhealthy instance and launches a new one to maintain desired capacity -> Option A
  4. Quick Check:

    Unhealthy instance triggers replacement by Auto Scaling [OK]
Quick Trick: Auto Scaling replaces unhealthy instances to keep desired capacity [OK]
Common Mistakes:
  • Thinking ELB alone replaces instances
  • Assuming MaxSize changes automatically
  • Believing manual steps are needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes