mediummultiple choiceObjective-mapped

Two application teams created separate VNets for independent workloads. VNet-A uses 10.40.0.0/16 and VNet-B uses 10.40.128.0/17. The teams want to peer the VNets so both apps can communicate privately. What should the administrator do first?

Question 1mediummultiple choice
Full question →

Two application teams created separate VNets for independent workloads. VNet-A uses 10.40.0.0/16 and VNet-B uses 10.40.128.0/17. The teams want to peer the VNets so both apps can communicate privately. What should the administrator do first?

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

Create the peering now and add a route table to one VNet later.

Peering cannot be established successfully between VNets with overlapping address spaces, even if routes are added later.

B

Best answer

Renumber one VNet so its address space no longer overlaps before creating the peering.

Azure VNet peering requires non-overlapping address spaces. The administrator must change one network to a unique prefix before attempting the peering. Route tables, NSGs, and DNS settings do not solve the fundamental address conflict.

C

Distractor review

Add an NSG rule that allows traffic between the two address ranges.

Network security groups control traffic filtering, but they do not resolve overlapping IP ranges or enable peering.

D

Distractor review

Enable gateway transit on both VNets so overlapping ranges can route through a shared gateway.

Gateway transit does not permit overlapping address spaces. The VNets still must be uniquely addressed before peering.

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: Renumber one VNet so its address space no longer overlaps before creating the peering. — Azure VNet peering requires each virtual network to have a unique, non-overlapping address space. In this scenario, 10.40.0.0/16 contains 10.40.128.0/17, so Azure will not allow the peering until one side is renumbered. The correct first action is to change one VNet to a different prefix and then create the peering. This is an addressing problem, not a routing or security rule problem. Why others are wrong: Route tables and NSGs cannot fix overlapping CIDRs because they operate after address assignment. Gateway transit also does not bypass the peering requirement for unique address spaces. The issue must be solved at the IP planning layer first, before any connectivity features can work.

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.