Show answerHide answer
Correct answer: B a virtual network peering
Explanation
Summary:This question involves connecting virtual machines across different virtual networks (Vnet4 and Vnet5). The virtual network requirements typically mandate private, low-latency connectivity that traverses the Microsoft Azure backbone network without exposing traffic to the public internet. The solution must enable direct communication between resources in these VNets.
Correct Option:
B. a virtual network peering:
This is the correct solution. Virtual network peering seamlessly connects two Azure virtual networks, merging them for connectivity purposes. The key benefits are: It provides private, low-latency connectivity through the Azure backbone infrastructure.
Traffic between the peered VNets never crosses the public internet, meeting stringent security and performance requirements.
It is the native and primary method for enabling direct communication between resources in different VNets within the same region (or across regions with global peering).
Incorrect Option:
A. a private endpoint:
A private endpoint is used to provide private access to a specific PaaS service (like Azure Storage or SQL Database) by mapping it into a VNet's IP space. It is not used for general VM-to-VM connectivity across different VNets.
C. a private link service:
This is the service provider side of Azure Private Link. It allows you to offer your own service privately to other VNets. It is not used for connecting VNets together for general VM communication.
D. a routing table:
A routing table (User-Defined Route) is used to override Azure's default system routes to control traffic flow, for example, forcing it through a Network Virtual Appliance (NVA). It does not, by itself, create a network path between two VNets; it only defines the path for traffic that is already allowed. Peering must exist first.
E. a service endpoint:
A service endpoint secures a PaaS service's public endpoint by extending your VNet identity to it. It is used for outbound connectivity from a VNet to an Azure service, not for inbound or lateral connectivity between two VNets.
Reference:
Microsoft Learn: Virtual network peering

