easymultiple choiceObjective-mapped

Exhibit

Hub-and-spoke topology:
- Hub VNet contains an active VPN gateway.
- Spoke VNet has no gateway.
- Requirement: Spoke resources must route on-premises traffic through the hub gateway.
- Current spoke-to-hub peering settings: Allow virtual network access = Enabled, Use remote gateways = Disabled.

Based on the exhibit, the spoke virtual network must use the hub's existing VPN gateway to reach on-premises networks. Which peering setting should be enabled on the spoke-to-hub peering?

Question 1easymultiple choice
Full question →

Based on the exhibit, the spoke virtual network must use the hub's existing VPN gateway to reach on-premises networks. Which peering setting should be enabled on the spoke-to-hub 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

Distractor review

Allow forwarded traffic on the spoke peering.

Forwarded traffic is useful for transiting packets through an appliance, but it does not let the spoke use the hub's VPN gateway.

B

Best answer

Use remote gateways on the spoke peering.

To let the spoke use the hub's VPN gateway, the spoke-to-hub peering must be configured with Use remote gateways enabled. This tells Azure that the spoke should send gateway-bound traffic through the remote VNet's gateway rather than deploying its own gateway. It is the required setting in a hub-and-spoke design with shared VPN connectivity.

C

Distractor review

Delete the peering and create a virtual network gateway in the spoke.

A new gateway is unnecessary and defeats the shared hub design described in the exhibit.

D

Distractor review

Enable service endpoints on the spoke subnet.

Service endpoints do not provide access to on-premises networks and do not influence VPN gateway sharing.

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: Use remote gateways on the spoke peering. — In a hub-and-spoke design, a spoke can use the hub's VPN gateway only when the spoke peering has Use remote gateways enabled. The hub must already have gateway transit available, and the spoke consumes that gateway instead of creating its own. The exhibit states that the spoke currently has this setting disabled, so enabling it is the correct administrative action to satisfy the requirement for on-premises connectivity. Why others are wrong: Allow forwarded traffic supports transit through a virtual appliance, not shared VPN gateway use. Creating another gateway is unnecessary and inconsistent with the hub design. Service endpoints are for PaaS connectivity and have no role in on-premises routing through a VPN gateway.

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.