AWS Certified Solutions Architect Associate SAA-C03 Practice Question
An application uses a single Application Load Balancer (ALB) to serve two different domain names, example.com and api.example.com. Each domain should be forwarded to its own target group of Amazon EC2 instances that are registered in multiple Availability Zones within the same AWS Region.
Host-based routing allows a listener rule to examine the Host header of each HTTP/HTTPS request. The ALB can then forward requests for example.com and api.example.com to separate target groups whose EC2 instances span multiple Availability Zones. Path-based routing evaluates the URL path, source-IP affinity uses the client IP to make routing decisions, and latency-based routing is a Route 53 DNS feature, not an ALB listener capability.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is host-based routing and how does it work in ALB?
Open an interactive chat with Bash
What is the difference between host-based and path-based routing in ALBs?
Open an interactive chat with Bash
Why is latency-based routing not applicable in this scenario?