Microsoft AZ-104: Azure Load Balancing and Traffic Management — Study Guide

Part of the Microsoft Azure Administrator Associate AZ-104 — Study Guide. Practice with verified answers in the Microsoft exam hub, or take timed practice tests on ExamRoll.io.

Overview

Azure offers a layered portfolio for distributing and protecting traffic: Azure Load Balancer (Layer 4, TCP/UDP), Application Gateway (Layer 7, HTTP/S), Azure Front Door (global Layer 7 edge), Azure Traffic Manager (DNS-based), and Azure CDN (edge caching). Each targets a specific segment of the request path—from global DNS decisioning and edge POPs to regional HTTP routing and private, east-west traffic. Mastery comes from selecting the right service for the protocol and audience, composing them properly, and configuring health probes and rules that drive reliable failover.

Azure Load Balancer (L4): SKUs, building blocks, NAT/outbound, and floating IP

Standard Load Balancer is the production-grade L4 load balancer. It is zone-aware/zone-redundant, supports HA Ports, advanced diagnostics/metrics, secure-by-default (no inbound unless you define rules), configurable outbound rules, and large backend scale. Basic is a legacy SKU with limited scale/features and no zone redundancy; it is on retirement path and should not be chosen for new workloads.

Core components define how traffic flows:

Inbound NAT rules are per-VM translations that forward a specific frontend port to a single backend NIC/port (for example, expose RDP or SSH to one VM without load balancing). They don’t use the health probe and are not a scale-out mechanism.

Outbound rules define SNAT behavior for Standard Load Balancer backends initiating connections to the internet via the LB’s public frontends. They allow you to control which frontend(s) supply SNAT ports and how many ports per backend instance are allocated, helping avoid SNAT port exhaustion under high outbound concurrency. If a NAT Gateway is attached to the subnet, it supersedes LB SNAT; prefer NAT Gateway for consistent, scalable outbound.

Floating IP (Direct Server Return) is a rule option used when the destination IP/port must be preserved end-to-end. It is required for clustered scenarios such as SQL Server Always On availability group listeners. For SQL AG, use an internal Standard Load Balancer with a TCP probe (not HTTP) to the cluster’s probe port and enable Floating IP on the LB rule; do not probe port 1433 with HTTP, as SQL is not an HTTP workload.

Internal vs external load balancers hinge on the audience and security boundary. Use an internal LB when exposing a private VIP inside a VNet or via private connectivity (VPN/ExpressRoute) for line-of-business apps, databases, and NVAs. Use an external LB for internet-facing L4 services. For internal LBs, assign a static private frontend in the target subnet; for external LBs, bind a Standard Public IP and optionally use multiple frontends.

Cross-region Load Balancer provides global, anycast Layer 4 load balancing across regions. You deploy Standard Public Load Balancers in each region (regional tier) and place their public frontends into the backend of a single global Load Balancer (global tier). The global LB uses health probes to each regional LB and directs clients to the closest healthy region (by latency) with flow symmetry based on 5‑tuple hashing. It’s TCP/UDP only—no TLS termination—and complements regional L7 gateways.

Application Gateway (L7) and Azure Front Door (global L7)

Application Gateway is a regional Layer 7 reverse proxy with WAF. It terminates HTTP/HTTPS, inspects headers and paths, and routes to private or public backends.

Key Application Gateway constructs:

Advanced L7 patterns:

Azure Front Door provides global HTTP/HTTPS load balancing and acceleration at the edge with anycast, split TCP, and POP-to-origin optimization. It is best for internet-facing apps requiring global routing, edge WAF, and optional edge caching.

Use Application Gateway for regional L7 needs (private backends, east-west, complex rewrites) and Front Door for global L7, edge security, and acceleration. They are commonly composed: Front Door at the edge, Application Gateways per region, and internal LBs behind gateways for L4 services.

Traffic Manager (DNS-based) and Azure CDN

Traffic Manager is DNS-based global traffic distribution. It does not proxy traffic; instead, it returns an endpoint’s DNS name/IP based on policy and health, leaving clients to connect directly. Health is checked from distributed probes to HTTP/HTTPS/TCP endpoints; low TTLs reduce failover latency but increase DNS query volume.

Azure CDN offloads static and cacheable content to edge POPs to reduce origin load and latency.

Design choices, cross-region integration, and health probe behavior

Internal vs external load balancers are selected by audience and route exposure. If consumers are only inside private networks, use internal LBs to avoid public exposure and simplify NSG control. For internet users or partners, use public frontends. For outbound connectivity at scale, prefer NAT Gateway over LB SNAT; reserve outbound rules for cases where the LB’s frontend must supply SNAT.

Cross-region Load Balancer integrates with regional Standard Public Load Balancers to achieve active-active, global Layer 4 resiliency for TCP/UDP services. Place the regional LBs’ public frontends in the global LB’s backend pool. Health probes at the global tier reflect regional availability; routing steers to the lowest-latency healthy region and fails over automatically if an entire region (or its regional LB) goes unhealthy. Combine this with Front Door when you need both protocol support (e.g., TCP services via cross-region LB and HTTP/S via Front Door) under separate VIPs.

Health probes are the truth source for failover:

Practical Problem Scenario

Adobe needs to globally expose a multi-region SaaS composed of web front ends, microservices, and a SQL Server Always On availability group, with strict security, fast failover, and low latency for users worldwide. They also expose a legacy TCP-based telemetry ingestion service.

  1. Place Azure Front Door Standard at the edge with a WAF policy and routes for www.adobe.com and api.adobe.com. Origins are Application Gateways in East US and West Europe, grouped with latency-based routing and priority failover.
  1. Deploy Application Gateway v2 with WAF in each region. Configure multi-site listeners with SNI for both hostnames, URL path–based routing to microservices, and custom health probes to /healthz on each service. Enable end-to-end SSL with backend host override to service FQDNs.
  1. Deploy an internal Standard Load Balancer in each region for the SQL AG listener. Configure a static private frontend, a TCP health probe to the Windows Failover Cluster probe port, and a load-balancing rule with Floating IP enabled to the listener port.
  1. Back the web static assets with Azure Front Door caching rules for /static/* with a long TTL and revalidation, and also stand up an Azure CDN profile and endpoint for large media downloads at downloads.adobe.com with path-specific caching and query-string variation.
  1. Publish the legacy TCP telemetry ingestion via a regional Standard Public Load Balancer in each region, then front them with a Cross-region Load Balancer as the single public VIP. Configure global probes to each regional LB and use latency routing.
  1. Add Azure Traffic Manager with Priority policy only for an external partner SFTP endpoint hosted outside Azure, listing the partner primary and an Azure-hosted backup endpoint.
  1. For outbound connectivity from app subnets, attach NAT Gateway and remove LB outbound SNAT reliance. Monitor probe outcomes and LB/App Gateway/Front Door metrics in Azure Monitor and tune probe intervals/unhealthy thresholds to eliminate flapping.

Azure Virtual Networking · All domains · Azure Storage

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Microsoft →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product