az-104 Practice Question 1736

Exam: az-104
Domain: Implement and manage virtual networking
Topic: Configure and manage virtual networks in Azure
Difficulty: medium
A company has two VNets in different regions that need to communicate with each other without exposing them to the internet. They also want to minimize the cost of inter-VNet traffic. What is the best approach, and how does it work?

Answer Options

A
Use a VNet Gateway with a transit VNet
B
Set up VNet peering with a peer-to-peer connection
C
Deploy a VNet Gateway with a Point-to-Site connection
D
Create a VNet peering with a VNet Gateway

Correct Answer

B: Set up VNet peering with a peer-to-peer connection

Explanation

The best approach is to use VNet peering with a peer-to-peer connection. This allows the two VNets to communicate directly over a private network, reducing costs and improving performance compared to using a transit VNet. Other options like using a VNet Gateway or a transit VNet would increase costs and complexity. VNet peering with a peer-to-peer connection works by establishing a direct connection between the VNets, bypassing the internet and any additional VNet infrastructure.