Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Plan and configure subnetting for services, including virtual network gateways, private endpoints, service endpoints, firewalls, application gateways, VNet-integrated platform services, and Azure Bastion

A worked example

Yes or no

Fabrikam is building a virtual network named HubVnet in West US 2. Its address space is 10.20.0.0/16. HubVnet will connect to the company's on-premises networks through a VPN gateway. HubVnet already contains three workload subnets: AppSubnet uses 10.20.10.0/24, DataSubnet uses 10.20.40.0/24, and WebSubnet uses 10.20.50.0/24.

The gateway subnet must meet these requirements:

  1. Its size follows Microsoft's recommended size for a gateway subnet.
  2. Its address range is part of the HubVnet address space.

Three engineers submit the proposals in the exhibit. No network security group will be associated with the subnet in any proposal.

ProposalSubnet nameAddress range
P1GatewaySubnet10.20.255.0/29
P2GatewaySubnet10.20.0.0/27
P3GatewaySubnet10.21.0.0/26

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

StatementYesNo
Proposal P1 meets all of the stated requirements.

10.20.255.0/29 lies inside 10.20.0.0/16, but a /29 is smaller than the /27 or larger size that Microsoft recommends for a gateway subnet, so it fails requirement 1.

Correct
Proposal P2 meets all of the stated requirements.

A /27 matches the recommended size, and 10.20.0.0/27 lies inside 10.20.0.0/16 without overlapping AppSubnet, DataSubnet or WebSubnet, so it meets both requirements.

Correct
Proposal P3 meets all of the stated requirements.

A /26 is larger than /27, so the size is acceptable, but 10.21.0.0/26 is outside 10.20.0.0/16. The gateway subnet has to come from the virtual network's own address range, so it fails requirement 2.

Correct
Why

Microsoft recommends sizing a gateway subnet at /27 or larger, and the gateway subnet is carved from the virtual network's own address range. P2 (10.20.0.0/27) satisfies both conditions and does not collide with the existing workload subnets. P1 fails because a /29 is below the recommended size, and P3 fails because its range falls outside the 10.20.0.0/16 address space even though a /26 is an acceptable size.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free