AZ-104 Implement and Manage Virtual Networking Practice Question
A VM in a virtual network must access an Azure Storage account over a private IP address, and the storage account's public endpoint must be disabled. Name resolution from the VM should resolve the storage name to the private IP. Which configuration should you use?
⚠ Common exam trap
Test-takers frequently confuse service endpoints (which only provide source IP preservation and routing via the public endpoint) with private endpoints (which provide a true private IP and can disable the public endpoint), leading candidates to choose option A.
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
✓
Private endpoint with a private DNS zone linked to the virtual network.
A private endpoint assigns a private IP from the virtual network to the storage account, effectively bringing the service into the VNet. By linking a private DNS zone to the virtual network, the VM's DNS resolution for the storage account name returns the private IP instead of the public endpoint, satisfying both the private connectivity and public endpoint disablement 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.
- ✗
Service endpoint on the subnet plus public DNS, because the storage account will expose a private IP automatically.
Why it's wrong here
A service endpoint on the subnet extends the subnet's network identity to the storage service and routes traffic over the Azure backbone, but the storage account continues to be reachable only via its public endpoint. The service does not acquire a private IP address in your VNet; enabling the endpoint merely adds an effective route for the service's public IP range from the subnet. Public DNS still resolves the storage account name to the public IP, so the premise that a private IP appears automatically is incorrect.
When this WOULD be correct
A question requiring secure access from a VM to a storage account without disabling the public endpoint, where the goal is to avoid internet routing and reduce costs, and private IP is not required. Service endpoints on the subnet would be correct.
- ✓
Private endpoint with a private DNS zone linked to the virtual network.
Why this is correct
A private endpoint places the storage service behind a private IP address in your virtual network, which is exactly what the scenario requires. Linking a private DNS zone ensures the storage account name resolves to that private IP from resources inside the VNet. Together, these settings provide private network access and allow you to disable the public endpoint safely.
- ✗
Network security group rules only, because they can force traffic to use private addressing.
Why it's wrong here
Network security group rules are stateful packet filters applied at the subnet or network interface level; they can permit or deny traffic but cannot provision a private endpoint or modify DNS name resolution. Even if you create an NSG rule that allows all outbound traffic, the storage account still resolves to its public endpoint IP. NSGs have no mechanism to redirect or translate that destination to a private address, so they cannot alone make storage accessible via a private IP.
When this WOULD be correct
A question asks: 'You need to restrict inbound traffic to a subnet to only allow traffic from a specific IP range. Which configuration should you use?' In that scenario, NSG rules are the correct answer.
- ✗
Storage account firewall rules with Allow trusted Microsoft services, because that gives a private address path.
Why it's wrong here
Storage account firewall rules, even with 'Allow trusted Microsoft services' enabled, operate as access-control filters on the public endpoint. They do not assign a private IP address to the storage account in the VM's virtual network, nor do they alter DNS resolution so the account name maps to a private address. The VM would still traverse the public endpoint (or Microsoft's backbone via the trusted-service exception) using the storage account's public IP, not a private IP inside the VNet.
When this WOULD be correct
This option would be correct in a scenario where the requirement is to restrict access to a storage account to only trusted Microsoft services (e.g., Azure Backup) while keeping the public endpoint enabled, and no private IP connectivity is needed.
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.
✓Private endpoint with a private DNS zone linked to the virtual network.Correct answer▾
Why this is correct
A private endpoint places the storage service behind a private IP address in your virtual network, which is exactly what the scenario requires. Linking a private DNS zone ensures the storage account name resolves to that private IP from resources inside the VNet. Together, these settings provide private network access and allow you to disable the public endpoint safely.
✗Service endpoint on the subnet plus public DNS, because the storage account will expose a private IP automatically.Wrong answer — click to see why▾
Why this is wrong here
Service endpoints do not assign a private IP to the storage account; they only provide direct connectivity over the Azure backbone. The storage account's public endpoint remains enabled, and name resolution still resolves to the public IP, not a private IP.
★ When this WOULD be the correct answer
A question requiring secure access from a VM to a storage account without disabling the public endpoint, where the goal is to avoid internet routing and reduce costs, and private IP is not required. Service endpoints on the subnet would be correct.
Why candidates choose this
Candidates may confuse service endpoints with private endpoints, thinking both provide private IP connectivity, or assume that 'private IP automatically' means the service endpoint assigns a private IP to the storage account.
✗Network security group rules only, because they can force traffic to use private addressing.Wrong answer — click to see why▾
Why this is wrong here
Network security group rules only control inbound/outbound traffic filtering and cannot assign a private IP address to a storage account or disable its public endpoint. They do not provide private name resolution or private connectivity.
★ When this WOULD be the correct answer
A question asks: 'You need to restrict inbound traffic to a subnet to only allow traffic from a specific IP range. Which configuration should you use?' In that scenario, NSG rules are the correct answer.
Why candidates choose this
Candidates may think NSGs can force traffic to use private addressing by blocking public IPs, but they overlook that NSGs cannot create a private network interface for a PaaS service or resolve names to private IPs.
✗Storage account firewall rules with Allow trusted Microsoft services, because that gives a private address path.Wrong answer — click to see why▾
Why this is wrong here
Storage account firewall rules with 'Allow trusted Microsoft services' do not provide a private IP address; they only allow traffic from trusted Azure services over the public endpoint. The requirement is to disable the public endpoint and use a private IP, which firewall rules cannot achieve.
★ When this WOULD be the correct answer
This option would be correct in a scenario where the requirement is to restrict access to a storage account to only trusted Microsoft services (e.g., Azure Backup) while keeping the public endpoint enabled, and no private IP connectivity is needed.
Why candidates choose this
Candidates may think that enabling trusted Microsoft services provides a private path, confusing the concept of service trust with network-level private connectivity, or they may overlook the explicit requirement to disable the public endpoint.
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
Managed Identities for Azure Resources
Key term
Private endpoint
A private endpoint is a network interface that securely connects a service over a private IP address inside a virtual network, keeping traffic off the public internet.
Key term
Storage account
A cloud storage account is a container that holds a set of cloud storage services and their data, providing a unique namespace and access policies for storing and managing unstructured data.
About these practice questions
This AZ-104 question is part of Courseiva's 1,049-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.