An administrator is configuring the network topology for a resource group named `RG-Core` in an Azure subscription. The resource group contains a virtual network named `VNet-Core`. The administrator must add a new subnet named `Subnet-Workloads` to `VNet-Core` to host exactly virtual machines, with each requiring a dedicated private IP address. No other resources will be placed in this subnet. To minimize IP address allocation, the subnet must use the smallest possible prefix that accommodates the virtual machines. Which subnet mask should the administrator choose?
- A
- Answer
- C
- D
Answer
The subnet mask is the smallest subnet that can accommodate the virtual machines, providing usable IP addresses out of total IP addresses after accounting for the IP addresses reserved by Azure.
The subnet mask is correct because a block provides total IP addresses. Since Azure reserves IP addresses in every subnet (the first and the last address), this leaves usable IP addresses. This is sufficient for the virtual machines and is the smallest available subnet prefix that meets the requirement.
Step-by-Step Solution
Key Concept
Azure reserves IP addresses in each subnet, which must be accounted for when planning subnet sizes.