Bird
0
0

Given an ALB with two target groups: tg1 and tg2. The ALB uses a rule to route requests with path /api/* to tg1 and all other requests to tg2. What happens when a user requests /api/users?

medium📝 Predict Output Q13 of 15
AWS - Elastic Load Balancing
Given an ALB with two target groups: tg1 and tg2. The ALB uses a rule to route requests with path /api/* to tg1 and all other requests to tg2. What happens when a user requests /api/users?
AThe request is routed to target group <code>tg1</code>
BThe request is routed to target group <code>tg2</code>
CThe request is rejected with an error
DThe request is routed to both <code>tg1</code> and <code>tg2</code> simultaneously
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the ALB routing rule

    The rule states requests with path starting /api/ go to tg1.
  2. Step 2: Match the request path

    The request path /api/users matches the /api/* pattern, so it routes to tg1.
  3. Final Answer:

    The request is routed to target group <code>tg1</code> -> Option A
  4. Quick Check:

    Path /api/* routes to tg1 [OK]
Quick Trick: Path rules route matching requests to correct target group [OK]
Common Mistakes:
MISTAKES
  • Assuming default target group handles all requests
  • Thinking requests route to multiple target groups
  • Ignoring path-based routing rules

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes