AZ-104 Implement and Manage Virtual Networking Practice Question
A web application runs on three VMs in a backend subnet. The backend team wants the load balancer in the frontend tier to reach the VMs on TCP 8443, and they want the rule to keep working even if the backend VM IP addresses change. What should you use in the NSG rule?
⚠ Common exam trap
Many exam-takers confuse NSG rules with route tables, thinking a route table entry can control access (Option D), or they assume that using specific IP addresses (Option A) is acceptable despite the requirement for dynamic IP changes, missing the purpose of ASGs for logical grouping.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use an application security group for the frontend tier as the source and another ASG for the backend tier as the destination.
Application Security Groups (ASGs) allow you to define network security rules based on logical groupings of VMs, regardless of their IP addresses. By using an ASG for the frontend tier as the source and another ASG for the backend tier as the destination, the NSG rule remains valid even if backend VM IP addresses change, as ASGs are dynamically updated. This meets the requirement for the load balancer in the frontend tier to reach backend VMs on TCP 8443 without hardcoding IP addresses.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use the individual private IP addresses of each backend VM as the source.
Why it's wrong here
This rule gets the direction wrong: the inbound NSG rule on the backend subnet must identify the frontend VMs as the source, not the backend VMs. Using the backend IPs as the source would permit traffic from the backend VMs to themselves, failing to restrict access to the frontend tier. Even if the IPs were correct, hard-coding individual private IP addresses makes the rule brittle—when a VM is replaced or reimaged and its IP changes, the rule breaks until manually updated.
When this WOULD be correct
This option would be correct if the question required restricting traffic to specific, static backend VMs and did not require the rule to adapt to IP changes, such as in a scenario with fixed IP assignments.
- ✓
Use an application security group for the frontend tier as the source and another ASG for the backend tier as the destination.
Why this is correct
Application security groups let you reference groups of NICs instead of hard-coded IP addresses. That makes the NSG rule resilient when VMs are replaced or reimaged and their private IP addresses change. It also keeps the access model aligned to application tiers rather than infrastructure details, which is the preferred design for maintainable network security rules.
- ✗
Use the VirtualNetwork service tag for both source and destination.
Why it's wrong here
The VirtualNetwork service tag represents all IP address space within the virtual network, including peered networks, and is far too broad for this requirement. Using it for both source and destination would allow any VM or resource in the virtual network to reach the backend, not just the frontend tier. Application security groups are the correct choice because they specifically reference the NICs of the frontend and backend tiers, providing a precise and maintainable security boundary.
When this WOULD be correct
When the question requires allowing traffic from any resource within the same virtual network to the backend VMs, without needing to restrict to a specific frontend tier, and IP addresses may change.
- ✗
Create a route table entry that sends TCP 8443 traffic to the backend subnet.
Why it's wrong here
A route table entry controls the next hop for network traffic, not whether traffic is permitted. Route tables do not filter on TCP ports or protocols and cannot deny or allow traffic based on application-layer criteria like port 8443. To secure inbound access to the backend subnet, you need a network security group rule, not a route table entry.
When this WOULD be correct
A question where traffic must be forced through a network virtual appliance (NVA) for inspection, e.g., 'You need to ensure all traffic from the frontend to the backend subnet goes through a firewall VM.' Then a route table entry with next hop set to the NVA's IP would be correct.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓Use an application security group for the frontend tier as the source and another ASG for the backend tier as the destination.Correct answer▾
Why this is correct
Application security groups let you reference groups of NICs instead of hard-coded IP addresses. That makes the NSG rule resilient when VMs are replaced or reimaged and their private IP addresses change. It also keeps the access model aligned to application tiers rather than infrastructure details, which is the preferred design for maintainable network security rules.
✗Use the individual private IP addresses of each backend VM as the source.Wrong answer — click to see why▾
Why this is wrong here
Using individual private IP addresses as the source would require updating the NSG rule whenever a backend VM's IP changes, failing the requirement for the rule to keep working automatically.
★ When this WOULD be the correct answer
This option would be correct if the question required restricting traffic to specific, static backend VMs and did not require the rule to adapt to IP changes, such as in a scenario with fixed IP assignments.
Why candidates choose this
Candidates might think that specifying exact IPs provides precise control, overlooking the need for dynamic updates when IPs change due to VM restarts or scaling.
✗Use the VirtualNetwork service tag for both source and destination.Wrong answer — click to see why▾
Why this is wrong here
The VirtualNetwork service tag allows traffic from any resource within the virtual network, which is too broad and does not restrict traffic to only the frontend tier's load balancer, failing to meet the requirement for a specific source.
★ When this WOULD be the correct answer
When the question requires allowing traffic from any resource within the same virtual network to the backend VMs, without needing to restrict to a specific frontend tier, and IP addresses may change.
Why candidates choose this
Candidates may think service tags are a convenient way to handle dynamic IPs, but they overlook the need for granularity in specifying the frontend tier as the source.
✗Create a route table entry that sends TCP 8443 traffic to the backend subnet.Wrong answer — click to see why▾
Why this is wrong here
Route tables control traffic routing between subnets, not security filtering. NSG rules require source/destination based on IP addresses, service tags, or ASGs, not route table entries.
★ When this WOULD be the correct answer
A question where traffic must be forced through a network virtual appliance (NVA) for inspection, e.g., 'You need to ensure all traffic from the frontend to the backend subnet goes through a firewall VM.' Then a route table entry with next hop set to the NVA's IP would be correct.
Why candidates choose this
Candidates confuse routing (where traffic goes) with security filtering (what traffic is allowed). They think a route table entry can permit traffic, but NSGs are access control lists, not routing tables.
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Visual reference
Go deeper
Related to this question
Learn chapter
Dynamic Membership Groups
Key term
Security
Security in IT is the practice of protecting systems, networks, and data from unauthorized access, damage, or theft.
Key term
NSG rule
An NSG rule is a set of security rules in Microsoft Azure that controls whether network traffic is allowed or denied to and from Azure resources.
About these practice questions
One of 1,049 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.