A company has a single web application hosted on Azure Virtual Machines. You are configuring an Azure Application Gateway to distribute traffic. You need to ensure that requests for the URL path `/videos/*` are directed to a pool of VMs optimized for video streaming, while all other requests are directed to a default pool of web servers. Which type of routing rule should you configure on the Application Gateway?
- ABasic routing rule
- BSession affinity routing rule
- Path-based routing ruleAnswer
- DRound-robin routing rule
Answer
Path-based routing rule
A path-based routing rule allows you to create a URL path map. This map defines rules that associate specific path patterns, like `/videos/*`, with designated backend pools. Any request that does not match the specified paths is routed to the default backend pool, which satisfies the requirements of the scenario.
Step-by-Step Solution
Key Concept
Azure Application Gateway routing rules decide how to route traffic from the listener to backend pools. A basic rule routes all traffic unconditionally, whereas a path-based rule uses a URL path map to route traffic to specific backend pools based on the URL path in the request.
Estimated Time:45s