hardmultiple choiceObjective-mapped

A subnet contains two NSGs: one associated with the subnet and one associated with the NIC of VM-App03. You need to determine whether inbound TCP 3389 from the internet is allowed. What is the correct interpretation?

Question 1hardmultiple choice
Full question →

A subnet contains two NSGs: one associated with the subnet and one associated with the NIC of VM-App03. You need to determine whether inbound TCP 3389 from the internet is allowed. What is the correct interpretation?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

The NIC NSG always overrides the subnet NSG.

Effective security rules consider both; there is no blanket NIC override rule.

B

Distractor review

Inbound traffic is allowed as long as one NSG has an allow rule.

Traffic can still be denied by a higher-priority deny in either applicable rule set.

C

Best answer

The effective rules are determined by evaluating both NSGs together, and a deny in either applicable path can block access.

This reflects how effective NSG rules are evaluated for a VM NIC and its subnet.

D

Distractor review

Subnet NSGs apply only to outbound traffic.

Subnet NSGs can apply to both inbound and outbound traffic.

Common exam trap

Common exam trap: usable hosts are not the same as total addresses

Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.

Technical deep dive

How to think about this question

Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.

KKey Concepts to Remember

  • CIDR notation defines the prefix length.
  • Block size helps identify subnet boundaries.
  • Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
  • The required host count determines the smallest suitable subnet.

TExam Day Tips

  • Write the block size before choosing the subnet.
  • Check whether the question asks for hosts, subnets or a specific address range.
  • Do not confuse /24, /25, /26 and /27 host counts.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

CIDR notation defines the prefix length.

What is the correct answer to this question?

The correct answer is: The effective rules are determined by evaluating both NSGs together, and a deny in either applicable path can block access. — Traffic must be allowed by the effective NSG processing after evaluating both subnet and NIC rules. If either applicable rule set blocks the traffic based on priority and direction, the connection is denied. You cannot assume that the NIC NSG overrides the subnet NSG.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.