You must block a known malicious IP range from all public endpoints quickly.
IntermediateScenarioNetworking Design
Answer
Situation read → Block at the edge first (Front Door or App Gateway WAF custom rule), then NSGs if needed.
What I'd do →
- Add a WAF custom rule with
IPMatchand action Block at priority 1 on the WAF policy - For non-HTTP endpoints, add an NSG deny rule at low priority number or an AVNM security admin rule across VNets
- Confirm blocks in WAF logs
- Remove or review the rule after the incident
Why → WAF policies apply to every attached listener instantly; editing many NSGs by hand is slow.
Interview tip → Mention rate-limit custom rules for the next time.
More on Networking Design
Design the network for a new three-tier app in Central India that must be private except for the web front end.IntermediateSpoke A can't talk to spoke B, both peered to the hub. What design change makes it work?BeginnerWorkloads must reach Azure SQL privately, including from on-prem over ExpressRoute. How do you set it up?AdvancedYou need all outbound traffic from AKS to go through Azure Firewall. How do you do it?AdvancedA partner needs to whitelist a single egress IP from your App Service and AKS workloads. How?IntermediateYou're asked to expose an internal API to a customer's Azure tenant without VNet peering. How?Advanced