Practice Test

True or False:VM Network settings can be configured using Azure portal, Azure CLI, Azure PowerShell, or Resource Manager templates.

  • True
  • False

Answer: True

Explanation: All these options, Azure portal, Azure CLI, Azure PowerShell, or Resource Manager templates, can be used to configure virtual machine network settings.

What is the purpose of Network Security Group (NSG) in Azure virtual machine configuration?

  • a. To manage storage
  • b. To manage a log activity
  • c. To manage network traffic
  • d. To manage resources

Answer: c. To manage network traffic

Explanation: NSG controls inbound and outbound network traffic for Azure resources in a virtual network.

True or False: In an Azure virtual machine, you can add multiple IP addresses to a network interface.

  • True
  • False

Answer: True

Explanation: A network interface card (NIC) can have multiple static or dynamic public and private IP addresses.

Which of the following can be used to connect a virtual network to on-premises networks using a VPN Gateway?

  • a. VA (Virtual Assistant)
  • b. VN (Virtual Network)
  • c. VNet (Virtual Network)
  • d. NONE of these

Answer: c. VNet (Virtual Network)

Explanation: VNet enables Azure resources to securely communicate with each other and with on-premises networks.

True or False: VM network settings can’t be changed after they are deployed.

  • True
  • False

Answer: False

Explanation: VM network settings can be changed after they are deployed.

Which of the following can be associated with a modern network interface card?

  • a. Public IP
  • b. Mi0
  • c. Ti0
  • d. Li0

Answer: a. Public IP

Explanation: A public IP address can be associated with a modern network interface card.

True or False: You can’t assign DNS servers on a per-VM basis.

  • True
  • False

Answer: False

Explanation: You can assign DNS servers on a per-VM or virtual network basis.

Which of the following can be associated with the subnet to which a NIC is connected?

  • a. Azure firewall
  • b. NSG
  • c. Application Gateway
  • d. ALL of these

Answer: d. ALL of these

Explanation: Azure firewall, NSG, and Application Gateway can all be associated with the subnet to which a NIC is connected.

True or False: The NSG is optional for VM network settings in Azure.

  • True
  • False

Answer: True

Explanation: While NSG is recommended for improving security, it’s not necessarily required in VM network configuration in Azure.

Which of the following are true about private IP addresses?

  • a. They are optional
  • b. They are available to the public
  • c. They are required
  • d. They can be assigned only after the VM is created

Answer: c. They are required

Explanation: A private IP address, static or dynamic, gets assigned to the primary network interface card (NIC) at the time it’s created, providing the interface to communicate with other Azure resources and systems outside Azure.

True or False: You can assign a secondary IP to an existing network interface.

  • True
  • False

Answer: True

Explanation: You can assign secondary IPs to existing network interfaces in Azure.

Which of the following VM types doesn’t support Accelerated Networking?

  • a. Standard_D2s_v3
  • b. Basic_A0
  • c. BOTH
  • d. NEITHER

Answer: b. Basic_A0

Explanation: Accelerated Networking is not supported on the Basic_A Series VMs.

True or False: Changing a VM’s size can affect its networking capabilities.

  • True
  • False

Answer: True

Explanation: Changing the VM’s size may change networking capabilities like the number of IP addresses you can assign or the support for Accelerated Networking.

What does peering in Azure refer to?

  • a. Connecting multiple VNets
  • b. Connecting Azure and AWS
  • c. Connecting Azure and GCP
  • d. Connecting Azure and Oracle Cloud

Answer: a. Connecting multiple VNets

Explanation: Peering refers to the ability to connect multiple VNets in Azure for communication.

True or False: You can only configure a single NSG per NIC.

  • True
  • False

Answer: False

Explanation: You can actually apply one NSG to the NIC, and another to the subnet the NIC is in.

Interview Questions

What is the purpose of a Virtual Network in Azure?

A Virtual Network in Azure represents your own network in the cloud. It is a logical isolation of the Azure cloud dedicated to your subscription.

How do you create a virtual network in Azure?

You can create a virtual network in Azure via Azure portal, PowerShell, Azure CLI, or ARM templates.

What is a subnet in Azure VM networking context?

A subnet in Azure is a range of IP addresses in the VNet. You can divide a VNet into multiple subnets for organization and security.

How do you configure Azure VM’s DNS settings?

Azure VM’s DNS settings can be configured in the Azure portal under the “Networking” settings for the VM. The VM can be configured to use a custom DNS server or Azure-provided DNS.

How can you secure a Virtual Network in Azure?

You can secure a Virtual Network in Azure using Network Security Group (NSG) which contains security rules that allow or deny inbound network traffic to your Azure resources.

Can you modify the size of an existing subnet in Azure?

As long as the new size covers all existing allocated IP addresses, Azure allows the modification of the size of an existing subnet.

How to allow outbound internet connectivity for VMs in Azure?

By default, all Azure VMs have outbound internet connectivity. This does not require any specific configuration.

What is Azure Load Balancer?

Azure Load Balancer is a network service offered by Azure for balancing inbound and outbound connections to applications or service endpoints in a Virtual Network.

What is a Network Interface Controller (NIC) in the context of Azure VMs?

A Network Interface Controller is a virtual network device that Azure VMs use to communicate with the internet, Azure, and on-premises resources.

What is an IP address prefix in the Azure subnet?

The IP address prefix is the range of IP addresses that exist within a subnet.

How do you assign a static IP to a VM in Azure?

You can assign a static IP to a VM in Azure by editing the IP settings of the VM to use a static IP address instead of dynamic.

What is the purpose of the Network Security Group in Azure?

Network Security Group (NSG) provides a list of allowed and denied network traffic for VMs and other resources in Azure.

Can you assign NSG at the subnet level?

Yes, NSGs can be associated with either individual VMs or subnets. When associated with a subnet, the NSG applies to all resources connected to the subnet.

What is Virtual Network Peering in Azure?

Virtual Network Peering in Azure is the process that connects two Azure virtual networks.

How do you create a VM with a specific subnet and NIC using Azure PowerShell?

You can use the ‘New-AzVM’ cmdlet in Azure PowerShell to specify the NIC and subnet when creating a new VM.

Leave a Reply

Your email address will not be published. Required fields are marked *