Courseiva
Implement and Manage Virtual NetworkingmediumMultiple ChoiceObjective-mapped

AZ-104 Implement and Manage Virtual Networking Practice Question

An application VM in a subnet without a public IP must access Azure Blob Storage. The storage account must not be reachable from the public internet, and DNS resolution should stay inside the virtual network. What should you implement?

⚠ Common exam trap

Many candidates confuse service endpoints with private endpoints; service endpoints only secure traffic to the public endpoint via the VNet but do not remove public internet accessibility, whereas private endpoints fully isolate the resource within the VNet.

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 private endpoint for the storage account and link the appropriate private DNS zone.

A private endpoint assigns the storage account a private IP from the VM's virtual network, making it reachable without public internet exposure. Linking the private DNS zone ensures that DNS resolution for the storage account (e.g., `mystorageaccount.blob.core.windows.net`) resolves to the private IP within the VNet, meeting both requirements.

Answer analysis

Option-by-option breakdown

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

  • Enable a service endpoint for Microsoft.Storage on the subnet and keep the public endpoint enabled.

    Why it's wrong here

    A service endpoint for Microsoft.Storage merely adds a route from the subnet to Azure's public storage infrastructure; it does not place a private IP for the storage account inside your VNet. Because the storage account's public endpoint remains enabled and DNS still resolves to a public IP, traffic is not fully private and the environment is still exposed to internet-based access attempts. The VM can reach the account, but the solution fails if the requirement is true private connectivity.

    When this WOULD be correct

    If the requirement were to allow a VM in a subnet to access Azure Storage without a public IP, but the storage account could still be accessible from the internet (just restricted to the subnet), then enabling a service endpoint on the subnet would be correct.

  • Create a private endpoint for the storage account and link the appropriate private DNS zone.

    Why this is correct

    A private endpoint attaches a network interface with a private IP from your VNet to the storage account, causing all traffic destined to that account to traverse the Microsoft backbone instead of the public internet. Linking the private endpoint to the appropriate private DNS zone ensures that the storage account's FQDN resolves to that private IP, so the VM can connect without egress to a public address. This is the correct way to provide secure, private access from a subnet that has no public IP.

  • Use a SAS token and allow access from any network for the storage account.

    Why it's wrong here

    A SAS token provides time-limited delegated authorization to specific storage resources, but it does not alter the network path; the client still sends requests to the storage account's public endpoint. Allowing access from any network means the storage account remains publicly reachable, making it vulnerable to brute-force or anonymous probing if a token leaks. This option mixes data-plane authorization with network-layer security and is therefore not a valid private access solution.

    When this WOULD be correct

    A question where a client outside Azure (e.g., on-premises) needs temporary, time-limited access to a specific blob in a storage account that is otherwise private, and public internet access is acceptable.

  • Assign a managed identity to the VM and remove all network restrictions from the storage account.

    Why it's wrong here

    A managed identity replaces stored access keys with Azure AD authentication, so it addresses who can authenticate, not how packets travel to the storage account. Removing network restrictions leaves the storage account's public endpoint open to any IP address, which increases the attack surface even though the identity itself may be narrowly scoped. This option does not put a private IP in the subnet, so it cannot satisfy the need for private network access.

    When this WOULD be correct

    A question where a VM needs to authenticate to Azure Blob Storage without using keys or SAS tokens, and the storage account's network restrictions are not a concern (e.g., the storage account is already isolated via other means).

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 private endpoint for the storage account and link the appropriate private DNS zone.Correct answer

Why this is correct

A private endpoint attaches a network interface with a private IP from your VNet to the storage account, causing all traffic destined to that account to traverse the Microsoft backbone instead of the public internet. Linking the private endpoint to the appropriate private DNS zone ensures that the storage account's FQDN resolves to that private IP, so the VM can connect without egress to a public address. This is the correct way to provide secure, private access from a subnet that has no public IP.

Enable a service endpoint for Microsoft.Storage on the subnet and keep the public endpoint enabled.Wrong answer — click to see why

Why this is wrong here

A service endpoint keeps the storage account reachable from the public internet (even if restricted to the subnet), which violates the requirement that the storage account must not be reachable from the public internet.

★ When this WOULD be the correct answer

If the requirement were to allow a VM in a subnet to access Azure Storage without a public IP, but the storage account could still be accessible from the internet (just restricted to the subnet), then enabling a service endpoint on the subnet would be correct.

Why candidates choose this

Candidates may confuse service endpoints with private endpoints, thinking both provide private connectivity, but service endpoints still use the public endpoint of the storage service.

Use a SAS token and allow access from any network for the storage account.Wrong answer — click to see why

Why this is wrong here

A SAS token with public network access violates the requirement that the storage account must not be reachable from the public internet, and it does not keep DNS resolution inside the virtual network.

★ When this WOULD be the correct answer

A question where a client outside Azure (e.g., on-premises) needs temporary, time-limited access to a specific blob in a storage account that is otherwise private, and public internet access is acceptable.

Why candidates choose this

Candidates may think SAS tokens provide secure, granular access without realizing they still rely on public endpoints and do not restrict network-level access.

Assign a managed identity to the VM and remove all network restrictions from the storage account.Wrong answer — click to see why

Why this is wrong here

Assigning a managed identity and removing network restrictions would make the storage account publicly accessible from the internet, violating the requirement that the storage account must not be reachable from the public internet.

★ When this WOULD be the correct answer

A question where a VM needs to authenticate to Azure Blob Storage without using keys or SAS tokens, and the storage account's network restrictions are not a concern (e.g., the storage account is already isolated via other means).

Why candidates choose this

Candidates may think managed identity provides secure access without public exposure, but they overlook that removing network restrictions opens the storage account to the internet.

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

Quick reference

Azure Blob Storage Tier Comparison

TierStorage CostRetrieval CostLatencyUse Case
HotHighestLowestImmediateActive data, frequent reads
CoolLowerHigherImmediateData accessed < once / month
ColdLower stillHigherImmediateData accessed < once / quarter
ArchiveLowestHighest + rehydration delayHoursLong-term compliance retention

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 →

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.