microsoft AZ-104: Microsoft Azure Administrator · Practice questions

4. Implement and manage virtual networking Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

An NSG has a rule allowing TCP 3389 with priority 300 and a rule denying TCP 3389 with priority 200. What is the result?

  1. The NSG fails validation
  2. Both rules are ignored
  3. RDP is denied — Correct
  4. RDP is allowed because allow rules take precedence

Correct answer

RDP is denied

Explanation

Lower priority numbers are evaluated first; the deny at 200 wins.

Question 2

You need to connect an on-premises network to Azure over the internet with encryption. What should you deploy? (Choose TWO.)

  1. A local network gateway representing the on-premises device — Correct
  2. A private DNS zone
  3. Azure Bastion in the VNet
  4. A virtual network gateway of type VPN in a GatewaySubnet — Correct
  5. An ExpressRoute circuit

Correct answer

A local network gateway representing the on-premises device; A virtual network gateway of type VPN in a GatewaySubnet

Explanation

Site-to-site VPN uses a VPN gateway, a local network gateway and a connection.

Question 3

Which next hop type would you use to drop traffic to a specific address range?

  1. Internet
  2. None — Correct
  3. Virtual network gateway
  4. VirtualAppliance

Correct answer

None

Explanation

A next hop of None drops traffic.

Question 4

VMs in a private subnet without public IPs need outbound internet access with a static public IP. What should you use?

  1. Azure Bastion
  2. A private endpoint
  3. Azure NAT Gateway on the subnet — Correct
  4. A public IP on every VM, assigned dynamically at startup

Correct answer

Azure NAT Gateway on the subnet

Explanation

NAT Gateway provides scalable outbound SNAT with static IPs.

Question 5

VNet1 is peered with VNet2, and VNet2 is peered with VNet3. Can VMs in VNet1 reach VNet3 by default?

  1. Yes, if they use the same DNS server
  2. No, peering is not transitive — Correct
  3. Yes, peering is transitive by default across all connected VNets
  4. Yes, if the VNets are in the same subscription

Correct answer

No, peering is not transitive

Explanation

Peering is non-transitive; use a hub with a gateway or NVA, or peer directly.

Question 6

Which feature allows a subnet to reach a storage account over the Azure backbone using the storage account's public endpoint, restricted by network rules?

  1. A private DNS zone without any endpoint configured on the subnet
  2. Azure Bastion
  3. A service endpoint for Microsoft.Storage — Correct
  4. A VPN gateway

Correct answer

A service endpoint for Microsoft.Storage

Explanation

Service endpoints extend VNet identity to the service's public endpoint.

Question 7

A Standard Load Balancer must distribute HTTP traffic to VMs and remove unhealthy VMs automatically. What must you configure?

  1. An availability set and a DNS zone
  2. A backend pool, a health probe and a load-balancing rule — Correct
  3. Only a public IP address for each VM in the pool
  4. An NSG and a route table

Correct answer

A backend pool, a health probe and a load-balancing rule

Explanation

Load balancing requires frontend, backend pool, health probe and rules.

Question 8

Which tool shows the effective security rules applied to a VM's network interface?

  1. The Activity log of the subscription filtered by networking
  2. Cost Management
  3. Azure Advisor
  4. Effective security rules on the NIC (Network Watcher) — Correct

Correct answer

Effective security rules on the NIC (Network Watcher)

Explanation

Effective security rules combine all NSGs applied to a NIC.

Question 9

A NIC has both a public IP and a private IP. The VM must be reachable only from the corporate public IP on port 22. What should you do?

  1. Create a route table with next hop None for port 22
  2. Enable a ReadOnly lock
  3. An NSG rule allowing TCP 22 from that IP only — Correct
  4. Remove the private IP from the NIC

Correct answer

An NSG rule allowing TCP 22 from that IP only

Explanation

NSGs filter by source IP and port.

Question 10

A VM must be accessed by administrators over RDP without exposing port 3389 to the internet. Which two options meet the requirement? (Choose TWO.)

  1. Changing the VM size
  2. A ReadOnly lock on the VM
  3. Azure Bastion — Correct
  4. Just-in-time VM access through Defender for Cloud — Correct
  5. A public IP with an NSG rule allowing 3389 from any source

Correct answer

Azure Bastion; Just-in-time VM access through Defender for Cloud

Explanation

Bastion avoids public exposure; JIT opens ports only temporarily for approved IPs.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz