Courseiva
Secure networking →easyMultiple Choice

AZ-500 Secure networking Practice Question

A company has established a site-to-site VPN connection between its on-premises network and an Azure virtual network using an Azure VPN gateway. The security team wants to confirm that all traffic crossing the VPN tunnel is encrypted. Which protocol does the Azure VPN gateway use to encrypt the data?

⚠ Common exam trap

A common mix-up: candidates confuse SSL/TLS-based VPNs (like OpenVPN) with IPsec-based site-to-site VPNs, but Azure VPN gateways exclusively use IPsec for site-to-site connections, not SSL/TLS.

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

✓

IPSec (Internet Protocol Security)

Azure VPN gateways use IPsec (Internet Protocol Security) in tunnel mode to encrypt all data traversing the site-to-site VPN tunnel. IPsec provides confidentiality, integrity, and authentication at the IP layer, ensuring that all traffic between the on-premises network and Azure virtual network is encrypted and secure.

Answer analysis

Option-by-option breakdown

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

  • ✓

    IPSec (Internet Protocol Security)

    Why this is correct

    Azure site-to-site VPN tunnels rely on IPSec in tunnel mode to encrypt and authenticate every packet crossing the connection. IPSec uses the Internet Key Exchange (IKE) protocol to negotiate security associations, then applies Encapsulating Security Payload (ESP) for confidentiality and integrity. Because IPSec operates at the network layer (Layer 3), it transparently protects all IP payloads between the on-premises gateway and the Azure VPN gateway. This makes IPSec the mandatory protocol for Azure VPN site-to-site configurations, not SSL/TLS or other application-layer protocols.

  • ✗

    SSL (Secure Sockets Layer) / TLS (Transport Layer Security)

    Why it's wrong here

    SSL/TLS is a transport-layer security protocol that protects application-specific data such as HTTP, SMTP, or FTP by establishing encrypted channels between clients and servers. However, it does not encapsulate entire IP packets or route traffic between distinct networks, which is what a site-to-site VPN requires. Azure's VPN gateway does not support SSL/TLS as a tunnel protocol for site-to-site connections; instead, SSL/TLS appears in point-to-site solutions like Microsoft Entra ID App Proxy or HTTPS-based tunneling, but not for the inter-network gateway tunnels described here. Thus, SSL/TLS is the wrong protocol for encrypting a full site-to-site IP payload stream.

  • ✗

    SSH (Secure Shell)

    Why it's wrong here

    SSH is an authenticated and encrypted application-layer protocol designed for remote shell access, command execution, and secure file copy using SFTP/SCP. It encrypts just the data within an SSH session, not arbitrary IP traffic flowing between two network gateways. SSH tunnels (port forwarding) can forward specific TCP ports, but they cannot dynamically carry the full routed IP traffic of an entire site-to-site VPN footprint. Azure VPN gateways do not use SSH for tunnel encapsulation, making it an incorrect choice for this scenario.

  • ✗

    PGP (Pretty Good Privacy)

    Why it's wrong here

    PGP (Pretty Good Privacy) is an asymmetric cryptographic system used for encrypting and digitally signing data at rest, typically email messages and files. It applies public-key cryptography to individual data objects, not to continuous network packet streams. PGP has no mechanism for encapsulating IP packets, negotiating dynamic security associations, or supporting gateway-to-gateway routing that a site-to-site VPN requires. Consequently, PGP is fundamentally unsuited for encrypting network-level traffic between on-premises and Azure networks.

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 617 original AZ-500 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-500 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-500 exam.