Bird
0
0

Which of the following is the correct JSON snippet to attach an Auto Scaling group to an ELB named "my-elb"?

easy📝 Syntax Q3 of 15
AWS - Auto Scaling
Which of the following is the correct JSON snippet to attach an Auto Scaling group to an ELB named "my-elb"?
A{"AutoScalingGroupName": "my-asg", "TargetGroupARNs": ["my-elb"]}
B{"AutoScalingGroupName": "my-asg", "LoadBalancerNames": ["my-elb"]}
C{"AutoScalingGroupName": "my-asg", "ELBName": "my-elb"}
D{"AutoScalingGroupName": "my-asg", "LoadBalancerName": "my-elb"}
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct property for ELB attachment

    The property to attach ELB is "LoadBalancerNames" as a list.
  2. Step 2: Verify JSON syntax and property names

    {"AutoScalingGroupName": "my-asg", "LoadBalancerNames": ["my-elb"]} correctly uses "LoadBalancerNames" with a list containing "my-elb".
  3. Final Answer:

    Correct JSON uses LoadBalancerNames list -> Option B
  4. Quick Check:

    LoadBalancerNames list = B [OK]
Quick Trick: Use LoadBalancerNames list to attach ELB [OK]
Common Mistakes:
  • Using singular LoadBalancerName instead of plural
  • Confusing TargetGroupARNs with ELB names
  • Incorrect JSON syntax or property names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes