Bird
0
0

An ECS service with ALB integration is not routing traffic correctly. You find the security group attached to the ALB does not allow inbound traffic on port 80. What is the fix?

medium📝 Debug Q7 of 15
AWS - ECS and Fargate
An ECS service with ALB integration is not routing traffic correctly. You find the security group attached to the ALB does not allow inbound traffic on port 80. What is the fix?
AAdd an outbound rule to the ECS task security group allowing port 80.
BChange the ALB listener port to 443 without updating security groups.
CAdd an inbound rule to the ALB security group allowing TCP port 80 from client IPs.
DRemove all security groups from the ALB.
Step-by-Step Solution
Solution:
  1. Step 1: Identify security group rules needed for ALB

    The ALB security group must allow inbound traffic on the listener port (80) from clients.
  2. Step 2: Evaluate options

    Adding inbound rule on ALB SG for port 80 fixes the issue. Outbound rules on ECS tasks do not affect ALB inbound traffic. Changing listener port without SG update breaks traffic. Removing all SGs is insecure and impractical.
  3. Final Answer:

    Add an inbound rule to the ALB security group allowing TCP port 80 from client IPs. -> Option C
  4. Quick Check:

    ALB SG inbound port 80 must be open [OK]
Quick Trick: Open ALB security group inbound port for client traffic [OK]
Common Mistakes:
  • Modifying ECS task security group instead of ALB
  • Changing listener port without updating SG
  • Removing security groups entirely

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes