An administrator configures a Network Security Group (NSG) with the following inbound security rules:
| Rule Name | Priority | Destination | Port | Action |
|---|---|---|---|---|
| Rule1 | 150 | ASG-Web | 80 | Deny |
| Rule2 | 250 | ASG-Web | 80 | Allow |
Which two statements correctly describe how inbound HTTP traffic (port 80) to the virtual machines associated with ASG-Web is processed? (Select two.)
- Inbound HTTP traffic is denied because the rule with the lower priority number is processed first.Answer
- The rule allowing HTTP traffic is not applied because a matching rule with a higher precedence has already processed the traffic.Answer
- CInbound HTTP traffic is allowed because the rule with the higher priority number has precedence.
- DThe rule with priority 250 is evaluated before the rule with priority 150 because rules are evaluated in descending order.
Answer
Inbound HTTP traffic is denied because the rule with the lower priority number (Rule1, priority 150) is processed first, and the rule with the higher priority number (Rule2, priority 250) is not applied because processing stops after the first match.
In Azure Network Security Groups, rules are processed in ascending order of their priority numbers, meaning a lower priority number has higher precedence. Since the rule denying HTTP traffic has a priority of 150, it is evaluated and applied before the rule allowing it (priority 250). Once a match is found, further rule evaluation stops, which prevents the second rule from being applied.
Step-by-Step Solution
Key Concept
NSG rule priority evaluation order