Your Azure virtual machines are assigned to availability zone 1 and 2. Your Azure NAT gateway is assigned to zone 1. Can both virtual machines use the NAT gateway for outgoing traffic?
Experience Level: Junior
Tags: Azure Cloud
Answer
Yes. Even if NAT gateway is in different availability zone, VMs from other zones are able to use the NAT gateway if they are in the same VNET (and region).
Related Azure Cloud job interview questions
You use Azure storage account that is accessed from your virtual network using service endpoint. What steps do you need to do to support disaster recovery?
Azure CloudAzure StorageAzure Virtual Networks JuniorYou use Azure Storage with GRS settings. What is the target location where data is replicated to?
Azure CloudAzure Storage JuniorYou have a network security group configured on your VNET. It is blocking target service tag Storage. You create a private endpoint to Azure Storage Account. Can VNET resources access the storage account?
Azure CloudAzure Network Security GroupsAzure Private Link Service JuniorYou are configuring your Azure virtual network gateway to authenticate with Azure AD. What protocol and what VPN client do you need?
Azure CloudAzure virtual network gateway JuniorYou want to connect from your Azure virtual machine (VM) to Azure CosmosDB. Your virtual network is secured by network security group (NSG) that filters outbound traffic. What do you need to configure to allow traffic from your VM to CosmosDB?
Azure CloudAzure Cosmos DBAzure Network Security GroupsAzure Virtual Machines Junior