You create a subnet with the address range 10.1.1.0/24 in an Azure virtual network. How many IP addresses in that subnet are available for you to assign to resources?
Choose one.
Azure reserves 5 IP addresses in every subnet: x.x.x.0 (network), x.x.x.1 (default gateway), x.x.x.2 and x.x.x.3 (mapped for Azure DNS), and the last address (broadcast).
A /24 contains 256 addresses. Subtracting Azure's 5 reserved addresses leaves 251 assignable. The 254 distractor is the traditional networking answer that only subtracts network and broadcast — the most common wrong answer on this question. 256 ignores reservations entirely, and 250 over-counts the reservation.
- Compute the raw subnet size: 2^(32 - prefix length); for /24 that is 256.
- Subtract Azure's 5 reserved addresses (first four addresses plus the last one).
- Size subnets with this overhead in mind — this is also why Azure's smallest supported subnet is a /29, which yields only 3 usable addresses.
Exam tip: Azure reserves 5 IPs in every subnet, so a /24 gives you 251 usable addresses, not 254.
Azure Virtual Networks, Subnets, Peering & User-Defined Routes — the lesson that teaches this.