Courseiva
Implement and Manage Virtual NetworkingmediumMultiple ChoiceObjective-mapped

AZ-104 Implement and Manage Virtual Networking Practice Question

An application in a subnet must access an Azure Storage account over a private IP. The storage account must not be reachable through its public endpoint, and access should be limited to that subnet only. Which configuration should the administrator implement?

⚠ Common exam trap

Test-takers frequently confuse service endpoints (which still use the public endpoint) with private endpoints (which provide a private IP and can disable public access), leading candidates to choose Option A thinking it provides private connectivity.

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 in the subnet and disable public network access on the storage account.

A private endpoint assigns a private IP from the subnet to the storage account, effectively bringing the service into the virtual network. Disabling public network access ensures the storage account is only reachable via that private endpoint, meeting the requirement to block public endpoint access and limit access to the specific 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.

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

    Why it's wrong here

    A service endpoint to Microsoft.Storage adds a route from the subnet to the storage service's public IP address, allowing traffic to pass over the Microsoft backbone instead of the public internet, but the storage account still resolves to its public endpoint. The storage account is not given a private IP address in the subnet, and leaving the public endpoint enabled means the account remains accessible from outside the subnet. This configuration fails the private-IP and subnet-scoped connectivity requirements, so it is not a substitute for a private endpoint.

    When this WOULD be correct

    This option would be correct if the requirement was to allow a subnet to access a storage account securely over the Microsoft backbone network while still keeping the public endpoint enabled for other clients, and there was no need for a private IP or disabling public access.

  • Create a private endpoint in the subnet and disable public network access on the storage account.

    Why this is correct

    A private endpoint places a private IP address for the storage account into the VNet, so traffic stays on the private network path. Disabling public network access ensures the account cannot be reached through its public endpoint. Together, these settings meet both requirements: private IP access and subnet-scoped connectivity.

  • Use a shared access signature token and leave network settings unchanged.

    Why it's wrong here

    A shared access signature (SAS) token provides fine-grained, time-limited authorization to specific storage operations, such as reading a blob or uploading a file. However, a SAS controls what a caller is allowed to do, not which network path the traffic takes—the request still goes to the storage account's public endpoint. Additionally, leaving network settings unchanged keeps the public endpoint open to any IP, so the SAS does nothing to restrict access to the subnet or force traffic onto a private IP address.

    When this WOULD be correct

    If the question required granting time-limited, delegated access to a specific storage resource (e.g., a blob or file) for an external user or application without changing network security settings, a SAS token would be the correct answer.

  • Associate the storage account with a NAT gateway to control inbound access.

    Why it's wrong here

    A NAT gateway is designed to manage outbound source IP addresses for subnets; it does not accept inbound connections or alter how Azure Storage receives requests from an application. Since the application initiates the connection to the storage account, a NAT gateway has no effect on the inbound network path, and it never assigns a private IP address to the storage account. Therefore, it cannot satisfy the requirement to keep the storage account reachable only via a private IP within the subnet.

    When this WOULD be correct

    An administrator needs to provide outbound internet connectivity for resources in a subnet while using a static public IP for egress, and the storage account is accessed via its public endpoint with firewall rules. In that scenario, a NAT gateway would be correct.

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 in the subnet and disable public network access on the storage account.Correct answer

Why this is correct

A private endpoint places a private IP address for the storage account into the VNet, so traffic stays on the private network path. Disabling public network access ensures the account cannot be reached through its public endpoint. Together, these settings meet both requirements: private IP access and subnet-scoped connectivity.

Create 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 does not provide a private IP for the application; it only allows the subnet to access the storage account via the public endpoint with source IP filtering. The requirement specifies access over a private IP and disabling the public endpoint, which service endpoints cannot achieve.

★ When this WOULD be the correct answer

This option would be correct if the requirement was to allow a subnet to access a storage account securely over the Microsoft backbone network while still keeping the public endpoint enabled for other clients, and there was no need for a private IP or disabling public access.

Why candidates choose this

Candidates may confuse service endpoints with private endpoints, thinking both provide private connectivity, or they may overlook the specific requirement for a private IP and disabling the public endpoint.

Use a shared access signature token and leave network settings unchanged.Wrong answer — click to see why

Why this is wrong here

A shared access signature (SAS) token provides time-limited access to storage resources but does not restrict access to a specific subnet or disable the public endpoint. It also does not ensure private IP access, as traffic still traverses the public internet.

★ When this WOULD be the correct answer

If the question required granting time-limited, delegated access to a specific storage resource (e.g., a blob or file) for an external user or application without changing network security settings, a SAS token would be the correct answer.

Why candidates choose this

Candidates may confuse SAS tokens with network-level access controls, thinking that a token alone can restrict access to a subnet, or they may overlook the requirement for private IP and public endpoint disablement.

Associate the storage account with a NAT gateway to control inbound access.Wrong answer — click to see why

Why this is wrong here

A NAT gateway controls outbound traffic from a subnet to the internet, not inbound access to a storage account. It cannot provide private IP connectivity or disable the public endpoint, so it fails to meet the requirement of limiting access to the subnet only.

★ When this WOULD be the correct answer

An administrator needs to provide outbound internet connectivity for resources in a subnet while using a static public IP for egress, and the storage account is accessed via its public endpoint with firewall rules. In that scenario, a NAT gateway would be correct.

Why candidates choose this

Candidates may confuse NAT gateway with private connectivity solutions, thinking it can restrict inbound access or provide private IP routing, due to a misunderstanding of NAT's directionality and purpose.

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

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

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.