Courseiva
Implement and Manage Virtual NetworkingeasyMultiple ChoiceObjective-mapped

AZ-104 Implement and Manage Virtual Networking Practice Question

A subnet NSG contains a deny RDP rule from Any at priority 200. The administrator must allow RDP from 10.8.0.0/24 to the virtual machines in that subnet. What should the administrator do?

⚠ Common exam trap

Test-takers frequently confuse priority numbers, thinking a higher number means higher priority, and incorrectly choose option A, or they mistakenly believe route tables can override NSG rules, leading them to option C.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Create an allow rule with a lower priority number than 200.

B is correct because NSG rules are evaluated in priority order, with lower numbers having higher priority. The existing deny rule at priority 200 blocks all RDP traffic. To allow RDP from 10.8.0.0/24, a new allow rule must be created with a priority lower than 200 (e.g., 150) so it is evaluated before the deny rule, permitting the specific traffic.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create an allow rule with a higher priority number than 200.

    Why it's wrong here

    Setting an allow rule with a priority number greater than 200, such as 300, places it after the deny rule in the evaluation sequence. NSG processing stops at the first matching rule, so the deny rule at priority 200 matches RDP traffic from any source and blocks it before the later allow rule is ever examined. Because the deny rule is already in place at a lower numeric value, a higher-numbered allow rule can never override it. The only way to permit RDP is to insert an allow rule with a priority lower than 200.

    When this WOULD be correct

    This option would be correct if the question stated that the existing rule was an allow rule (not a deny rule) and the goal was to override it with a more specific deny rule. For example, 'A subnet NSG contains an allow RDP rule from Any at priority 200. The administrator must block RDP from 10.8.0.0/24. What should the administrator do?'

  • Create an allow rule with a lower priority number than 200.

    Why this is correct

    Azure NSGs process rules in ascending priority order, meaning the lowest numeric priority value is evaluated first and the first rule that matches traffic determines the outcome. To permit RDP TCP/3389 despite the deny rule at priority 200, add an allow rule with a lower number, such as 100, so it is matched before the deny. This allow rule can scope source IPs, service tags, or prefixes as needed, but it must have a numeric priority less than 200 to take precedence. If the allow rule has any higher number, it will never be reached because the deny rule already terminates processing.

  • Add a route table entry for TCP 3389.

    Why it's wrong here

    Route tables (user-defined routes) determine the next hop for traffic based on destination IP prefixes, not the allowed ports or protocols. They operate at layer 3 and do not inspect TCP/UDP port 3389, so adding an entry for TCP 3389 is meaningless in an NSG context. A route table entry cannot override NSG deny rules, and NSGs are evaluated after routing decisions are made. Traffic must pass the NSG rule process regardless of the route, so this option does not address the RDP block at all.

    When this WOULD be correct

    In a scenario where traffic to a subnet is being routed through a network virtual appliance (NVA) and you need to ensure RDP traffic from 10.8.0.0/24 reaches the NVA, adding a route table entry for TCP 3389 with the next hop as the NVA would be correct.

  • Disable the default security rules on the NSG.

    Why it's wrong here

    Disabling the default security rules, such as AllowVnetInBound or DenyAllInBound, has no effect on the custom deny rule at priority 200. Default rules are built-in and always evaluated last, after all custom rules, meaning they are not responsible for blocking RDP in this scenario. Even if you disabled every default rule, the deny at priority 200 would still match and block the traffic. Default rules are a safety net for base connectivity and cannot preempt a higher-priority custom rule.

    When this WOULD be correct

    In a scenario where default rules are blocking legitimate traffic that cannot be overridden by custom rules (e.g., a default deny rule with no higher priority), and the requirement is to permit all inbound traffic to the subnet, disabling default rules might be considered. However, this is rare and usually not recommended.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.

Create an allow rule with a lower priority number than 200.Correct answer

Why this is correct

Azure NSGs process rules in ascending priority order, meaning the lowest numeric priority value is evaluated first and the first rule that matches traffic determines the outcome. To permit RDP TCP/3389 despite the deny rule at priority 200, add an allow rule with a lower number, such as 100, so it is matched before the deny. This allow rule can scope source IPs, service tags, or prefixes as needed, but it must have a numeric priority less than 200 to take precedence. If the allow rule has any higher number, it will never be reached because the deny rule already terminates processing.

Create an allow rule with a higher priority number than 200.Wrong answer — click to see why

Why this is wrong here

In Azure NSGs, rules are evaluated in priority order, with lower numbers having higher priority. A priority of 200 is higher than 200, so an allow rule with a higher priority number (e.g., 300) would be evaluated after the deny rule and would never be applied because the deny rule matches first.

★ When this WOULD be the correct answer

This option would be correct if the question stated that the existing rule was an allow rule (not a deny rule) and the goal was to override it with a more specific deny rule. For example, 'A subnet NSG contains an allow RDP rule from Any at priority 200. The administrator must block RDP from 10.8.0.0/24. What should the administrator do?'

Why candidates choose this

Candidates may confuse the priority numbering system, thinking that a higher number means higher priority, or they may assume that adding a rule with a higher number will override the existing rule without understanding that lower numbers take precedence.

Add a route table entry for TCP 3389.Wrong answer — click to see why

Why this is wrong here

Route tables control traffic routing between subnets, not security filtering. NSG rules are evaluated independently; adding a route entry for TCP 3389 does not override the deny rule in the NSG.

★ When this WOULD be the correct answer

In a scenario where traffic to a subnet is being routed through a network virtual appliance (NVA) and you need to ensure RDP traffic from 10.8.0.0/24 reaches the NVA, adding a route table entry for TCP 3389 with the next hop as the NVA would be correct.

Why candidates choose this

Candidates may confuse routing (route tables) with security filtering (NSGs), thinking that a route entry can bypass NSG rules, or they may believe that adding a route for a specific port can allow traffic.

Disable the default security rules on the NSG.Wrong answer — click to see why

Why this is wrong here

Disabling default security rules would remove essential protections like allowing outbound traffic and denying all inbound traffic by default, potentially exposing the subnet to security risks. It does not specifically allow RDP from 10.8.0.0/24.

★ When this WOULD be the correct answer

In a scenario where default rules are blocking legitimate traffic that cannot be overridden by custom rules (e.g., a default deny rule with no higher priority), and the requirement is to permit all inbound traffic to the subnet, disabling default rules might be considered. However, this is rare and usually not recommended.

Why candidates choose this

Candidates may think that disabling default rules is a quick way to remove restrictions, not realizing that NSG rules are evaluated by priority and that a specific allow rule with lower priority number is the proper method to override a deny rule.

Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

About these practice questions

One of 1,049 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.