AZ-104 Implement and Manage Virtual Networking Practice Question
Exhibit
Storage access requirement: the public endpoint must stay enabled; access must be limited to one Azure subnet; no private IP should be created in the virtual network; administrators do not want a private DNS zone.
Based on the exhibit, which feature should be enabled on the subnet so the storage account remains reachable through its public endpoint but only from that subnet?
⚠ Common exam trap
Many candidates confuse private endpoints with service endpoints, mistakenly thinking a private endpoint is required for subnet-level access control, when in fact service endpoints achieve the same goal while preserving public endpoint accessibility.
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
✓
Service endpoint
Service endpoints (B) extend the virtual network private address space and the identity of the VNet to Azure services over a direct connection. By enabling a Microsoft.Storage service endpoint on the subnet and configuring the storage account firewall to allow access only from that subnet's virtual network, the storage account remains reachable via its public endpoint but only from the specified subnet, without requiring a public IP on the subnet.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Private endpoint
Why it's wrong here
A private endpoint creates a network interface with a private IP from your subnet and attaches it to the storage account, effectively moving the storage resource inside the VNet. This changes the connectivity model by requiring DNS zone updates and completely bypassing the public endpoint, which the exhibit explicitly prohibits. Additionally, private endpoints change the way routes, NSGs, and firewalls interact with storage—whereas a service endpoint preserves the existing DNS and public FQDN naming while merely scoping access.
When this WOULD be correct
A question that asks: 'Which feature should be used to ensure that a storage account is accessible only from a specific virtual network and not from the public internet?' In that case, private endpoint would be correct because it removes public endpoint access entirely.
- ✓
Service endpoint
Why this is correct
A service endpoint extends your VNet's identity and security rules to the Azure storage service over the Microsoft backbone, so the storage account can be locked down to accept traffic only from a specific subnet without assigning any private IP. The storage account still uses its public endpoint, but the Source IP is rewritten to the subnet's IP range, enabling firewall rules like "Allow from 10.0.1.0/24." This meets the exhibit's requirement to avoid a private IP while enforcing subnet-only access.
- ✗
Azure Bastion
Why it's wrong here
Azure Bastion is a fully managed PaaS service that provides secure, seamless RDP/SSH connectivity to your virtual machines directly through the Azure portal over TLS, never exposing the VMs to public IPs. It is purely a remote-access gateway for the management plane and has no ability to control which subnets can reach an Azure Storage account or to filter data-plane traffic. Deploying Bastion would not enable subnet-scoped access to the storage service; it simply gives you a browser-based jump host.
When this WOULD be correct
A question asks: 'You need to provide secure, seamless RDP access to VMs in a virtual network without assigning public IPs. Which service should you deploy?'
- ✗
VPN Gateway
Why it's wrong here
A VPN Gateway establishes encrypted IPSec tunnels between on-premises locations or other networks and your virtual network, enabling cross-premises connectivity. It does not enforce subnet-only access to an Azure service; it only expands network reachability, so traffic from any source routed through the tunnel could still reach the storage account unless additional NSGs/firewalls are defined. Moreover, a VPN Gateway doesn't integrate with the storage account firewall's "Allowed virtual network/subnet" settings, so it cannot meet the requirement to allow only your specific subnet to reach the service.
When this WOULD be correct
A question asks: 'You need to connect an on-premises network to an Azure VNet securely over the internet. Which feature should you use?' In that scenario, VPN Gateway is the correct answer for establishing encrypted site-to-site or point-to-site VPN connections.
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.
✓Service endpointCorrect answer▾
Why this is correct
A service endpoint extends your VNet's identity and security rules to the Azure storage service over the Microsoft backbone, so the storage account can be locked down to accept traffic only from a specific subnet without assigning any private IP. The storage account still uses its public endpoint, but the Source IP is rewritten to the subnet's IP range, enabling firewall rules like "Allow from 10.0.1.0/24." This meets the exhibit's requirement to avoid a private IP while enforcing subnet-only access.
✗Private endpointWrong answer — click to see why▾
Why this is wrong here
Private endpoint assigns a private IP to the storage account, making it accessible only from the virtual network, not from its public endpoint. The question requires the storage account to remain reachable through its public endpoint, which private endpoint does not allow.
★ When this WOULD be the correct answer
A question that asks: 'Which feature should be used to ensure that a storage account is accessible only from a specific virtual network and not from the public internet?' In that case, private endpoint would be correct because it removes public endpoint access entirely.
Why candidates choose this
Candidates may confuse private endpoint with service endpoint, thinking both restrict access to a subnet, but private endpoint actually disables public endpoint access, which contradicts the requirement to keep the public endpoint reachable.
✗Azure BastionWrong answer — click to see why▾
Why this is wrong here
Azure Bastion provides secure RDP/SSH connectivity to virtual machines without exposing public IPs, but it does not control network access to storage accounts or restrict access to a subnet.
★ When this WOULD be the correct answer
A question asks: 'You need to provide secure, seamless RDP access to VMs in a virtual network without assigning public IPs. Which service should you deploy?'
Why candidates choose this
Candidates may confuse Azure Bastion's role in securing network access with subnet-level access controls, mistakenly thinking it can restrict storage account access.
✗VPN GatewayWrong answer — click to see why▾
Why this is wrong here
VPN Gateway is used for site-to-site or point-to-site encrypted connectivity over the internet, not for restricting access to a public endpoint from a specific subnet. It does not provide the subnet-level service endpoint policy needed to allow only that subnet to reach the storage account's public endpoint.
★ When this WOULD be the correct answer
A question asks: 'You need to connect an on-premises network to an Azure VNet securely over the internet. Which feature should you use?' In that scenario, VPN Gateway is the correct answer for establishing encrypted site-to-site or point-to-site VPN connections.
Why candidates choose this
Candidates may confuse VPN Gateway with a network security boundary, thinking it can restrict access to a public endpoint, or they may mistakenly believe that a VPN tunnel can be used to limit source IPs from a specific subnet.
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
Privileged Identity Management (PIM)
Key term
VNet
A virtual private network inside a cloud provider that lets you securely connect and isolate your cloud resources.
Key term
Virtual network
A virtual network is a software-based network that connects computers, servers, and devices over the internet or within a cloud environment, simulating a physical network without requiring dedicated hardware.
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 →
Same concept, more angles
1 more way this is tested on AZ-104
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Based on the exhibit, which network feature should you use so only the subnet can reach the storage account while still using the public endpoint?
medium- A.Create a private endpoint and disable the storage account public endpoint.
- ✓ B.Enable a service endpoint on app-subnet and allow that subnet on the storage firewall.
- C.Add a NAT gateway to app-subnet and use the NAT public IP for firewall rules.
- D.Peer app-subnet with a new VNet and access the storage account through peering.
Why B: Enabling a service endpoint on the app-subnet allows traffic from that subnet to reach the storage account over the Azure backbone network while still using the public endpoint. By then adding the subnet to the storage account firewall, you restrict access to only that subnet, ensuring no other internet traffic can reach the storage account. This approach leverages the public endpoint but with subnet-level access control, meeting the requirement.
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.