Bird
0
0

Given this AWS setup code snippet, what does the load balancer do?

medium📝 service behavior Q13 of 15
AWS - Elastic Load Balancing
Given this AWS setup code snippet, what does the load balancer do?
LoadBalancer -> TargetGroup -> EC2 Instances
Listener listens on port 80 and forwards to TargetGroup
AIt forwards traffic on port 80 to all EC2 instances evenly
BIt blocks traffic on port 80
CIt stores data from EC2 instances
DIt only forwards traffic to one EC2 instance
Step-by-Step Solution
Solution:
  1. Step 1: Understand listener role

    The listener listens on port 80 and forwards requests to the target group.
  2. Step 2: Understand target group role

    The target group contains multiple EC2 instances and the load balancer distributes traffic evenly among them.
  3. Final Answer:

    It forwards traffic on port 80 to all EC2 instances evenly -> Option A
  4. Quick Check:

    Listener + TargetGroup = distribute traffic [OK]
Quick Trick: Listener forwards traffic evenly to all targets [OK]
Common Mistakes:
  • Thinking it blocks traffic
  • Assuming it stores data
  • Believing it sends traffic to only one instance

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes