mediummultiple choiceObjective-mapped

An application runs on an Azure VM in a subnet and must access a storage account over the public endpoint without using a private IP address. The administrator wants to restrict access so only that subnet can reach the account. What should be configured?

Question 1mediummultiple choice
Full question →

An application runs on an Azure VM in a subnet and must access a storage account over the public endpoint without using a private IP address. The administrator wants to restrict access so only that subnet can reach the account. What should be configured?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Create a private endpoint for the storage account and disable the public endpoint.

A private endpoint would give the storage account a private IP in the VNet, which the requirement explicitly does not want.

B

Best answer

Enable a service endpoint for Microsoft.Storage on the subnet and add the subnet to the storage account network rules.

A service endpoint lets the subnet reach the storage account over the Azure backbone while still using the storage account's public endpoint. Adding the subnet to the storage firewall allows only that subnet to connect. This meets the requirement to avoid a private IP while restricting access to a specific subnet.

C

Distractor review

Allow trusted Microsoft services to bypass the firewall.

Trusted services bypass is for selected Microsoft services, not for limiting access to one customer-managed subnet.

D

Distractor review

Add a user-defined route that points storage traffic to the virtual network gateway.

Routes affect where packets go, but they do not grant storage authorization or replace storage firewall rules.

Common exam trap

Common exam trap: usable hosts are not the same as total addresses

Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.

Technical deep dive

How to think about this question

Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.

KKey Concepts to Remember

  • CIDR notation defines the prefix length.
  • Block size helps identify subnet boundaries.
  • Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
  • The required host count determines the smallest suitable subnet.

TExam Day Tips

  • Write the block size before choosing the subnet.
  • Check whether the question asks for hosts, subnets or a specific address range.
  • Do not confuse /24, /25, /26 and /27 host counts.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

CIDR notation defines the prefix length.

What is the correct answer to this question?

The correct answer is: Enable a service endpoint for Microsoft.Storage on the subnet and add the subnet to the storage account network rules. — A service endpoint plus a storage account firewall rule is the right design when the storage account should remain on its public endpoint but only one subnet should be allowed. The service endpoint identifies the subnet as trusted, and the firewall rule restricts access accordingly. This approach does not create a private IP and avoids the DNS changes that private endpoints require. Why others are wrong: A uses a private endpoint, which is explicitly excluded by the requirement. C is unrelated because it broadens access to selected Microsoft services rather than a specific subnet. D changes routing but cannot enforce storage account network access policy by itself.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.