Question 10 of 1,170
Implement and Manage Virtual NetworkingeasyMultiple ChoiceObjective-mapped

AZ-104 Implement and Manage Virtual Networking Practice Question

This AZ-104 practice question tests your understanding of implement and manage virtual networking. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Exhibit

NSG rule summary:
Rule 1: Allow-Web-To-Api, Source=ASG-Web, Destination=ASG-Api, Port=8443, Action=Allow, Priority=300
ASG membership:
- WebVM01 NIC = ASG-Web
- WebVM02 NIC = ASG-Web
- ApiVM01 NIC = none
- ApiVM02 NIC = none
Observed result: Connections from WebVM01 to ApiVM01 on TCP 8443 fail.

Based on the exhibit, the web tier can reach the API subnet by name, but the traffic is still blocked. What should the administrator do?

Exhibit

NSG rule summary:
Rule 1: Allow-Web-To-Api, Source=ASG-Web, Destination=ASG-Api, Port=8443, Action=Allow, Priority=300
ASG membership:
- WebVM01 NIC = ASG-Web
- WebVM02 NIC = ASG-Web
- ApiVM01 NIC = none
- ApiVM02 NIC = none
Observed result: Connections from WebVM01 to ApiVM01 on TCP 8443 fail.

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

Add the API VM NICs to the destination application security group.

The correct answer is A because the web tier can resolve the API subnet's name, but traffic is still blocked. This indicates that the network security group (NSG) rules are not correctly configured to allow traffic from the web VMs (in ASG-Web) to the API VMs (in ASG-API). By adding the API VM NICs to the destination application security group (ASG), the NSG rule that references ASG-API as the destination will match the API VMs, allowing the traffic. Without this, the NSG rule may be referencing an empty or incorrect destination, causing the traffic to be denied by the default deny rule.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Add the API VM NICs to the destination application security group.

    Why this is correct

    The allow rule is written for ASG-Api as the destination, but the exhibit shows that no API NICs are currently members of that ASG. Because NSG rules only match when both source and destination ASG membership is present, traffic will be blocked until the API VM NICs are added to ASG-Api.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Increase the priority number of the allow rule so it is evaluated earlier.

    Why it's wrong here

    A higher priority number is evaluated later, not earlier, so this would make the rule less likely to match first.

    When this WOULD be correct

    This option would be correct if the allow rule existed but was being overridden by a higher-priority deny rule. In that case, increasing the priority number (making it lower) would allow the allow rule to be evaluated before the deny rule.

  • Replace the ASG with a service endpoint on the API subnet.

    Why it's wrong here

    Service endpoints are unrelated to NSG source and destination matching between virtual machine tiers.

    When this WOULD be correct

    If the question were about securely accessing an Azure PaaS service (e.g., Azure SQL or Storage) from the API subnet without using a public endpoint, adding a service endpoint on the API subnet would be correct.

  • Remove the web VMs from ASG-Web because ASGs block traffic by default.

    Why it's wrong here

    ASGs do not block traffic by themselves; they are grouping objects used by NSG rules to match sets of NICs.

    When this WOULD be correct

    If the question described a scenario where VMs in an ASG were incorrectly configured with a deny-all rule or the ASG was misapplied, removing them from the ASG could be correct to restore connectivity.

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.

Add the API VM NICs to the destination application security group.Correct answer

Why this is correct

The allow rule is written for ASG-Api as the destination, but the exhibit shows that no API NICs are currently members of that ASG. Because NSG rules only match when both source and destination ASG membership is present, traffic will be blocked until the API VM NICs are added to ASG-Api.

Increase the priority number of the allow rule so it is evaluated earlier.Wrong answer — click to see why

Why this is wrong here

Increasing the priority number (making it higher) would cause the rule to be evaluated later, not earlier, which would not resolve the traffic block. The issue is that the allow rule's destination is not correctly targeting the API VMs, not its priority.

★ When this WOULD be the correct answer

This option would be correct if the allow rule existed but was being overridden by a higher-priority deny rule. In that case, increasing the priority number (making it lower) would allow the allow rule to be evaluated before the deny rule.

Why candidates choose this

Candidates may confuse priority numbers with evaluation order, thinking a higher number means higher priority, or they may assume that traffic is blocked due to rule ordering rather than misconfiguration of the destination.

Replace the ASG with a service endpoint on the API subnet.Wrong answer — click to see why

Why this is wrong here

Service endpoints secure Azure service access from a subnet, not traffic between VNets or subnets. The issue is east-west traffic blocking, which ASGs solve; service endpoints don't replace ASGs for intra-VNet filtering.

★ When this WOULD be the correct answer

If the question were about securely accessing an Azure PaaS service (e.g., Azure SQL or Storage) from the API subnet without using a public endpoint, adding a service endpoint on the API subnet would be correct.

Why candidates choose this

Candidates may confuse service endpoints with network security groups, thinking they can replace ASGs for general traffic filtering, or they might assume service endpoints provide broader connectivity control.

Remove the web VMs from ASG-Web because ASGs block traffic by default.Wrong answer — click to see why

Why this is wrong here

ASGs do not block traffic by default; they only define rules for allowed traffic. Removing VMs from an ASG would not resolve the issue of blocked traffic to the API subnet.

★ When this WOULD be the correct answer

If the question described a scenario where VMs in an ASG were incorrectly configured with a deny-all rule or the ASG was misapplied, removing them from the ASG could be correct to restore connectivity.

Why candidates choose this

Candidates may mistakenly think ASGs act like firewalls that block all traffic by default, rather than understanding they are used to group VMs for applying network security rules.

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?”

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse name resolution with network connectivity, assuming that if a VM can resolve another VM's name via DNS, traffic must be allowed, but NSG rules are evaluated independently of DNS resolution.

Detailed technical explanation

How to think about this question

Application security groups (ASGs) allow you to group virtual machines and define network security policies based on those groups, without needing to manage explicit IP addresses. When an NSG rule references an ASG as the destination, the rule is applied to all NICs that are members of that ASG. Under the hood, Azure translates the ASG membership into a set of IP addresses and updates the NSG flow rules accordingly. A common real-world scenario is when VMs are added or removed from an ASG dynamically (e.g., via Azure Policy or automation), and the NSG rules automatically adjust without manual intervention.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

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.

Practice this exam

Start a free AZ-104 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Implement and Manage Virtual Networking — This question tests Implement and Manage Virtual Networking — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Add the API VM NICs to the destination application security group. — The correct answer is A because the web tier can resolve the API subnet's name, but traffic is still blocked. This indicates that the network security group (NSG) rules are not correctly configured to allow traffic from the web VMs (in ASG-Web) to the API VMs (in ASG-API). By adding the API VM NICs to the destination application security group (ASG), the NSG rule that references ASG-API as the destination will match the API VMs, allowing the traffic. Without this, the NSG rule may be referencing an empty or incorrect destination, causing the traffic to be denied by the default deny rule.

What should I do if I get this AZ-104 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More AZ-104 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.