All guides
Practice now
D4 · Infrastructure

Network Security and Delivery

The load balancer matrix (global vs regional × HTTP vs non-HTTP) is one of the most reliable AZ-305 questions. Plus Azure Firewall vs NSG, WAF and DDoS Protection.

Icon-networking-62

The 4 load balancers — the matrix

HTTP/S (L7)Non-HTTP (L4)
Global (multi-region)
Anycast, CDN, WAF, edge TLS, instant failover

DNS-based, any protocol, failover subject to TTL
RegionalApplication Gateway
L7: path/host routing, WAF, TLS termination, cookie affinity, AGIC for AKS

L4 TCP/UDP, ultra-low latency, HA ports, internal or public, zone-redundant

Decide with 2 questions

Is the traffic HTTP/S? Yes → Front Door (global) or App Gateway (regional). No (TCP/UDP, SQL, RDP, gaming) → Traffic Manager (global) or Load Balancer (regional). One region or several? decides the row.

Icon-networking-84

and NSGs

NSG (Network Security Group)

  • •Stateful L3/L4 filter on subnet/NIC — free
  • •Rules by IP/port/service tags/ASGs
  • •Application Security Groups: rules by server role (web, db) with no IPs
  • •Microsegmentation within the VNet
  • •Doesn't inspect content or filter by FQDN (except tags)

Azure Firewall

  • •CENTRALIZED stateful PaaS firewall, zone-redundant, auto-scaling
  • •Filtering by FQDN, FQDN tags, SNAT/DNAT
  • •Standard: + threat intelligence (blocks malicious IPs/domains)
  • •Premium: + TLS inspection, IDPS, URL filtering, web categories
  • •Firewall Policy + Firewall Manager for multi-hub management

They don't compete: used TOGETHER

Defense in depth: Firewall in the hub for north-south and east-west traffic + NSGs on the subnets for microsegmentation. "Only allow egress to *.windowsupdate.com" → Firewall (FQDN). "Only the web subnet talks to the db subnet on 1433" → NSG.

Icon-362Artboard 1

WAF and

Web Application Firewall

  • • Protects web apps from the OWASP Top 10: SQLi, XSS, etc. (managed rules + custom)
  • • Deployed ON: Front Door (global edge) or Application Gateway v2 (regional)
  • • Modes: Detection (log) → Prevention (blocks)
  • • Bot protection, rate limiting (Front Door WAF), geo-filtering

DDoS Protection

  • • Infrastructure protection: free, automatic, for all of Azure
  • • Network Protection: paid — adaptive tuning per resource, telemetry/alerts, rapid response team, cost protection
  • • IP Protection: per individual public IP (cheaper)
  • • Signal: "DDoS mitigation with an SLA, metrics and response support" → Network Protection

Combined ingress designs

ScenarioChain
Multi-region web app with WAF and CDNFront Door (WAF) → App Service / regional App Gateway → backends
Regional 3-tier appApp Gateway WAF → web tier → Internal LB → app tier → DB
AKS with managed ingressApp Gateway for Containers (or AGIC) → pods
Only accept traffic that passed through Front DoorApp Gateway/NSG filtering the AzureFrontDoor.Backend service tag + X-Azure-FDID header
SQL Server on VMs with a listenerInternal Load Balancer (HA ports) in front of the Always On AG
Global online UDP gameTraffic Manager → regional public Load Balancer

Decision table

RequirementService
Web app in 3 regions, fast failover, acceleration and WAFAzure Front Door (Premium with Private Link to backends)
Path routing /api → pool A, /images → pool B (regional)Application Gateway
Balance internal TCP 1433 with minimal latencyInternal Load Balancer
DNS failover for a non-HTTP service across regionsTraffic Manager (priority)
Egress filtered by FQDN with threat intelligenceAzure Firewall Standard
TLS inspection and IDPS on trafficAzure Firewall Premium
Network rules by server role without managing IPsNSG + Application Security Groups
Protect against the OWASP Top 10WAF (on Front Door or App Gateway)
Telemetry and SLA against DDoS attacksDDoS Network Protection
RDP/SSH to VMs with no public IPsAzure Bastion

Did you get this topic?

Test what you just learned

A web app runs on App Service in West Europe and East US. Requirements: a single global entry point with automatic failover in seconds, protection against SQL injection and XSS at the edge, static content acceleration, and the App Services must NOT accept direct traffic from the internet. What do you design?

Ready to test "Network Security and Delivery"?

Put what you learned to the test with original AZ-305 exam questions.

Start AZ-305 mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.