mediummultiple choiceObjective-mapped

A hub VNet already has a VPN gateway connected to on-premises. A new spoke VNet must reach on-premises through the hub gateway and should not deploy its own gateway. What configuration should be enabled on the peering?

Question 1mediummultiple choice
Full question →

A hub VNet already has a VPN gateway connected to on-premises. A new spoke VNet must reach on-premises through the hub gateway and should not deploy its own gateway. What configuration should be enabled on the peering?

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

Best answer

Enable gateway transit on the hub peering and Use remote gateways on the spoke peering.

This is the correct hub-and-spoke configuration when only the hub should own the VPN gateway. Gateway transit allows the hub to share its gateway with peered VNets, and the spoke must be configured to use the remote gateway. Together, these settings let the spoke route on-premises traffic through the hub gateway without deploying another gateway or duplicating connectivity infrastructure.

B

Distractor review

Create a service endpoint from the spoke to the hub.

Service endpoints are for PaaS service access, not for routing traffic through a VPN gateway in another VNet.

C

Distractor review

Add a default route to Internet in the spoke subnet.

Sending traffic to Internet would bypass on-premises connectivity instead of forwarding it to the hub gateway.

D

Distractor review

Enable accelerated networking on the spoke subnet.

Accelerated networking improves VM NIC performance, but it does not configure shared gateway routing across peered VNets.

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: Enable gateway transit on the hub peering and Use remote gateways on the spoke peering. — In a hub-and-spoke design, the hub can expose its VPN gateway to peered spokes by enabling gateway transit. The spoke must then be told to use the remote gateway, which lets its traffic reach on-premises through the hub's existing VPN connection. This avoids deploying and managing a second gateway while preserving centralized connectivity control in the hub network. Why others are wrong: Service endpoints do not forward traffic through VPN infrastructure. A default route to Internet would send the spoke's traffic away from on-premises resources. Accelerated networking is a VM NIC performance feature and has no effect on VNet peering gateway sharing.

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.