Azure Administrator AZ-104 · Implement and Manage Virtual Networking · easy
A network engineer creates an Azure Virtual Network subnet with the IPv4 CIDR block 10.20.4.0/26. Accounting for the addresses that Azure reserves in every subnet for protocol conformance and gateway services, how many usable IPv4 addresses can be assigned to VM network interfaces (NICs) in this /26 subnet?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: C. 59 usable IPv4 addresses (64 total minus 5 Azure-reserved addresses)
A /26 subnet has 2^(32-26) = 64 total IPv4 addresses. Azure reserves five addresses in every subnet: the network address (first address, 10.20.4.0), the default gateway (.1), two addresses for Azure DNS mapping (.2 and .3), and the broadcast address (last address, 10.20.4.63). That leaves 64 - 5 = 59 addresses that can be assigned to VM NICs. The key rule is that Azure's reservation is five addresses, not the two (network and broadcast) that traditional on-premises subnet math removes. This is also why the smallest supported Azure subnet is a /29 (8 addresses, 3 usable), and why a /30 or /31 cannot be used. The most common trap is applying the familiar 'total minus 2' formula or forgetting any reservations at all. On the exam, always subtract five from the total block size when counting usable addresses in an Azure subnet.
Why the other options are wrong
- A. 62 usable IPv4 addresses (64 total minus 2 traditional RFC addresses) — This is the traditional on-premises calculation that removes only the network and broadcast addresses (64 - 2 = 62). Azure additionally reserves the default gateway and two DNS-mapping addresses, so five are unavailable and 62 overstates the usable count.
- B. 64 usable IPv4 addresses (using the full /26 block without reservations) — This treats the entire /26 block as assignable, ignoring Azure's reservations completely. Every Azure subnet loses five addresses (network, gateway, two for DNS mapping, and broadcast), so 64 can never be fully used by NICs.
- D. 27 usable IPv4 addresses (calculating for a /27 instead of a /26 CIDR) — This figure is not the result of any correct /26 calculation. It comes from subtracting 5 from 32, which is the number of addresses in a /27 block, and a /27 would give 32 - 5 = 27. The subnet in the question is a /26 with 64 addresses, so the answer is 59.
More Implement and Manage Virtual Networking questions
- An e-commerce platform runs on Azure VMs behind a load balancer. The architecture requires: (1) TLS/SSL termination at…
- You have three Azure Virtual Networks in a hub-and-spoke topology: VNet-Hub (which contains an Azure VPN Gateway…
- You deploy 4 backend Linux VMs in a private subnet (with no public IPs on the VM NICs) behind an Internal Standard…
- In a hub-and-spoke Azure Virtual Network, a spoke subnet (10.1.1.0/24) must send all internet-bound traffic…
- Two virtual networks — VNet-App (10.1.0.0/16) and VNet-DB (10.2.0.0/16) — are connected via VNet peering. You deploy…
- Instead of maintaining brittle IP address lists in Network Security Group (NSG) rules (10.1.0.4, 10.1.0.7…
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.