You are hosting a REST API on Azure App Service. To comply with corporate security standards, the API must only accept requests from a single external partner company's static public IP address. The solution must run at the platform level to prevent invalid traffic from consuming compute resources in your App Service plan. How should you configure this?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Configure Access Restrictions in the App Service Networking settings, adding an Allow rule for the partner's CIDR IP range and a default Deny rule for all other traffic.

Access Restrictions in Azure App Service operate at the front-end load balancer level (before the traffic hits your dedicated worker instances). This blocks unauthorized requests a...

๐Ÿ“‹Part of Microsoft Certified: Azure Developer Associate (AZ-204) ยท Azure Certification Practice
Real Exam ScenarioAzure App Service

You are hosting a REST API on Azure App Service. To comply with corporate security standards, the API must only accept requests from a single external partner company's static public IP address. The solution must run at the platform level to prevent invalid traffic from consuming compute resources in your App Service plan. How should you configure this?

โœ“ Correct Answer & ExplanationAzure App Service

Correct Answer

Configure Access Restrictions in the App Service Networking settings, adding an Allow rule for the partner's CIDR IP range and a default Deny rule for all other traffic.

Why This Answer Is Correct

Access Restrictions in Azure App Service operate at the front-end load balancer level (before the traffic hits your dedicated worker instances). This blocks unauthorized requests at the platform layer, protecting your compute resource/worker CPU from being consumed by invalid traffic.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure App Service โ€” a core concept tested in Microsoft Certified: Azure Developer Associate (AZ-204). Understanding Azure App Service is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.