Courseiva
Implement and Manage Virtual NetworkingmediumMultiple ChoiceObjective-mapped

AZ-104 Implement and Manage Virtual Networking Practice Question

A storage account has a private endpoint in VNet A. A VM in peered VNet B can reach the storage account by private IP, but when the VM resolves the storage account name it still gets the public IP address. What should be configured so the name resolves to the private IP from VNet B?

⚠ Common exam trap

It's easy for candidates to assume peering automatically extends DNS resolution for private endpoints, but peering only provides network connectivity—DNS zone linking is a separate, required configuration step.

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

Link the private DNS zone for the storage service to VNet B.

When a private endpoint is created in VNet A, a private DNS zone (e.g., `privatelink.blob.core.windows.net`) is automatically linked to VNet A, enabling name resolution to the private IP within that VNet. However, VNet B is peered but not linked to that private DNS zone, so VMs in VNet B continue to resolve the storage account name via public DNS, returning the public IP. By linking the private DNS zone to VNet B, the VM will resolve the storage account name to the private IP address of the private endpoint.

Answer analysis

Option-by-option breakdown

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

  • Create a new storage account in VNet B.

    Why it's wrong here

    Storage accounts are Azure PaaS resources and are never deployed directly into a VNet, so creating a new storage account in VNet B is not a valid action. Even if a new account were created, it would be a separate resource with its own public or private endpoint configuration, and it would not solve the DNS resolution issue for the existing private endpoint in VNet A. This option simply does not address the root cause of the problem.

    When this WOULD be correct

    If the question asked how to ensure a VM in VNet B can access storage with lowest latency and without traversing the public internet, creating a storage account in VNet B with a service endpoint or private endpoint would be correct.

  • Link the private DNS zone for the storage service to VNet B.

    Why this is correct

    A private endpoint assigns the storage account a private IP address in VNet A, but name resolution from VNet B must still map the storage service FQDN to that private IP. Linking the private DNS zone to VNet B enables DNS resolution across the peered network, so clients in VNet B can resolve the storage account to its private endpoint. This is the standard approach for enabling private connectivity to a PaaS service over VNet peering.

  • Add an inbound NSG rule allowing DNS traffic from VNet B.

    Why it's wrong here

    Network security group (NSG) rules control which traffic is allowed or denied through a subnet or NIC, but they have no role in DNS name resolution. Adding an inbound rule for DNS (TCP/UDP 53) would only permit the traffic; it cannot instruct clients in VNet B to resolve the storage FQDN to the private IP address assigned by the private endpoint in VNet A. Since clients do not know the private IP, the NSG rule would be ineffective.

    When this WOULD be correct

    If a VM in VNet B cannot resolve the storage account name at all (e.g., DNS query times out), and the private DNS zone is already linked to VNet B, then an inbound NSG rule allowing UDP port 53 from VNet B to the DNS server (Azure-provided or custom) would be needed to permit DNS traffic.

  • Replace the private endpoint with a service endpoint.

    Why it's wrong here

    A service endpoint replaces the private endpoint with public IP-based routing through the service's public endpoint, meaning the storage account is not assigned a private IP address in VNet A. This would remove the private DNS zone linkage and force clients in VNet B to resolve the storage FQDN to a public IP address, which defeats the purpose of private connectivity and does not provide the required private DNS resolution.

    When this WOULD be correct

    A question asks how to ensure traffic from a VM to a storage account stays within the Azure backbone without using a private endpoint, and the storage account does not require private IP resolution. Service endpoints would be the correct choice to route traffic privately.

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.

Link the private DNS zone for the storage service to VNet B.Correct answer

Why this is correct

A private endpoint assigns the storage account a private IP address in VNet A, but name resolution from VNet B must still map the storage service FQDN to that private IP. Linking the private DNS zone to VNet B enables DNS resolution across the peered network, so clients in VNet B can resolve the storage account to its private endpoint. This is the standard approach for enabling private connectivity to a PaaS service over VNet peering.

Create a new storage account in VNet B.Wrong answer — click to see why

Why this is wrong here

Creating a new storage account in VNet B does not resolve the DNS issue for the existing storage account; it only provides a separate storage endpoint that would still require proper DNS configuration.

★ When this WOULD be the correct answer

If the question asked how to ensure a VM in VNet B can access storage with lowest latency and without traversing the public internet, creating a storage account in VNet B with a service endpoint or private endpoint would be correct.

Why candidates choose this

Candidates may think that placing the storage account in the same VNet automatically resolves DNS, ignoring that private DNS zones must be linked to the peered VNet for name resolution.

Add an inbound NSG rule allowing DNS traffic from VNet B.Wrong answer — click to see why

Why this is wrong here

The issue is DNS resolution, not network traffic filtering. An NSG rule allowing DNS traffic from VNet B does not configure the private DNS zone to be accessible or linked to VNet B, so the storage account name still resolves to the public IP.

★ When this WOULD be the correct answer

If a VM in VNet B cannot resolve the storage account name at all (e.g., DNS query times out), and the private DNS zone is already linked to VNet B, then an inbound NSG rule allowing UDP port 53 from VNet B to the DNS server (Azure-provided or custom) would be needed to permit DNS traffic.

Why candidates choose this

Candidates may think that since the VM can reach the private IP, the problem is that DNS traffic is blocked by a firewall or NSG, so they focus on allowing DNS traffic rather than configuring DNS resolution properly.

Replace the private endpoint with a service endpoint.Wrong answer — click to see why

Why this is wrong here

Service endpoints do not provide private DNS resolution; they only ensure traffic stays on the Microsoft backbone. The VM in VNet B would still resolve the storage account name to its public IP address, not the private IP.

★ When this WOULD be the correct answer

A question asks how to ensure traffic from a VM to a storage account stays within the Azure backbone without using a private endpoint, and the storage account does not require private IP resolution. Service endpoints would be the correct choice to route traffic privately.

Why candidates choose this

Candidates may confuse service endpoints with private endpoints, thinking both provide private IP connectivity and DNS resolution, but service endpoints lack the DNS integration that private endpoints offer.

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

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

About these practice questions

Courseiva writes every AZ-104 question from scratch — 1,049 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.