Skip to Content

Microsoft AZ-104: Can You Associate Azure Route Table to Virtual Network, Subnet, or Network Interface?

Learn which Azure resources you can associate a route table with. Discover if a route table can be linked to a virtual network, subnet, or network interface.

Table of Contents

Question

You have an Azure subscription that contains the resources shown in the following table.

Name Location Description
VNet1 East US Virtual network
Subnet1 East US Subnet on VNet1
NIC1 East US Network interface

You create a route table named RT1 in the East US Azure region.

To which resources can you associate RT1?

A. VNet1 only
B. Subnet1 only
C. VNet1 and NIC1 only
D. Subnet1 and NIC1 only
E. VNet1, Subnet1, and NIC1

Answer

B. Subnet1 only

Explanation

In Azure, you can associate a route table to a subnet, but not directly to a virtual network or network interface.

When you create a route table, you define one or more routes that control how traffic is directed within a virtual network. To apply these routes, you need to associate the route table with one or more subnets.

Once associated with a subnet, the routes in the table are applied to all network interfaces (and thus, the VMs) within that subnet. However, you cannot directly associate a route table to a virtual network as a whole or to an individual network interface.

So in the given scenario, the only valid answer is B – you can associate route table RT1 with Subnet1, but not with VNet1 or NIC1.

The key points to remember are:

  • Route tables are associated at the subnet level, not the virtual network or network interface level
  • Routes in a route table apply to all VMs/network interfaces within the associated subnet(s)
  • A subnet can only be associated with a single route table at a time, but a route table can be associated with multiple subnets

Microsoft AZ-104 certification exam assessment practice question and answer (Q&A) dump including multiple choice questions (MCQ) and objective type questions, with detail explanation and reference available free, helpful to pass the Microsoft AZ-104 exam and earn Microsoft AZ-104 certification.