mediummultiple choiceObjective-mapped

An application running on a VM in a subnet must access an Azure Storage account. The security team wants the storage account to accept traffic only from that subnet, but they do not want a private IP address in the VNet and they do not want to change DNS records. What should the administrator configure?

Question 1mediummultiple choice
Full question →

An application running on a VM in a subnet must access an Azure Storage account. The security team wants the storage account to accept traffic only from that subnet, but they do not want a private IP address in the VNet and they do not want to change DNS records. What should the administrator configure?

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 and a private DNS zone for the storage account.

That would give the service a private IP and require DNS integration, which the requirement explicitly avoids.

B

Best answer

Enable a service endpoint for Microsoft.Storage on the subnet and restrict the storage firewall to that subnet.

A service endpoint extends the subnet identity to the Azure Storage service without creating a private IP address in the VNet. It also avoids DNS changes because clients continue to use the normal public endpoint name, while the storage firewall can be configured to allow only the selected subnet. This matches the requirement for subnet-only access while keeping the service on its public endpoint architecture.

C

Distractor review

Allow access only from the VM public IP address.

That secures by public IP, not by subnet, and it breaks if the VM is replaced or its address changes.

D

Distractor review

Place the storage account in the same resource group as the VM.

Resource-group placement does not control network access or restrict traffic to a subnet.

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 restrict the storage firewall to that subnet. — A service endpoint is the correct choice when you want to restrict Azure Storage to a subnet without assigning a private IP or changing DNS. The endpoint keeps the storage account on its public address while letting the service recognize traffic from that subnet as trusted network traffic. After enabling the endpoint on the subnet, the storage firewall can be locked down to that VNet or subnet. Why others are wrong: A private endpoint is the opposite of the stated requirement because it creates a private IP and usually requires private DNS. Allowing only the VM public IP is fragile and does not scale to VM replacement or autoscaling. Resource group location has no effect on network reachability, firewall scope, or endpoint behavior.

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.