Bird
0
0

Which ALB feature should you use to implement this?

hard📝 Application Q15 of 15
AWS - Elastic Load Balancing
You want to design a scalable web app using ALB that routes traffic based on user device type: mobile users to tg-mobile and desktop users to tg-desktop. Which ALB feature should you use to implement this?
AUse ALB path-based routing with <code>/mobile</code> and <code>/desktop</code> paths
BUse ALB health checks to detect device type
CUse ALB listener rules with HTTP header-based routing on the User-Agent header
DUse ALB sticky sessions to route users based on device
Step-by-Step Solution
Solution:
  1. Step 1: Identify how to detect device type in requests

    User device type is typically indicated in the HTTP User-Agent header.
  2. Step 2: Choose ALB feature for routing based on headers

    ALB supports listener rules that route traffic based on HTTP headers like User-Agent.
  3. Step 3: Evaluate other options

    Health checks do not detect device type; path-based routing requires URL changes; sticky sessions maintain session but don't route by device.
  4. Final Answer:

    Use ALB listener rules with HTTP header-based routing on the User-Agent header -> Option C
  5. Quick Check:

    Header-based routing = device type routing [OK]
Quick Trick: Use header-based routing on User-Agent for device detection [OK]
Common Mistakes:
MISTAKES
  • Using health checks to detect device type
  • Relying on path-based routing without URL changes
  • Confusing sticky sessions with routing logic

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes