Bird
0
0

You want to design an ALB setup that routes requests to different microservices based on both host header and URL path. Which ALB feature combination should you use?

hard📝 Application Q8 of 15
AWS - Elastic Load Balancing
You want to design an ALB setup that routes requests to different microservices based on both host header and URL path. Which ALB feature combination should you use?
ACreate separate ALBs for each microservice
BUse listener rules with host-based and path-based routing conditions
CUse Network Load Balancer with TCP routing
DUse a single target group for all microservices
Step-by-Step Solution
Solution:
  1. Step 1: Understand ALB routing capabilities

    ALB supports complex listener rules combining host and path conditions.
  2. Step 2: Apply combined routing rules

    Use listener rules that check host header and URL path to route to correct microservice target groups.
  3. Final Answer:

    Use listener rules with host-based and path-based routing conditions -> Option B
  4. Quick Check:

    Combined host and path routing = listener rules [OK]
Quick Trick: Combine host and path conditions in ALB listener rules [OK]
Common Mistakes:
MISTAKES
  • Using multiple ALBs unnecessarily
  • Confusing ALB with Network Load Balancer

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes