CertLumen

Microsoft Azure Administrator (AZ-104) · Section 4 · 18% of the exam

Create and configure virtual networks and subnets

One of the objectives of the Microsoft Azure Administrator (AZ-104) exam, in the section “Implement and manage virtual networking”. Here is what it covers, the points to remember and a question to try.

What it covers

A virtual network is the private network boundary for almost everything you run in Azure. This lesson covers address spaces, subnets and the five reserved addresses, DNS settings, private subnets and default outbound access, virtual network peering (settings, states, transit and limits) and Standard SKU public IP addresses.

Points to remember

  • A VNet is regional, free, and spans all availability zones of its region; subnets of one VNet must not overlap.
  • Azure reserves 5 addresses per subnet (first four and last); the smallest IPv4 subnet is /29 (3 usable), AzureBastionSubnet needs /26 or larger.
  • GatewaySubnet, AzureBastionSubnet and AzureFirewallSubnet have mandatory names and cannot hold other resources.
  • Peering needs a link on each VNet (Initiated then Connected), non-overlapping address spaces, and is not transitive.
  • Gateway transit is set on the hub link; Use remote gateways is set on the spoke link; a spoke with its own gateway cannot use remote gateways.

Try a question

Contoso has a virtual network created in 2024 whose subnets still use default outbound access. A new policy forbids VMs from using Microsoft-owned default outbound IP addresses, but the VMs must keep internet access from one static address that partners allow-list. What should the administrator do?

  1. ASet defaultOutboundAccess to false on the subnet and restart the VMs from the guest operating system without adding any other outbound method
  2. BAssign a Basic SKU public IP to each VM's network interface and keep default outbound access enabled
  3. CCreate a UDR for 0.0.0.0/0 with next hop Internet on the subnet so traffic leaves through the Azure backbone
  4. DAdd a NAT gateway with a static public IP, turn off default outbound access on the subnet, then deallocate and start the VMs
Show the answer

D. Existing virtual networks are not changed by the platform default. To remove default outbound IPs, first add an explicit outbound method (a NAT gateway gives one static egress address), then make the subnet private with defaultOutboundAccess = false, and stop (deallocate) the VMs so the NIC loses the implicit IP.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Virtual networks, subnets, peering and public IP addresses teaches this objective (about 45 minutes), and 16 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 81 objectives · Next objective →