Restrict App1 to Front Door Traffic with HTTP Header Filters
Short answer
C Configure App Service's HTTP headers access restriction to accept only requests carrying AFD1's X-Azure-FDID header, forcing all inbound traffic through AFD1.
Question
You have an Azure Front Door profile named AFD1 that has an Azure Web Application Firewall (WAF) policy.
You need to ensure that all inbound traffic to App1 is filtered through AFD1.
What should you do?
Key Takeaways
The question tests App Service access restrictions: only a per-request HTTP header filter (X-Azure-FDID) can prove traffic originated from AFD1, while the trap is choosing VNet-based options (B, D) that never touch inbound HTTP traffic.
This SC-500 question tests how to guarantee that all inbound traffic to Azure App Service passes through Azure Front Door's WAF. The correct action (C) is to set an HTTP header access restriction on App1 matching AFD1's X-Azure-FDID value.
Common mistake: Option B (enable virtual network integration) is the plausible distractor because it sounds network-related, but App Service VNet integration only affects outbound connections and does nothing to filter or restrict inbound traffic to App1.
Expert Analysis
The mechanism in play
The requirement is that every request reaching App1 must have come from AFD1. App Service therefore needs a request-level gate that inspects each inbound HTTP call, identifies the origin, and rejects anything that did not arrive via the Front Door profile.
How App Service enforces this
App Service exposes HTTP Restrictions (Access Restrictions) on the app itself. Under Access Restrictions → HTTP headers you can add a header rule, for example X-Azure-FDID with a value equal to AFD1's profile GUID, so only requests carrying that Front Door request ID header are allowed. Front Door injects that header automatically on every request it forwards, and App Service evaluates it per request — this is the exact step where "all inbound traffic is filtered through AFD1" takes effect. Option C therefore describes the correct mechanism.
Why the other options fail
- A: Entra application proxy — Application Proxy publishes on-premises applications to Entra ID users; it has nothing to do with routing or filtering internet traffic destined for an App Service instance, and it does not force traffic through a WAF-protected Front Door.
- B: Virtual network integration — This joins App Service to VNet1 for outbound calls to VNet resources (databases, VMs, private endpoints). It governs outbound connectivity only; it does not restrict or inspect inbound HTTP traffic, so App1 would still be directly reachable on its public
*.azurewebsites.netendpoint, bypassing AFD1's WAF entirely. - D: NSG rules on VNet1 — An NSG filters IP traffic between subnets and NICs inside the virtual network. Front Door traffic reaches App Service over the App Service infrastructure, not through VNet1, so NSG rules on VNet1 cannot enforce a Front Door origin requirement on App1.
The trap
Because App Service has no inbound path that traverses VNet1, any option tied to VNet-centric controls (B, D) is a distractor. The filter must live on App Service itself, at the HTTP header level, which is exactly what option C provides.
Official Reference
https://learn.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions
This link opens the official vendor documentation in a new tab.
Exam Strategy
On SC-500 routing questions, first identify the data path actually used: Front Door delivers traffic to App Service over Microsoft's network, never through your VNet, so eliminate any option that operates inside VNet1 (NSG rules, VNet integration). Then choose the control that inspects each request at the destination — an App Service access restriction keyed on the X-Azure-FDID header. Treat Entra application proxy as a signal it answers a different question (publishing on-premises apps), not internet ingress filtering.
Frequently Asked Questions
How does App Service verify that traffic came from my Azure Front Door profile?
Does enabling virtual network integration stop direct traffic to App1?
Why are NSG rules on VNet1 ineffective here?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 1 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 1
-
M15tin 👍 1 Answered CC. Para la aplicación App1, configure los ajustes del filtro de encabezados HTTP. Explicación: Azure App Service permite configurar restricciones de acceso mediante encabezados HTTP para aceptar únicamente solicitudes que provengan de Azure Front Door. Se puede utilizar el encabezado X-Azure-FDID para identificar las solicitudes provenientes de tu perfil específico de Azure Front Door y bloquear el tráfico directo hacia App1.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SC-500 Questions
Access 100 questions with complete answers and detailed explanations.
View Full SC-500 Practice Test →