mediummultiple choiceObjective-mapped

A company has frontend and backend VMs in the same subnet. Security rules must allow the frontend tier to reach only the backend tier on TCP 443, without assigning rules to individual VM IP addresses. What should the administrator use in the NSG rule?

Question 1mediummultiple choice
Full question →

A company has frontend and backend VMs in the same subnet. Security rules must allow the frontend tier to reach only the backend tier on TCP 443, without assigning rules to individual VM IP addresses. What should the administrator use in the NSG rule?

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 user-defined route that sends frontend traffic to the backend subnet.

Routes control next hop selection, not fine-grained east-west access rules.

B

Distractor review

A network security group rule that references both subnets by address prefix only.

Subnet prefixes are broader than required and do not identify application tiers cleanly.

C

Best answer

Application security groups for the frontend and backend VMs.

ASGs let you group VMs by workload role and reference those groups in NSG rules.

D

Distractor review

A VNet peering connection between the two tiers.

Peering is for separate VNets, not for separating roles inside one subnet.

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: Application security groups for the frontend and backend VMs. — Application security groups are designed for this exact pattern: grouping VMs by workload role and then writing NSG rules against those logical groups instead of IP addresses. That makes the rule set easier to maintain when VMs scale or are replaced. In this scenario, the frontend ASG can be allowed to reach the backend ASG on TCP 443, while other lateral traffic remains blocked by the NSG design. Why others are wrong: A route table cannot enforce application-level access control. Using raw subnet prefixes is less precise and does not cleanly represent the two tiers. VNet peering is only relevant between different virtual networks, not between roles in the same subnet. The requirement is to simplify NSG management with logical workload grouping, which is exactly what ASGs provide.

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.