CertLumen

Microsoft Azure Administrator (AZ-104) · Section 4 · 18% of the exam

Evaluate effective security rules in NSGs

One of the objectives of the Microsoft Azure Administrator (AZ-104) exam, in the section “Implement and manage virtual networking”. Here is what it covers, the points to remember and a question to try.

What it covers

Azure decides where a packet goes (routes) and whether it may pass (NSG rules). This lesson covers system routes, user-defined routes and next hop types, NSG and application security group design, how subnet and NIC NSGs combine, effective security rules, and the Network Watcher tools that find the cause of a connectivity failure.

Points to remember

  • Route choice: longest prefix match first; then user-defined route over BGP over system route.
  • UDR next hop types: Virtual network, Internet, Virtual appliance, Virtual network gateway, None. Peering and service endpoint hops are system-only.
  • An NVA needs IP forwarding on its NIC (Azure) and in the guest OS, and should sit in its own subnet.
  • NSG priority is 100 to 4096; lowest number wins; default rules are 65000, 65001 and 65500.
  • NSGs are stateful; deleting an allow rule does not cut existing flows.

Try a question

An administrator needs to see the combined security rules that actually apply to a running VM, including rules from the subnet NSG, the NIC NSG and the default rules. Where should the administrator look?

  1. AEffective security rules for the VM's network interface
  2. BThe inbound security rules page of the NSG associated with the subnet
  3. CThe Azure Activity log of the resource group that contains the VM
  4. DAzure Policy compliance results for the subscription
Show the answer

A. Effective security rules for a NIC show the subnet NSG rules, NIC NSG rules and defaults together, which makes conflicts easy to spot. In the portal open the VM or NIC, then Help > Effective security rules. In the CLI use az network nic list-effective-nsg. The VM must be running.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Routes, network security groups and connectivity troubleshooting teaches this objective (about 50 minutes), and 18 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 81 objectives · Next objective →