GreenCloud wants to block a small set of malicious IP addresses and also limit abusive clients by rate on their WAF policy for an Application Gateway v2. They also want to block requests coming from certain countries. Which combination of custom WAF rules should they implement to meet rate limiting, IP blocklist, and geo-filtering requirements efficiently?
Choose an answer
Tap an option to check your answer.
Correct answer: Create three custom rules: a matched rule (Priority 100) with IPMatch to block the malicious IP list, a rate-limit custom rule (Priority 200) that checks X-Forwarded-For and limits requests per minute per client IP, and a GeoMatch rule (Priority 300) to block traffic from specified countries..
Why this is the answer
This option correctly leverages the capabilities of Azure Application Gateway WAF v2. Custom WAF rules allow for specific actions based on different match conditions. An IPMatch rule is ideal for blocking specific malicious IPs. A RateLimit custom rule directly addresses the need for client-side rate limiting, using X-Forwarded-For to identify individual clients behind proxies. A GeoMatch rule is designed for blocking traffic from specific countries. Assigning different priorities ensures the rules are evaluated in the desired order (e.g., blocking known malicious IPs first). The other options are incorrect because: A single IPMatch rule cannot include country CIDR blocks directly; GeoMatch is required. Global rate limits in Application Gateway settings are not granular per client IP. Custom Request Body rules are not designed for efficient rate limiting, and Network Security Groups (NSGs) operate at the network layer, not the application layer, making them less suitable for fine-grained WAF-specific geo-blocking or client-IP rate limiting. Relying on Azure Front Door would mean moving the WAF functionality, which is not what the question implies for the Application Gateway WAF. The question asks how to implement these requirements on their WAF policy for an Application Gateway v2.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed