Bird
0
0

You want to deploy multiple ECS services behind a single ALB with path-based routing. How should you configure the ALB listener rules?

hard📝 Application Q8 of 15
AWS - ECS and Fargate
You want to deploy multiple ECS services behind a single ALB with path-based routing. How should you configure the ALB listener rules?
ACreate listener rules with different path patterns pointing to separate target groups for each service.
BUse one target group for all services and route all paths to it.
CCreate multiple ALBs, one per ECS service.
DConfigure ECS services to share the same task definition.
Step-by-Step Solution
Solution:
  1. Step 1: Understand path-based routing with ALB

    ALB listener rules can route traffic based on URL path patterns to different target groups.
  2. Step 2: Apply to multiple ECS services

    Each ECS service should have its own target group. Listener rules route requests with specific paths to corresponding target groups.
  3. Final Answer:

    Create listener rules with different path patterns pointing to separate target groups for each service. -> Option A
  4. Quick Check:

    Path-based routing uses listener rules with target groups [OK]
Quick Trick: Use path patterns to route to different target groups [OK]
Common Mistakes:
  • Using one target group for all services
  • Creating multiple ALBs unnecessarily
  • Sharing task definitions across services

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes