Design the network for a new three-tier app in Central India that must be private except for the web front end.
IntermediateScenarioNetworking Design
Answer
Situation read → Spoke VNet peered to the hub, App Gateway WAF as the only public entry, private endpoints for data.
What I'd do →
- Allocate
10.21.0.0/20from IPAM; subnets:snet-agw(/24),snet-app(/23),snet-pe(/24),snet-dataif needed - Application Gateway v2 with WAF in
snet-agw, public frontend, backends insnet-app - App tier on VMSS or AKS in
snet-app, NSG allowing 443 only fromsnet-agw - Database and Key Vault via Private Endpoints in
snet-pe, Private DNS zones linked from the hub - UDR
0.0.0.0/0to the hub firewall onsnet-app(not onsnet-agw, which needs direct internet for its control traffic)
Why → One public surface with WAF, east-west and egress inspected, PaaS never exposed publicly.
Interview tip → Mention that Application Gateway v2's subnet must not get a default route to an NVA unless you use its private-only deployment.
More on Networking Design
Spoke 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?AdvancedUsers worldwide hit your app hosted in Central India and complain about latency. What do you put in front?Beginner