Contoso is deploying an internal line-of-business web application to virtual machines in one Azure region. Users reach the application only from the corporate network, and it must not be exposed to the internet. Requests to /api must go to one pool of servers, and requests to /reports must go to another pool. The security team requires a web application firewall (WAF) in front of the application.
Which load-balancing solution should you recommend?
The requirements are regional scope, private access, per-request routing by URL path, and a WAF. Application Gateway is the regional HTTP(S) load balancer that provides path-based routing and WAF for both public and private applications. Load Balancer and Traffic Manager can't make Layer 7 decisions. Front Door targets global, public-facing delivery.
- Not correct: Azure Traffic Manager with weighted routing. Traffic Manager works at the DNS level for public endpoints. It can't route individual requests by URL path, and it has no WAF.
- Correct: Azure Application Gateway with the WAF_v2 SKU. Application Gateway is a regional Layer 7 service. It supports URL path-based routing to separate back-end pools, integrates WAF, and can be deployed for private applications.
- Not correct: Azure Front Door Standard. Front Door is a global edge service for delivering HTTP(S) to a global audience. The application is private and runs in a single region, so global edge delivery doesn't fit.
- Not correct: Regional Azure Load Balancer. Load Balancer distributes traffic at Layer 4. It can't inspect URL paths, and it doesn't offer a WAF.