mediummultiple choiceObjective-mapped

Two VM scale sets named Web and App run in separate subnets. The App subnet NSG already contains Deny-All-Inbound at priority 300. The business wants only the Web tier to connect to the App tier on TCP 8443, and any new scale-out instances must be included automatically. What should the administrator add?

Question 1mediummultiple choice
Full question →

Two VM scale sets named Web and App run in separate subnets. The App subnet NSG already contains Deny-All-Inbound at priority 300. The business wants only the Web tier to connect to the App tier on TCP 8443, and any new scale-out instances must be included automatically. What should the administrator add?

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

A rule that allows TCP 8443 from the current Web subnet address range to the App subnet.

Using current subnet IP ranges can work temporarily, but it does not scale cleanly when instances are added or replaced. The requirement specifically calls for automatic membership.

B

Best answer

An inbound allow rule using source WebASG, destination AppASG, TCP 8443, with a priority lower than 300.

Application security groups let you target groups of VMs by workload rather than by static IPs. A rule that allows TCP 8443 from WebASG to AppASG will automatically include future scale-set instances as they join the ASGs. The rule must also have a lower priority number than the existing deny rule, otherwise the deny will win first.

C

Distractor review

A load balancer NAT rule that maps port 8443 from the Internet to the App tier.

A load balancer NAT rule is for inbound translation to individual instances, not for defining east-west application-tier access inside the virtual network.

D

Distractor review

A service endpoint for Microsoft.Web on both subnets.

Service endpoints are unrelated to internal VM-to-VM traffic and do not filter or permit traffic between application tiers.

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: An inbound allow rule using source WebASG, destination AppASG, TCP 8443, with a priority lower than 300. — ASGs are the right tool when you need an NSG rule to follow a workload as instances scale in and out. By referencing WebASG as the source and AppASG as the destination, the rule automatically stays current without manual IP maintenance. Because NSG rules are processed by priority, the allow rule must have a lower number than the deny-all rule so it is evaluated first. Why others are wrong: A subnet IP range is static and becomes awkward as scale sets change membership. A load balancer NAT rule is for publishing services, not for controlling tier-to-tier traffic within the VNet. Service endpoints do not apply to VM-to-VM filtering, so they cannot satisfy this requirement.

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.