If a Network Security Group (NSG) is applied to both a Subnet and a Network Interface (NIC), which rule takes precedence for INBOUND traffic?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: The Subnet NSG is evaluated first, then the NIC NSG

For inbound traffic, Azure first evaluates the subnet NSG. If allowed, it then evaluates the NIC NSG....

๐Ÿ“‹Part of Microsoft Certified: Azure Administrator Associate (AZ-104) ยท Azure Certification Practice
Real Exam ScenarioNetwork Security Groups (NSG)

If a Network Security Group (NSG) is applied to both a Subnet and a Network Interface (NIC), which rule takes precedence for INBOUND traffic?

โœ“ Correct Answer & ExplanationNetwork Security Groups (NSG)

Correct Answer

The Subnet NSG is evaluated first, then the NIC NSG

Why This Answer Is Correct

For inbound traffic, Azure first evaluates the subnet NSG. If allowed, it then evaluates the NIC NSG.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Network Security Groups (NSG) โ€” a core concept tested in Microsoft Certified: Azure Administrator Associate (AZ-104). Understanding Network Security Groups (NSG) is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.