Workloads must reach Azure SQL privately, including from on-prem over ExpressRoute. How do you set it up?
AdvancedScenarioNetworking Design
Answer
Situation read → Private Endpoint plus hybrid DNS is the whole problem.
What I'd do →
- Create a Private Endpoint for the SQL server in the spoke
snet-pewith a DNS zone group toprivatelink.database.windows.net(zone lives in the connectivity subscription, linked to the hub) - Deploy DNS Private Resolver in the hub with an inbound endpoint
- On-prem DNS conditionally forwards
database.windows.netto the resolver inbound IP - Set the SQL server
publicNetworkAccessto Disabled - Test from on-prem:
nslookup sql-shop.database.windows.netreturns10.x
Why → The endpoint gives the private IP; the DNS chain makes clients use it. Forwarding the public zone (not only privatelink) keeps the CNAME chain intact.
Interview tip → Most real outages here are DNS, so lead with the DNS design.
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?BeginnerYou 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