Home › Studies › AZ-700 › Application Delivery › Front Door

Front Door

Tiers · endpoints, domains, origins · routing and health probes · TLS · caching and acceleration · rule sets, redirect, rewrite · Private Link origins

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Use cases and tiers

Azure Front Door is an advanced content delivery network (CDN) for the cloud. It is in the load-balancing and content delivery category with Azure Load Balancer and Azure Application Gateway. Standard and Premium deliver static and dynamic content from one tier, with caching, SSL offload and layer 3-4 DDoS protection.

CapabilityStandardPremiumClassic
PositioningOptimized for content deliveryFocuses on securityRetiring
WAFCustom rules onlyFull WAF capabilities (managed rule sets, bot protection)Managed rules supported (older rule sets)
Private Link to originNoYesNo
Client mutual TLS (mTLS)NoYesNo
Rules engine regular expressions and server variablesYesYesNo
Create new profilesYesYesNo (since March 31, 2025)

Endpoints, domains and origins

ObjectWhat it is
EndpointA logical grouping of one or more routes associated with domain names. Front Door gives it a generated domain name (generally under z01.azurefd.net).
DomainA custom domain: subdomain, apex domain or wildcard domain.
RouteAssociates a domain with an origin group and sets patterns to match, accepted protocols, forwarding protocol and caching.
Origin groupA set of origins that receives similar traffic. It defines health probes and the load-balancing method.
OriginThe application deployment Front Door retrieves content from: in Azure, on-premises or another cloud.
Rule setA customized rules engine that can be associated with multiple routes.

Custom domain validation and DNS

Routing, route matching and health probes

What happens to a request

  1. The client resolves the Front Door domain. Front Door's Traffic Manager returns the unicast IP of the best PoP.
  2. Front Door matches the Host header to a profile (a custom domain must be registered).
  3. The WAF rules are evaluated. A violated rule returns an error and stops processing.
  4. Front Door matches a route, then evaluates the route's rule sets in order (they can override the origin group or redirect).
  5. If caching is enabled and the edge has a valid response, it returns the cached response.
  6. Otherwise Front Door selects an origin by health, routing method and session affinity, and forwards the request.
Routing methodHow it works
Latency (default)Lowest network latency within the latency sensitivity range. Default sensitivity is 0 ms, so requests always go to the fastest available origins and weights apply only to origins with equal latency.
PriorityPriority 1 to 5; lower value is higher priority. Active/passive failover. Several origins can share a value.
WeightedWeight 1 to 1,000, default 50. Used for gradual upgrades, migration to Azure and cloud bursting.
Session affinityCookie-based (ASLBSA and ASLBSACORS), set at the origin group level for Standard and Premium. Off by default.

Origin selection order: enabled and healthy origins, then top priority, then the latency range, then weights.

Route matching

Health probes

TLS and certificates

Front Door terminates TLS at the edge, decrypts, applies routing rules, then starts a new TLS connection to the origin. Set HTTPS as the forwarding protocol for end-to-end TLS.

TopicRule
TLS versionsTLS 1.2 and 1.3. TLS 1.0 and 1.1 aren't supported.
Origin certificateMust come from a valid CA with a complete chain, with a subject name that matches the origin host name. Internal CA and self-signed certificates aren't allowed. Disabling the subject name check is possible per origin but not recommended.
Managed certificateFree, issued by DigiCert. Standard and Premium rotate it within 45 days of expiry, automatically when the CNAME points directly at the Front Door endpoint; otherwise revalidate the domain. Managed certificates work with wildcard domains.
Own certificate (BYOC)Stored in Azure Key Vault. Secret version Latest rotates automatically; a pinned version needs a manual change and takes up to 24 hours to deploy. The Front Door service principal needs access to the vault.
SwitchingManaged to BYOC needs no revalidation; BYOC to managed needs domain revalidation.
Client mTLSPremium only, client to Front Door. No mTLS from Front Door to origins (including Private Link origins).

Managed certificates can't be pinned: any part of the chain can change. To pin, use a customer-managed certificate. Some domains need a CAA record 0 issue digicert.com.

Traffic acceleration and caching

Caching topicRule
Cacheable methodsOnly GET. Other methods are proxied.
Each edgeHas its own cache, so some traffic can still reach the origin.
Static vs dynamicCache images, CSS and JavaScript. Use separate routes for dynamic content with caching disabled.
Large filesNo size cap. With caching, files are fetched in 8 MB chunks; the chunking relies on the origin supporting byte-range requests.
Query stringsIgnore Query String; Use Query String (each unique URL is its own asset; parameter order doesn't matter); include or exclude specified parameters.
Expiration orders-maxage, then max-age, then Expires. No Cache-Control: a random duration of one to three days. Maximum 366 days.
Never cachedprivate, no-cache and no-store are honored even if a rule overrides caching.
ValidatorOnly Last-Modified; etag isn't supported.
Rules engine behaviorHonor origin, Override always, Override if origin missing. Rules engine caching overrides the route.
PurgeUp to 10 minutes to propagate; case-insensitive and query-string agnostic. Wildcard domains can't be purged directly: name a subdomain.

Rule sets, redirect, rewrite and Private Link

Private Link to origins (Premium)

  1. Enable Private Link on the origin. Front Door creates a private endpoint from its managed regional network.
  2. Approve the pending private endpoint connection at the origin (portal, CLI or PowerShell).
  3. Wait a few minutes. Until then requests to that origin return a Front Door error.

CLI and PowerShell

TaskAzure CLIPowerShell
Purge cached contentaz afd endpoint purge --resource-group myRGFD --profile-name contosoafd --endpoint-name myendpoint --domains www.contoso.com --content-paths '/scripts/*'Clear-AzFrontDoorCdnEndpointContent -ResourceGroupName myRGFD -ProfileName contosoafd -EndpointName myendpoint -Domain www.contoso.com -ContentPath /scripts/*
Create an endpoint with a domain reuse scopeaz afd endpoint create --resource-group MyResourceGroup --profile-name MyProfile --endpoint-name myendpoint --name-reuse-scope SubscriptionReuseNew-AzFrontDoorCdnEndpoint -ResourceGroupName MyResourceGroup -ProfileName MyProfile -EndpointName myendpoint -Location global -AutoGeneratedDomainNameLabelScope SubscriptionReuse

Exam Tips

Tick each tip once you can answer it without looking.

“The origin must not be reachable from the internet; only Front Door may reach it” → Front Door Premium with Private Link to the origin; approve the private endpoint connection at the origin.. Trap: Standard has no Private Link to origin. A request is pending until you approve it, and the origin type must be a supported one.

“Origin group mixes a public App Service and a Private Link origin” → Not allowed: keep public origins in one origin group and private origins in another.. Trap: Enabling Private Link on two public origins at the same time also fails (temporary mixed state); do one at a time.

“Private Link origin traffic over 7200 requests per second per profile in one region” → Add origins that use different Private Link regions in the same origin group.. Trap: Requests above 7200 RPS in a region are rate limited with 429; the fix is to spread traffic across Private Link regions.

“Which routing method is the default, and when do weights apply?” → Latency. Weights apply only when latency sensitivity lets origins compete or latencies are equal (default sensitivity 0 ms).. Trap: Priority and Weighted are not the default; a weight of 70/30 alone doesn't split traffic under default latency settings.

“Active/passive failover between two origins” → Priority routing (1 to 5, lower is higher priority).. Trap: Weighted spreads traffic across origins instead of keeping one as standby.

“Send 10% of traffic to a new origin and raise it over time” → Weighted routing (1 to 1,000, default 50).. Trap: Priority sends everything to the top-priority origin until it fails.

“Stateful app: the same user must reach the same origin” → Session affinity on the origin group (cookies ASLBSA and ASLBSACORS).. Trap: It is off by default, and a session isn't established when the origin's response is cacheable.

“Every origin in the group fails health probes” → Front Door treats all as unhealthy and routes round robin across all of them.. Trap: It doesn't stop serving traffic; it resumes normal balancing when an origin recovers.

“Requests get 404 Bad Request for a host or path you expected to work” → No route matches: register the domain and add a route with a matching or catch-all path.. Trap: A path without a wildcard is exact-match only, and path patterns are case insensitive.

“Redirect HTTP to HTTPS at the edge” → URL redirect in a rule set (or the route's Redirect setting) with protocol HTTPS only; 301 is the documented status for this.. Trap: Match request keeps the incoming protocol, so HTTP stays HTTP.

“Rewrite /sub/image/1.jpg to /foo/image/1.jpg (keep the rest of the path)” → URL rewrite with source /sub/, destination /foo/ and preserve unmatched path = Yes.. Trap: The default (No) removes the remaining path after the source pattern.

“Bring your own certificate that rotates without manual work” → Key Vault secret version Latest; the Front Door service principal needs access to the vault.. Trap: A specific version doesn't autorotate and takes up to 24 hours to deploy after you reselect it.

“HTTPS to the origin fails; the origin certificate name doesn't match the origin host name” → Fix the certificate or origin host name. The subject name check can be disabled per origin, but Learn says not to.. Trap: Even with the check disabled, the origin must present a certificate with a valid, trusted chain.

“Remove stale cached files now” → Purge the path (single path or /*); allow up to 10 minutes. For wildcard domains, name a specific subdomain.. Trap: Purge is case-insensitive and query-string agnostic, so one purge clears all query variations.

“Origin sends no Cache-Control header and caching is on” → Front Door caches for a random duration between one and three days; the maximum is 366 days.. Trap: private, no-cache and no-store responses aren't cached even if a rules engine action overrides caching.

“Cut connection and TLS setup time to a distant origin” → Split TCP: the client ends at a nearby edge; a separate reused connection goes to the origin.. Trap: The PoP is picked at DNS resolution; without client location it uses the resolver's location, so it can be a farther PoP.

“Which tier after Front Door (classic) retires on March 31, 2027?” → Migrate to Standard or Premium with the migration capability. Standard to Premium: upgrade. Premium to Standard: re-create.. Trap: There is no seamless Premium-to-Standard downgrade tool.

“Validate a custom domain without cutting over production traffic” → Add the _dnsauth.{subdomain} TXT record first, then the CNAME later.. Trap: The validation TXT record expires after seven days; an A record is not how you point a domain at Front Door.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Application GatewayApplication Delivery overview →