Azure Administrator AZ-104 · Implement and Manage Virtual Networking · medium

An e-commerce platform runs on Azure VMs behind a load balancer. The architecture requires: (1) TLS/SSL termination at the load balancer, (2) URL path-based routing so /images/* routes to an image-rendering VM pool and /checkout/* routes to a payment VM pool, and (3) OWASP Core Rule Set Web Application Firewall (WAF) inspection. Which Azure load-balancing service meets all three requirements?

Published · Last updated · checked before publication — how we verify questions

Options

  • AAzure Standard Load Balancer operating at Layer 4 (TCP/UDP)
  • BAzure Application Gateway with the WAF_v2 autoscaling tierCorrect answer
  • CAzure Traffic Manager DNS-based global traffic routing
  • DAzure NAT Gateway for outbound SNAT port translation

Answer: B. Azure Application Gateway with the WAF_v2 autoscaling tier

Azure Application Gateway with the WAF_v2 SKU is a regional Layer 7 load balancer, so it understands HTTP and HTTPS requests rather than just TCP or UDP flows. It can terminate TLS at the gateway, evaluate URL path-based routing rules so that /images/* goes to one backend pool and /checkout/* goes to another, and run an integrated Web Application Firewall using the OWASP Core Rule Set. The WAF_v2 tier combines the v2 autoscaling gateway with WAF policy, so all three stated requirements are met by a single service. The key concept is the OSI layer at which each Azure service operates: anything that must read URL paths, decrypt TLS or inspect HTTP payloads for attacks such as SQL injection or cross-site scripting needs Layer 7. The common trap is choosing Azure Load Balancer because it is the default, familiar choice for VMs, or Traffic Manager because it sounds like it routes traffic by name, even though neither inspects requests.

Why the other options are wrong

  • A. Azure Standard Load Balancer operating at Layer 4 (TCP/UDP) — Azure Standard Load Balancer is a Layer 4 service that distributes TCP and UDP flows using a five-tuple hash. It never reads URL paths, cannot terminate TLS and has no WAF capability, so it fails all three requirements.
  • C. Azure Traffic Manager DNS-based global traffic routing — Traffic Manager is a DNS-based global traffic distribution service that returns endpoint names according to a routing method such as priority or performance. It is not in the data path, so it cannot terminate TLS, route by URL path or apply WAF rules.
  • D. Azure NAT Gateway for outbound SNAT port translation — NAT Gateway provides outbound-only source network address translation for subnet resources so they can reach the internet with static public IPs. It does not load balance inbound traffic, route by URL or inspect requests with a WAF.

All Implement and Manage Virtual Networking questions and the topic overview →

Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.