networkSingle choice
VNet1 is peered with VNet2. VNet2 is peered with VNet3. There are no gateways, network virtual appliances, or user-defined routes. Can a VM in VNet1 communicate with a VM in VNet3?
الـ VNet1 متوصلة بـ VNet2 بـ Peering، والـ VNet2 متوصلة بـ VNet3 بـ Peering. ومفيش Gateways ولا Network virtual appliances ولا User-defined routes. هل VM في VNet1 تقدر تتكلم مع VM في VNet3؟
- AYes, because peering is transitive.
- BNo, because peering is non-transitive. You must peer VNet1 with VNet3 or use a hub with routing.
- CYes, but only if all VNets are in the same region.
- DYes, if "Allow virtual network access" is enabled on all links.
Why: Virtual network peering is non-transitive: a peering connects only the two VNets in that link. VNet1 learns routes to VNet2 but not to VNet3. To connect VNet1 and VNet3 you either create a direct peering between them, or route through a hub that has an NVA/Azure Firewall (with UDRs and "Allow forwarded traffic") or a gateway with gateway transit. Region and the "Allow virtual network access" setting don't change transitivity.
Exam skills it covers
- Create and configure virtual network peering