mediummultiple choiceObjective-mapped

Backend virtual machines are rebuilt frequently and often receive different private IP addresses. An administrator must allow the frontend tier to reach the backend tier on TCP 8443 without editing NSG rules every time the backend IP changes. What should the administrator use in the NSG rule?

Question 1mediummultiple choice
Full question →

Backend virtual machines are rebuilt frequently and often receive different private IP addresses. An administrator must allow the frontend tier to reach the backend tier on TCP 8443 without editing NSG rules every time the backend IP changes. 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 static private IP address for each backend VM.

Static IPs can reduce change, but they do not scale well and are not the best way to target a workload tier in an NSG.

B

Best answer

An Application Security Group that contains the backend VMs.

Application Security Groups let the administrator group backend VMs logically and reference that group in NSG rules instead of individual IP addresses. This is ideal when backend IPs change or VMs are replaced. The NSG rule remains stable while the backend membership changes, which reduces operational overhead and improves consistency.

C

Distractor review

A user-defined route pointing frontend traffic to the backend subnet.

A route changes packet forwarding, but it does not create an authorization rule or replace NSG targeting.

D

Distractor review

A private endpoint for the backend tier.

Private endpoints are for PaaS services, not for grouping Azure VMs inside a subnet for NSG rules.

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 Application Security Group that contains the backend VMs. — Application Security Groups are designed for this exact scenario. Instead of writing NSG rules against changing backend IP addresses, the administrator assigns the backend VMs to an ASG and references that ASG in the allow rule. The NSG then follows the workload identity rather than the IP assignment. This makes the rule durable even when the backend tier is rebuilt, resized, or readdressed. Why others are wrong: Static IPs do not solve the broader management problem and still require IP-specific rule maintenance. User-defined routes control path selection, not access control, so they cannot replace an NSG rule. Private endpoints are for accessing supported platform services privately and are not used to group customer VMs for intra-VNet filtering. The correct abstraction here is an ASG.

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.