Courseiva
Implement and Manage Virtual NetworkingmediumMultiple ChoiceObjective-mapped

AZ-104 Implement and Manage Virtual Networking Practice Question

An administrator is deploying a site-to-site VPN gateway in the Azure portal. The deployment fails validation because the gateway does not have a public-facing address to terminate the tunnel. What must be created and associated with the VPN gateway?

⚠ Common exam trap

Watch out — candidates often confuse the public IP requirement with other networking components like load balancers or NAT gateways, mistakenly thinking those can provide the necessary public endpoint for VPN tunnel termination.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

A public IP address resource associated with the VPN gateway.

A site-to-site VPN gateway in Azure requires a public IP address to terminate the IPSec tunnel from the on-premises device. The public IP address resource must be created and associated with the VPN gateway during deployment; without it, the gateway has no routable endpoint for the tunnel, causing validation to fail.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • A load balancer frontend IP configuration in front of the gateway subnet.

    Why it's wrong here

    A load balancer frontend IP configuration distributes inbound traffic across a backend pool of virtual machines or other resources; an Azure VPN gateway is a single managed gateway instance that terminates IPsec tunnels directly. You cannot place a load balancer in front of GatewaySubnet because the VPN gateway must have its own public IP address resource assigned directly to it, and there is no backend pool of gateway instances to load-balance traffic across. Using a load balancer would create an additional, unsupported network hop instead of satisfying the gateway's required public endpoint.

    When this WOULD be correct

    This option would be correct in a scenario where you need to distribute inbound traffic across multiple VPN gateways or provide high availability for VPN connections, and the question asks for a way to expose a single public IP for multiple gateways using a load balancer.

  • A public IP address resource associated with the VPN gateway.

    Why this is correct

    Azure VPN gateways require a public IP address resource so the on-premises VPN device can establish the tunnel to a known public endpoint. The gateway is deployed in GatewaySubnet, and the public IP is attached as part of the gateway configuration. Without that resource, the VPN gateway cannot be created successfully.

  • A NAT gateway attached to GatewaySubnet.

    Why it's wrong here

    A NAT gateway attached to GatewaySubnet performs source network address translation for outbound traffic, not inbound tunnel termination. It does not provide a routable public endpoint that an on-premises VPN device can use to establish an IPsec/IKE session. In fact, Azure does not support associating a NAT gateway with a GatewaySubnet because the VPN gateway must bind directly to a public IP address it owns, not to a NATed translation.

    When this WOULD be correct

    In a scenario where you need to provide outbound internet access for resources in a subnet (e.g., to access external APIs) while preventing inbound connections, a NAT gateway attached to the subnet would be the correct answer.

  • A private endpoint for the virtual network gateway resource.

    Why it's wrong here

    A private endpoint is designed to give an Azure PaaS resource a private IP address inside a virtual network so clients can connect over the Microsoft backbone without going over the public internet. The Microsoft.Network/virtualNetworkGateways resource type does not support private endpoint configuration, and even if it did, a private endpoint would not expose a public IP address for the on-premises VPN device to target. Site-to-site VPN tunnels require the gateway to terminate the tunnel at a publicly routable address, which a private endpoint cannot provide.

    When this WOULD be correct

    In a scenario where an organization requires a private, secure connection to an Azure VPN gateway without exposing it to the public internet, a private endpoint could be used to access the VPN gateway privately from on-premises via ExpressRoute or another VPN.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.

A public IP address resource associated with the VPN gateway.Correct answer

Why this is correct

Azure VPN gateways require a public IP address resource so the on-premises VPN device can establish the tunnel to a known public endpoint. The gateway is deployed in GatewaySubnet, and the public IP is attached as part of the gateway configuration. Without that resource, the VPN gateway cannot be created successfully.

A load balancer frontend IP configuration in front of the gateway subnet.Wrong answer — click to see why

Why this is wrong here

A load balancer frontend IP configuration does not provide a public IP address that can be directly associated with a VPN gateway. The VPN gateway requires a dedicated public IP address resource to terminate the tunnel, not a load balancer frontend.

★ When this WOULD be the correct answer

This option would be correct in a scenario where you need to distribute inbound traffic across multiple VPN gateways or provide high availability for VPN connections, and the question asks for a way to expose a single public IP for multiple gateways using a load balancer.

Why candidates choose this

Candidates may confuse the need for a public-facing endpoint with load balancing, thinking that a load balancer frontend IP can serve as the public address for the VPN gateway, not realizing that the gateway itself must have its own public IP resource.

A NAT gateway attached to GatewaySubnet.Wrong answer — click to see why

Why this is wrong here

A NAT gateway provides outbound internet connectivity for virtual machines, not a public-facing IP for terminating VPN tunnels. The VPN gateway requires a public IP address resource directly associated with it, not a NAT gateway.

★ When this WOULD be the correct answer

In a scenario where you need to provide outbound internet access for resources in a subnet (e.g., to access external APIs) while preventing inbound connections, a NAT gateway attached to the subnet would be the correct answer.

Why candidates choose this

Candidates may confuse NAT gateway with public IP addressing, thinking it provides a public endpoint for the VPN gateway, or they may recall that NAT is used for internet connectivity in Azure.

A private endpoint for the virtual network gateway resource.Wrong answer — click to see why

Why this is wrong here

A private endpoint is used to securely connect to Azure PaaS services over a private IP address within a virtual network, not to provide a public-facing address for terminating a VPN tunnel.

★ When this WOULD be the correct answer

In a scenario where an organization requires a private, secure connection to an Azure VPN gateway without exposing it to the public internet, a private endpoint could be used to access the VPN gateway privately from on-premises via ExpressRoute or another VPN.

Why candidates choose this

Candidates may confuse private endpoints with public IP addresses, thinking that a private endpoint can serve as a termination point for a VPN tunnel, or they may misunderstand the role of private endpoints in providing connectivity.

Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Quick reference

VPN Protocol Comparison

ProtocolPortEncryptionAuthenticationUse Case
IKEv2 / IPsecUDP 500 / 4500AES-256Certificates / PSKSite-to-site & remote access
SSL / TLS VPNTCP 443TLS 1.3Certificates / MFAClientless remote access
L2TP / IPsecUDP 1701AES (IPsec)PSK / CertificatesLegacy remote access
WireGuardUDP 51820ChaCha20Public keysModern high-performance VPN
PPTPTCP 1723MPPE (weak)MS-CHAPv2Legacy — avoid in production

PPTP is considered insecure. IKEv2/IPsec and SSL VPN are the current recommended options.

About these practice questions

One of 1,049 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.