easymultiple choiceObjective-mapped

Exhibit

HubVNet address space: 10.40.0.0/16
SpokeVNet address space: 10.40.1.0/24
Peering status: Failed
Error: Virtual network address space overlaps with another peered network

Based on the exhibit, the administrator cannot create VNet peering between the hub and spoke networks. What should be changed?

Question 1easymultiple choice
Full question →

Based on the exhibit, the administrator cannot create VNet peering between the hub and spoke networks. What should be changed?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Change the hub VNet to use a smaller subnet mask.

Peering problems caused by overlapping ranges are not fixed by simply resizing the hub network. The overlap must be removed between the two VNet address spaces first.

B

Best answer

Change the spoke VNet address space so it does not overlap the hub.

This is the correct fix because Azure VNet peering requires non-overlapping IP ranges. The exhibit shows the spoke range sits inside the hub range, which causes the peering attempt to fail. Readdressing the spoke to a unique CIDR block resolves the conflict and allows the peering to be created.

C

Distractor review

Add a route table to the spoke VNet before creating peering.

Route tables control traffic flow after connectivity exists, but they do not solve CIDR overlap during peering creation. The error in the exhibit is about address space conflict, not routing.

D

Distractor review

Enable a service endpoint on both VNets.

Service endpoints extend access to supported Azure services, but they do not affect VNet-to-VNet address space validation. They cannot make overlapping peering ranges acceptable.

Common exam trap

Common exam trap: usable hosts are not the same as total addresses

Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.

Technical deep dive

How to think about this question

Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.

KKey Concepts to Remember

  • CIDR notation defines the prefix length.
  • Block size helps identify subnet boundaries.
  • Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
  • The required host count determines the smallest suitable subnet.

TExam Day Tips

  • Write the block size before choosing the subnet.
  • Check whether the question asks for hosts, subnets or a specific address range.
  • Do not confuse /24, /25, /26 and /27 host counts.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

CIDR notation defines the prefix length.

What is the correct answer to this question?

The correct answer is: Change the spoke VNet address space so it does not overlap the hub. — Azure VNet peering only works when the connected VNets have non-overlapping address spaces. In the exhibit, the spoke range 10.40.1.0/24 is contained within the hub range 10.40.0.0/16, so Azure rejects the peering request. The administrator should readdress the spoke to a different private CIDR block, then recreate the peering. This is a common design issue when VNets are planned independently. Why others are wrong: Resizing the hub, adding routes, or enabling service endpoints does not remove the overlapping CIDR conflict. Those settings affect traffic behavior or service access after connectivity exists, not the peering validation step. The problem is specifically that the IP spaces collide, so only readdressing one network solves it.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.