Azure Administrator AZ-104 · Implement and Manage Virtual Networking · medium

Instead of maintaining brittle IP address lists in Network Security Group (NSG) rules (10.1.0.4, 10.1.0.7, 10.1.0.19...), an administrator wants to group all web-tier VM network interfaces logically as WebServers and all database VM network interfaces as DbServers, and then write a single NSG rule: Allow Source: WebServers -> Destination: DbServers on TCP 1433. Which Azure networking feature enables this?

Published · Last updated · checked before publication — how we verify questions

Options

  • AMicrosoft Entra Administrative Units on user objects
  • BAzure Resource Groups tagged with CostCenter values
  • CAzure Availability Sets configured with 3 Fault Domains
  • DApplication Security Groups (ASGs) on the VM NICsCorrect answer

Answer: D. Application Security Groups (ASGs) on the VM NICs

Application Security Groups let you group virtual machine network interfaces by application role, such as WebServers and DbServers, and then use those groups as the source or destination in NSG rules. A single rule like Allow WebServers to DbServers on TCP 1433 replaces long lists of IP addresses, and the rule keeps working as VMs are added, removed or re-addressed, because membership is defined by assigning the NIC to the ASG. Key constraints to remember: a NIC can belong to multiple ASGs, and the ASGs used in one rule must exist in the same virtual network as each other and the NSG is associated with a subnet or NIC in that network. The most common trap is confusing ASGs with service tags, which represent Microsoft-managed IP prefix groups such as Internet or Storage, or with tags and resource groups, which are organizational metadata and have no effect on packet filtering.

Why the other options are wrong

  • A. Microsoft Entra Administrative Units on user objects — Administrative Units are a Microsoft Entra ID feature for delegating administrative permissions over subsets of users, groups or devices. They operate in the identity plane and have nothing to do with network interfaces or NSG packet filtering.
  • B. Azure Resource Groups tagged with CostCenter values — Resource groups are management containers, and tags such as CostCenter are metadata used for cost tracking and organization. NSG rules cannot reference a resource group or a tag as a source or destination, so they cannot group NICs for filtering.
  • C. Azure Availability Sets configured with 3 Fault Domains — Availability Sets spread VMs across fault domains and update domains to improve resilience against hardware failures and maintenance. They are a high-availability construct and cannot be referenced as a source or destination in an NSG rule.

All Implement and Manage Virtual Networking questions and the topic overview →

Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.