Azure Administrator AZ-104 · Implement and Manage Virtual Networking · hard
You have three Azure Virtual Networks in a hub-and-spoke topology: VNet-Hub (which contains an Azure VPN Gateway connected to on-premises), VNet-Spoke1, and VNet-Spoke2. You create VNet peerings between VNet-Hub and VNet-Spoke1, and between VNet-Hub and VNet-Spoke2. For VNet-Spoke1 VMs to use the VPN Gateway inside VNet-Hub to reach on-premises servers, which two peering settings must be enabled? (Select two.)
Published · Last updated · checked before publication — how we verify questions
Options
Answers: A. Enable Allow gateway transit on the VNet-Hub to VNet-Spoke1 peering; C. Enable Use remote gateways on the VNet-Spoke1 to VNet-Hub peering
In a hub-and-spoke design, a spoke can use the VPN gateway in the hub only when both sides of the peering cooperate. The hub side of the peering, VNet-Hub to VNet-Spoke1, must have Allow gateway transit enabled, which tells Azure that the hub is willing to let the peered network send traffic through its gateway. The spoke side of the peering, VNet-Spoke1 to VNet-Hub, must have Use remote gateways enabled, which tells the spoke to use the hub's gateway as its next hop for on-premises routes. Each setting lives on a different peering direction, and together they let the spoke learn on-premises routes. The most common trap is putting Use remote gateways on the hub side, or enabling it on a spoke that already has its own gateway, because the two settings are mutually exclusive on a VNet that has a gateway of its own. Remember that the gateway owner offers transit and the consumer uses the remote gateway.
Why the other options are wrong
- B. Enable Use remote gateways on the VNet-Hub to VNet-Spoke1 peering — Use remote gateways is a setting for the VNet that consumes a gateway, so it belongs on the spoke's peering. The hub owns the gateway and cannot use a remote gateway for itself, so enabling it on the hub-to-spoke peering does not provide spoke connectivity.
- D. Deploy a second dedicated VPN Gateway inside the VNet-Spoke1 network — Deploying a second VPN Gateway in the spoke is an unnecessary and costly alternative design. It would also prevent Use remote gateways from being enabled on that spoke, because a VNet with its own gateway cannot use a remote one. The question asks which peering settings enable sharing the hub gateway.
More Implement and Manage Virtual Networking questions
- An e-commerce platform runs on Azure VMs behind a load balancer. The architecture requires: (1) TLS/SSL termination at…
- A network engineer creates an Azure Virtual Network subnet with the IPv4 CIDR block 10.20.4.0/26. Accounting for the…
- You deploy 4 backend Linux VMs in a private subnet (with no public IPs on the VM NICs) behind an Internal Standard…
- In a hub-and-spoke Azure Virtual Network, a spoke subnet (10.1.1.0/24) must send all internet-bound traffic…
- Two virtual networks — VNet-App (10.1.0.0/16) and VNet-DB (10.2.0.0/16) — are connected via VNet peering. You deploy…
- Instead of maintaining brittle IP address lists in Network Security Group (NSG) rules (10.1.0.4, 10.1.0.7…
All Implement and Manage Virtual Networking questions and the topic overview →
Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.