mediummultiple choiceObjective-mapped

A hub VNet contains a VPN gateway that provides access to on-premises resources. A spoke VNet is peered to the hub and must send on-premises traffic through the hub gateway without deploying its own gateway. What peering configuration is required?

Question 1mediummultiple choice
Full question →

A hub VNet contains a VPN gateway that provides access to on-premises resources. A spoke VNet is peered to the hub and must send on-premises traffic through the hub gateway without deploying its own gateway. What peering configuration is required?

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

Enable forwarded traffic on both peerings and disable gateway transit.

Forwarded traffic allows traffic that originated elsewhere, but it does not let the spoke use the hub gateway for transit.

B

Best answer

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

This is the correct hub-and-spoke gateway sharing configuration. The hub peering must allow gateway transit, and the spoke peering must use the remote gateway in the hub. Together, these settings let the spoke route on-premises traffic through the hub VPN gateway without deploying a second gateway.

C

Distractor review

Create a second VPN gateway in the spoke and peer the two gateways.

That would add unnecessary cost and complexity and is not required for shared gateway transit.

D

Distractor review

Configure the spoke subnet with a service endpoint to the hub gateway subnet.

Service endpoints are for supported Azure PaaS services, not for routing traffic through a VPN gateway.

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. — When a spoke VNet needs to use a hub VPN gateway, Azure requires a two-part peering configuration. The hub-to-spoke peering must allow gateway transit, and the spoke-to-hub peering must use remote gateways. This enables the spoke to send traffic destined for on-premises networks through the hub gateway without deploying an additional VPN gateway in the spoke. It is the standard hub-and-spoke transit design. Why others are wrong: Forwarded traffic is not the same as gateway transit and does not provide shared gateway access. Deploying a second VPN gateway is unnecessary when remote gateway sharing is supported. Service endpoints are unrelated to VPN connectivity and only apply to specific PaaS services. The question is about transit through an existing hub gateway, not service access.

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.