Question 990 of 1,170
Implement and Manage Virtual NetworkingmediumMultiple 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. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. 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.

A company has a hub VNet and two peered spoke VNets, AppSpoke and DataSpoke. Both spokes can reach on-premises networks through the hub gateway. The app VM in AppSpoke must connect privately to the data VM in DataSpoke without using the internet or sending traffic on-premises first. What should the administrator do?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "first"

    Why it matters: Order matters here. You are being tested on which action comes before the others — not which action is generally useful.

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

Create a direct VNet peering between AppSpoke and DataSpoke.

Option C is correct because a direct VNet peering between AppSpoke and DataSpoke establishes a private, low-latency connection between the two VNets without routing traffic through the hub gateway or on-premises networks. This satisfies the requirement for a private connection that does not use the internet or traverse on-premises, as VNet peering uses the Microsoft backbone infrastructure.

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 an NSG rule that allows traffic from AppSpoke to DataSpoke.

    Why it's wrong here

    NSGs can permit or deny traffic, but they do not create a network path between VNets.

    When this WOULD be correct

    An NSG rule would be correct if the question asked how to block or allow specific traffic between subnets within the same VNet, or between VNets already connected via peering, where routing is already in place.

  • Enable gateway transit on both spoke peerings.

    Why it's wrong here

    Gateway transit lets a spoke use the hub gateway, but it does not make spoke-to-spoke traffic transitive.

    When this WOULD be correct

    In a scenario where a spoke VNet needs to reach an on-premises network through the hub VPN gateway, enabling gateway transit on the spoke-to-hub peering is correct. For example, if AppSpoke must connect to an on-premises database via the hub gateway, enabling gateway transit on AppSpoke's peering with the hub is required.

  • Create a direct VNet peering between AppSpoke and DataSpoke.

    Why this is correct

    Azure VNet peering is not transitive. If two spoke VNets must communicate directly, they need a direct peering between them or another routing design such as an appliance. Because the requirement is simply private connectivity between the app and data VNets, direct peering is the simplest and correct fix. The existing hub peering does not provide that spoke-to-spoke path.

    Clue confirmation

    The clue word "first" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Add a user-defined route in AppSpoke pointing DataSpoke traffic to the hub gateway.

    Why it's wrong here

    A UDR can change next-hop routing, but it still cannot make peering transitive across the hub gateway.

    When this WOULD be correct

    This would be correct if the requirement was to route traffic through the hub for inspection or filtering, and the hub had a direct connection to DataSpoke (e.g., via a network virtual appliance) without going on-premises.

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.

Create a direct VNet peering between AppSpoke and DataSpoke.Correct answer

Why this is correct

Azure VNet peering is not transitive. If two spoke VNets must communicate directly, they need a direct peering between them or another routing design such as an appliance. Because the requirement is simply private connectivity between the app and data VNets, direct peering is the simplest and correct fix. The existing hub peering does not provide that spoke-to-spoke path.

Add an NSG rule that allows traffic from AppSpoke to DataSpoke.Wrong answer — click to see why

Why this is wrong here

NSG rules control traffic filtering, not routing. They cannot establish a direct path between VNets; traffic would still flow through the hub, potentially using on-premises connectivity.

★ When this WOULD be the correct answer

An NSG rule would be correct if the question asked how to block or allow specific traffic between subnets within the same VNet, or between VNets already connected via peering, where routing is already in place.

Why candidates choose this

Candidates may confuse NSGs with routing, thinking that allowing traffic in a firewall-like rule is sufficient to enable connectivity, overlooking the need for a network path.

Enable gateway transit on both spoke peerings.Wrong answer — click to see why

Why this is wrong here

Gateway transit allows spoke VNets to use the hub VPN gateway to reach on-premises networks, but it does not enable direct private connectivity between spokes. Traffic between AppSpoke and DataSpoke would still be routed through the hub, potentially going on-premises if the hub gateway is involved.

★ When this WOULD be the correct answer

In a scenario where a spoke VNet needs to reach an on-premises network through the hub VPN gateway, enabling gateway transit on the spoke-to-hub peering is correct. For example, if AppSpoke must connect to an on-premises database via the hub gateway, enabling gateway transit on AppSpoke's peering with the hub is required.

Why candidates choose this

Candidates may confuse gateway transit with enabling direct communication between spokes, thinking that enabling it on both peerings allows spokes to talk directly through the hub without additional configuration.

Add a user-defined route in AppSpoke pointing DataSpoke traffic to the hub gateway.Wrong answer — click to see why

Why this is wrong here

Adding a user-defined route in AppSpoke pointing DataSpoke traffic to the hub gateway would force traffic through the hub, which then routes to on-premises if no direct peering exists, violating the requirement to avoid sending traffic on-premises first.

★ When this WOULD be the correct answer

This would be correct if the requirement was to route traffic through the hub for inspection or filtering, and the hub had a direct connection to DataSpoke (e.g., via a network virtual appliance) without going on-premises.

Why candidates choose this

Candidates may think that routing through the hub is always the correct way to connect spokes, not realizing that hub routing can inadvertently send traffic on-premises if the hub's default route points there.

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 assume gateway transit (Option B) enables direct spoke-to-spoke communication, but it only allows spokes to use the hub’s gateway for on-premises connectivity, not for inter-spoke traffic without going through the hub.

Detailed technical explanation

How to think about this question

VNet peering uses the Azure backbone to route traffic between VNets with minimal latency and no intermediate hops. When peering is established, Azure automatically adds system routes for the peered VNet’s address space, enabling direct communication without user-defined routes. In a hub-and-spoke topology, direct peering between spokes bypasses the hub, which is critical for scenarios like database replication or microservices communication that require low latency and avoid transit through a gateway.

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

An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.

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: Create a direct VNet peering between AppSpoke and DataSpoke. — Option C is correct because a direct VNet peering between AppSpoke and DataSpoke establishes a private, low-latency connection between the two VNets without routing traffic through the hub gateway or on-premises networks. This satisfies the requirement for a private connection that does not use the internet or traverse on-premises, as VNet peering uses the Microsoft backbone infrastructure.

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.

Are there clue words in this question I should notice?

Yes — watch for: "first". Order matters here. You are being tested on which action comes before the others — not which action is generally useful.

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.