Design Cost-Optimized Architectures

A company runs several HTTP services on Amazon EC2 and currently pays for a separate load balancer for each service. Which strategy consolidates the load balancers while routing requests to services by URL path?

Show the answer

Correct answerA. Use one Application Load Balancer with path-based rules.

AWhy this is right: Path-based rules route HTTP requests to separate target groups through a shared Application Load Balancer.

BWhy not this: TCP listeners cannot inspect URL paths to select the appropriate service.

CWhy not this: Gateway Load Balancer distributes traffic to virtual network appliances, not HTTP services by URL path.

DWhy not this: TLS termination does not give a Network Load Balancer HTTP path-based routing capabilities.

An Application Load Balancer can route requests to different target groups by URL path, allowing HTTP services to share a load balancer. A Network Load Balancer handles transport-layer traffic and cannot select targets by URL path, even with TLS listeners.