AZ-104 Implement and Manage Virtual Networking Practice Question
A team wants one subnet to access an existing Storage account over its public endpoint. They do not want a private IP for the account or any DNS changes, but they want to block access from all other subnets. What should the administrator configure?
⚠ Common exam trap
It's easy for candidates to confuse service endpoints with private endpoints, assuming that private endpoints are required for secure access, but the question explicitly states no private IP or DNS changes are desired, making service endpoints the correct choice.
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
✓
Enable a service endpoint on the subnet and add a virtual network rule on the storage account.
A service endpoint extends the virtual network's identity to the Azure Storage service, allowing the subnet to access the storage account over its public endpoint without requiring a private IP or DNS changes. By enabling a service endpoint on the subnet and adding a virtual network rule on the storage account, you restrict access to only that subnet while blocking all other subnets, meeting the team's 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.
- ✗
Create a private endpoint and disable public network access on the storage account.
Why it's wrong here
A private endpoint installs a private IP for the storage account inside your virtual network and disables public network access, forcing all traffic through that endpoint. This requires DNS reconfiguration (typically via private DNS zones) to redirect existing hostnames to the private IP, which can break clients that currently use the public endpoint. In contrast, a service endpoint and virtual network rule achieve subnet-restricted access without decommissioning the public endpoint or requiring such DNS changes.
When this WOULD be correct
When the requirement is to access the storage account privately from a subnet, without exposing it to the public internet, and DNS changes are acceptable. For example: 'A team wants to ensure that traffic to a storage account never leaves the Microsoft backbone network and they are willing to update DNS settings.'
- ✓
Enable a service endpoint on the subnet and add a virtual network rule on the storage account.
Why this is correct
A service endpoint on the subnet gives the storage account visibility of that subnet's traffic while keeping the storage account's public endpoint. Adding a virtual network rule on the storage account then restricts access to only that specific subnet, so requests from other subnets or the internet are rejected. This approach preserves the existing endpoint and requires no DNS changes, making it the correct, minimal configuration for subnet-only access.
- ✗
Assign the Storage Blob Data Reader role to the subnet.
Why it's wrong here
The Storage Blob Data Reader role is an RBAC role that grants data-plane read permissions to a security principal (user, group, or managed identity), not to a subnet. Subnets are not valid RBAC assignment targets, and even if you could assign it, RBAC only controls authorization after a request reaches the service—it does not filter by source network. Therefore, this option would not prevent other subnets or the internet from accessing the storage account.
When this WOULD be correct
When the question asks for granting read access to blob data for all resources in a subnet without changing network connectivity, such as allowing VMs in a subnet to read blobs via the public endpoint while using Azure AD authentication.
- ✗
Associate a route table with a default route to the storage account private IP.
Why it's wrong here
A route table controls how packets are forwarded, but storage accounts do not have a customer-defined private IP on their public endpoint; that endpoint is served by Azure's regional infrastructure. Setting a default route (0.0.0.0/0) to a storage private IP would redirect all internet-bound traffic from the subnet to an unreachable target, potentially breaking connectivity. Route tables also cannot authenticate or authorize requests, so they cannot enforce access control the way a virtual network rule does.
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.
✓Enable a service endpoint on the subnet and add a virtual network rule on the storage account.Correct answer▾
Why this is correct
A service endpoint on the subnet gives the storage account visibility of that subnet's traffic while keeping the storage account's public endpoint. Adding a virtual network rule on the storage account then restricts access to only that specific subnet, so requests from other subnets or the internet are rejected. This approach preserves the existing endpoint and requires no DNS changes, making it the correct, minimal configuration for subnet-only access.
✗Create a private endpoint and disable public network access on the storage account.Wrong answer — click to see why▾
Why this is wrong here
The question explicitly states the team does not want a private IP or DNS changes, but a private endpoint assigns a private IP and requires DNS configuration. Additionally, disabling public network access would block the subnet's access via the public endpoint, which contradicts the requirement to access over the public endpoint.
★ When this WOULD be the correct answer
When the requirement is to access the storage account privately from a subnet, without exposing it to the public internet, and DNS changes are acceptable. For example: 'A team wants to ensure that traffic to a storage account never leaves the Microsoft backbone network and they are willing to update DNS settings.'
Why candidates choose this
Candidates may confuse private endpoints with service endpoints, thinking both provide secure access, or they may overlook the explicit requirement to avoid private IPs and DNS changes, focusing instead on the security aspect of blocking other subnets.
✗Assign the Storage Blob Data Reader role to the subnet.Wrong answer — click to see why▾
Why this is wrong here
Assigning the Storage Blob Data Reader role to a subnet is not supported; RBAC roles can only be assigned to users, groups, or service principals, not to subnets. This action does not restrict network access to the storage account.
★ When this WOULD be the correct answer
When the question asks for granting read access to blob data for all resources in a subnet without changing network connectivity, such as allowing VMs in a subnet to read blobs via the public endpoint while using Azure AD authentication.
Why candidates choose this
Candidates may confuse Azure RBAC with network access controls, thinking that assigning a role to a subnet can control access, similar to how service endpoints or private endpoints work.
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
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.
Key term
DNS
DNS is the system that translates human-friendly domain names like example.com into machine-readable IP addresses so computers can find each other on a network.
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 →
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.