mediummultiple choiceObjective-mapped

A three-tier application uses separate web and app VMs. The requirement is to allow only the web tier to reach the app tier on TCP 8080. The app subnet NSG already contains a DenyAllInbound rule at priority 200. What should the administrator do?

Question 1mediummultiple choice
Full question →

A three-tier application uses separate web and app VMs. The requirement is to allow only the web tier to reach the app tier on TCP 8080. The app subnet NSG already contains a DenyAllInbound rule at priority 200. What should the administrator do?

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

Best answer

Create an inbound allow rule for the web ASG to the app ASG on TCP 8080 with priority 150.

NSG rules are processed in priority order, where the lowest number wins. To permit only web-tier traffic to the app tier while preserving the deny rule, the allow rule must have a higher precedence than the DenyAllInbound entry. Using application security groups keeps the rule maintainable as VMs scale in or out, and the specific source, destination, and port limit access to exactly the required flow.

B

Distractor review

Move the DenyAllInbound rule to priority 300 so all traffic is blocked first.

A lower-priority deny rule would not block traffic before the allow rule and would not create the required exception.

C

Distractor review

Add a user-defined route from the web subnet to the app subnet.

Routing controls path selection, but it does not grant or deny access to TCP 8080.

D

Distractor review

Associate the web and app NICs with the same application security group.

Putting both tiers in one ASG removes the source and destination separation needed for least privilege.

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: Create an inbound allow rule for the web ASG to the app ASG on TCP 8080 with priority 150. — The app subnet NSG already denies inbound traffic at priority 200, so any exception must be evaluated earlier. Creating an allow rule at priority 150 with the web ASG as source, the app ASG as destination, and TCP 8080 as the port allows only the intended traffic. This design is scalable because the rule follows the application tiers rather than individual IP addresses, which change frequently in Azure environments. Why others are wrong: Changing the deny rule's priority does not create the needed exception and can accidentally disrupt other traffic. A user-defined route affects next-hop selection, not security decisions. Using one ASG for both tiers defeats the purpose of tier-based filtering and makes the rule much less precise than required.

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.