Design Resilient Architectures
An application serves images and API requests through one HTTPS hostname. Each request type must reach a separate group of EC2 instances based on its URL path. Which configuration meets this requirement?
Show the answer
Correct answerB. An Application Load Balancer with path-based listener rules
AWhy not this: Target stickiness maintains client affinity rather than routing requests by URL path.
BWhy this is right: Path-based listener rules forward requests to target groups according to the requested URL path.
CWhy not this: Weighted DNS records distribute DNS responses without inspecting request paths.
DWhy not this: TCP listeners do not inspect HTTP URL paths to select a target group.
An Application Load Balancer can inspect URL paths and route requests to different target groups. Target stickiness keeps a client's requests associated with a target; it does not select target groups by URL path.