Contoso Retail runs an e-commerce app on Azure App Service behind an Application Gateway that uses the WAF_v2 SKU. The associated WAF policy uses the CRS 3.2 managed rule set, is in Prevention mode, and has no custom rules.
You must add protections that meet the following requirements:
- Requests from countries where Contoso has no customers must be blocked, except for requests from the authorized penetration testing firm's IP range.
- Requests from the authorized penetration testing firm's IP range, 203.0.113.0/24, must bypass WAF inspection, including the managed rules.
The penetration testing firm's traffic originates from one of the countries where Contoso has no customers.
Which two configurations should you add to the WAF policy? Each correct answer presents part of the solution.
Custom rules are processed before the managed rule set, in ascending priority order. A geo match Block rule meets the country requirement, and an IP match Allow rule lets the testing firm bypass inspection. Because the firm's traffic comes from a blocked country, the Allow rule must have the lower priority number so it is evaluated first.