mediummultiple choiceObjective-mapped

Frontend VMs in one subnet must reach backend VMs on TCP 8443. The backend VMs are rebuilt frequently, so their private IP addresses change often. The administrator wants to avoid updating NSG rules every time the backend IPs change. What should be used in the NSG rule?

Question 1mediummultiple choice
Full question →

Frontend VMs in one subnet must reach backend VMs on TCP 8443. The backend VMs are rebuilt frequently, so their private IP addresses change often. The administrator wants to avoid updating NSG rules every time the backend IPs change. What should be used 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

Best answer

Application Security Groups for the frontend and backend tiers.

Application Security Groups let you reference groups of VMs in NSG rules instead of individual IP addresses. That is ideal when backend IPs change often because the rule continues to target the backend application tier rather than a specific address. The administrator can place the frontend VMs in one ASG and the backend VMs in another, then allow TCP 8443 between those groups without constantly editing the NSG.

B

Distractor review

A service endpoint on the backend subnet.

Service endpoints are for securing access to supported PaaS services, not for grouping VMs in NSG rules.

C

Distractor review

A route table with a next hop of Virtual network gateway.

Route tables control forwarding, but they do not simplify security rules for changing VM IP addresses.

D

Distractor review

A private endpoint for each backend VM.

Private endpoints are used for private access to supported services, not for direct VM-to-VM tier grouping.

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 tiers. — Application Security Groups are designed for this exact operational pattern. They let you group workloads logically and reference those groups in NSG rules, which means the allow rule follows the backend tier even if the VMs are recreated with different private IPs. This reduces administrative overhead and avoids brittle IP-based security rules, while still keeping the traffic control at the NSG layer. Why others are wrong: Service endpoints protect supported Azure PaaS services, not VM-to-VM traffic. Route tables determine next hop selection and cannot replace security group logic. Private endpoints create private access to Azure services, not reusable labels for multiple backend VMs inside your own network.

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.