Question 190
For a new inbound TCP flow, the SAME Azure NSG has a matching custom Deny rule at priority 100 and a matching Allow rule at priority 200. There is no earlier admin-rule decision. What is the NSG outcome?
Explanation
Correct Answer
NSG custom rules are processed from lower numeric priorities to higher numbers and stop on the first match. The Deny at 100 therefore terminates the inbound decision before the rule at 200 can permit traffic.
Incorrect Answers
Application security groups can be used as source or destination selectors within NSG rules. They do not grant immunity from an explicit Deny rule that matches the flow.
Rule creation time is not the documented NSG precedence mechanism. Azure uses the rule priority and packet five-tuple; this scenario specifies a unique earlier Deny.
Allow and Deny are not resolved by a blanket allow-wins preference. An Allow at a numerically higher priority value is never reached once the earlier Deny matches the same packet.



Implementing End-to-End Security Controls for Cloud and AI Workloads (SC-500) Practice Tests