Courseiva
Implement and Manage Virtual NetworkingeasyMultiple ChoiceObjective-mapped

AZ-104 Implement and Manage Virtual Networking Practice Question

A subnet has an NSG with a custom inbound deny-all rule at priority 200. You need to allow HTTPS traffic to a VM in that subnet from any source. Which action should you take?

⚠ Common exam trap

A common mix-up: candidates think higher priority numbers (like 300) are evaluated first, or they confuse NSG rule priority with route table priority, leading them to choose a higher priority number or a route table entry instead of a lower priority allow rule.

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 inbound allow rule for TCP 443 with priority 100.

NSG rules are evaluated in priority order, with lower numbers evaluated first. The existing deny-all rule at priority 200 blocks all inbound traffic. To allow HTTPS (TCP 443) before the deny rule is evaluated, you must create an allow rule with a priority lower than 200, such as priority 100. This ensures the allow rule is processed first, permitting the 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 inbound allow rule for TCP 443 with priority 300.

    Why it's wrong here

    A priority of 300 places this allow rule below the existing deny-all at priority 200 in the evaluation order. When an inbound HTTPS packet arrives, the NSG first checks rules in priority sequence; the deny-all matches all inbound traffic, including port 443, and denies it, so rule evaluation stops before the allow rule is ever reached. Thus the allow rule is ineffective — it must have a numerically lower priority value than the deny rule to take precedence.

    When this WOULD be correct

    This option would be correct if the existing deny-all rule had a priority higher than 300 (e.g., 400) or if the question asked for a rule to allow traffic with a lower priority than the deny rule, but the deny rule was at a higher priority number (e.g., 100).

  • Create an inbound allow rule for TCP 443 with priority 100.

    Why this is correct

    Azure Network Security Group rules are evaluated in ascending order of priority, where a smaller numeric value means higher priority. This rule at priority 100 is evaluated before the deny-all at priority 200, and because it specifically matches TCP port 443 inbound, it will allow HTTPS traffic; once a matching rule is found, evaluation stops. This is the standard way to create an exception above a broad deny-all rule.

  • Change the deny-all rule to outbound instead of inbound.

    Why it's wrong here

    Moving the custom deny-all rule to the outbound direction does nothing to permit inbound HTTPS, because outbound rules apply only to traffic leaving the subnet. Inbound traffic from the internet would then fall to the default inbound rule DenyAllInBound, which is still a deny, so the connection remains blocked. Additionally, this change removes the deliberate restriction on inbound traffic, exposing the subnet to other unwanted inbound connections and potentially violating your security baseline.

    When this WOULD be correct

    If the question were about allowing outbound HTTPS traffic from the subnet while blocking inbound, changing a deny-all inbound rule to outbound would be incorrect; but if the NSG had an outbound deny-all rule blocking outbound HTTPS, you would need to add an outbound allow rule instead.

  • Add a route table entry for port 443 traffic to the VM subnet.

    Why it's wrong here

    Route tables, or user-defined routes, control the next hop for packets based on their destination IP address prefix — they operate at Layer 3 and do not filter based on TCP/UDP ports. Adding a route for port 443 is not a valid construct, and even if it were interpreted as a route for the VM's subnet, it would not override NSG allow or deny decisions. An NSG deny rule is a packet filter that blocks traffic at the network interface or subnet level, so any inbound packet is dropped before routing logic can direct it elsewhere.

    When this WOULD be correct

    You need to force HTTPS traffic from the internet to a specific VM through a network virtual appliance (NVA) for inspection. A route table entry with a next hop of the NVA's IP address would redirect traffic accordingly.

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 inbound allow rule for TCP 443 with priority 100.Correct answer

Why this is correct

Azure Network Security Group rules are evaluated in ascending order of priority, where a smaller numeric value means higher priority. This rule at priority 100 is evaluated before the deny-all at priority 200, and because it specifically matches TCP port 443 inbound, it will allow HTTPS traffic; once a matching rule is found, evaluation stops. This is the standard way to create an exception above a broad deny-all rule.

Create an inbound allow rule for TCP 443 with priority 300.Wrong answer — click to see why

Why this is wrong here

In Azure, NSG rules are evaluated in priority order, with lower numbers having higher priority. A rule at priority 300 is evaluated after a rule at priority 200, so the deny-all rule would block HTTPS traffic before the allow rule is reached.

★ When this WOULD be the correct answer

This option would be correct if the existing deny-all rule had a priority higher than 300 (e.g., 400) or if the question asked for a rule to allow traffic with a lower priority than the deny rule, but the deny rule was at a higher priority number (e.g., 100).

Why candidates choose this

Candidates may mistakenly think that higher priority numbers mean higher priority, or they may assume that adding a rule with a higher number will override the deny rule because it is more specific.

Change the deny-all rule to outbound instead of inbound.Wrong answer — click to see why

Why this is wrong here

The deny-all rule is inbound, blocking inbound traffic. Changing it to outbound does not affect inbound HTTPS traffic; it would only block outbound traffic, which is not the issue.

★ When this WOULD be the correct answer

If the question were about allowing outbound HTTPS traffic from the subnet while blocking inbound, changing a deny-all inbound rule to outbound would be incorrect; but if the NSG had an outbound deny-all rule blocking outbound HTTPS, you would need to add an outbound allow rule instead.

Why candidates choose this

Candidates may think that changing the direction of the deny rule will resolve the inbound blocking, misunderstanding that NSG rules are directional and that inbound and outbound traffic are evaluated separately.

Add a route table entry for port 443 traffic to the VM subnet.Wrong answer — click to see why

Why this is wrong here

Route tables control traffic routing between subnets and networks, not traffic filtering. NSGs filter traffic, so adding a route table entry does not allow HTTPS traffic through the NSG's deny-all rule.

★ When this WOULD be the correct answer

You need to force HTTPS traffic from the internet to a specific VM through a network virtual appliance (NVA) for inspection. A route table entry with a next hop of the NVA's IP address would redirect traffic accordingly.

Why candidates choose this

Candidates may confuse the functions of NSGs (filtering) and route tables (routing), thinking that adding a route can override NSG rules or that routing changes can bypass security filters.

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

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

About these practice questions

This AZ-104 question is part of Courseiva's 1,049-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.