Bird
0
0

In an ECS service using ALB, what happens if the ALB listener rule does not include the correct target group ARN?

medium📝 service behavior Q5 of 15
AWS - ECS and Fargate
In an ECS service using ALB, what happens if the ALB listener rule does not include the correct target group ARN?
AThe ALB will not forward traffic to ECS tasks, causing request failures.
BThe ALB will forward traffic to all target groups automatically.
CThe ECS service will register tasks to a default target group.
DThe ALB will create a new target group automatically.
Step-by-Step Solution
Solution:
  1. Step 1: Understand ALB listener rules and target groups

    Listener rules define how ALB forwards traffic to specific target groups identified by ARNs.
  2. Step 2: Consequence of missing or incorrect target group ARN

    If the listener rule lacks the correct target group ARN, ALB cannot forward traffic to ECS tasks, causing failures.
  3. Final Answer:

    The ALB will not forward traffic to ECS tasks, causing request failures. -> Option A
  4. Quick Check:

    Missing target group ARN = No traffic forwarding [OK]
Quick Trick: Listener rules must reference correct target group ARN [OK]
Common Mistakes:
  • Assuming ALB forwards to all target groups by default
  • Expecting ECS to auto-assign target groups
  • Believing ALB creates target groups automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes