Restrict App1 to Front Door Traffic with HTTP Header Filters

SC-500 By islever Editorial Last updated

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 subscription that contains a virtual network named VNet1. The subscription contains an Azure App Service web app named App1.
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?
  1. Configure Microsoft Entra application proxy.
  2. For App1, enable virtual network integration.
  3. For App1, configure the HTTP headers filter settings. Correct Answer
  4. For VNet1, configure network security group (NSG) rules.

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.net endpoint, 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?

Front Door adds an X-Azure-FDID header containing your profile's unique ID to every forwarded request. An App Service access restriction on that header allows only requests carrying your AFD1 value, so direct hits to the app's public endpoint are blocked.

Does enabling virtual network integration stop direct traffic to App1?

No. VNet integration only controls outbound connections from the app to VNet resources. The app keeps its public *.azurewebsites.net address, so traffic can still bypass AFD1 unless an HTTP header restriction is configured.

Why are NSG rules on VNet1 ineffective here?

Azure Front Door reaches App Service through the App Service front end, not through your virtual network, so inbound HTTP requests never traverse VNet1 subnets or NICs where NSG rules apply.

Community Votes

C
100%

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

  1. M15tin 👍 1 Answered C
    C. 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.

Log in to comment, report an error, or add a note about this question.

Practice All SC-500 Questions

Access 100 questions with complete answers and detailed explanations.

View Full SC-500 Practice Test →

← Back to SC-500 Study Guide