App Service instances keep running out of SNAT ports when calling external APIs. What do you design?
AdvancedScenarioReliability, Cost and Migration
Answer
Situation read → Outbound connection churn exhausts the limited SNAT allocation per instance.
What I'd do →
- Fix the app: reuse HTTP clients (connection pooling,
HttpClientFactoryin .NET), keep-alive - VNet integration with NAT Gateway for large SNAT capacity
- Private Endpoints for Azure services so traffic doesn't use SNAT
- Monitor "SNAT Port Exhaustion" in App Service diagnostics
Why → Code fixes reduce demand; NAT Gateway raises supply.
Interview tip → Always mention connection reuse first.
More on Reliability, Cost and Migration
A key customer wants a 99.99% SLA for an app currently in a single region. What do you propose?AdvancedYou need to define RTO and RPO for a workload and build DR. Walk through it.IntermediateMonthly Azure spend is 30% over budget. What's your 30-day plan?IntermediateYou're migrating an app from AWS to Azure. How do you plan it?IntermediateDev and test environments run 24/7. How do you cut their cost?IntermediateA region-wide Azure incident is affecting your primary region. What do you do?Advanced