mediummultiple choiceObjective-mapped

A development team runs Windows and Linux VMs in a single Azure subnet. The VMs must access an Azure Storage account, and the security team wants to restrict the storage account so only that subnet can reach it. The team does not want to create a private IP for the storage account or change DNS records. What should the administrator configure?

Question 1mediummultiple choice
Full question →

A development team runs Windows and Linux VMs in a single Azure subnet. The VMs must access an Azure Storage account, and the security team wants to restrict the storage account so only that subnet can reach it. The team does not want to create a private IP for the storage account or 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

A private endpoint for the storage account and a private DNS zone.

Private endpoints do create a private IP, which the team specifically does not want, and they usually require DNS updates for name resolution.

B

Best answer

A service endpoint on the subnet and a storage account network rule allowing that subnet.

Service endpoints extend the subnet identity to the Azure Storage service without assigning a private IP to the storage account. This allows the administrator to restrict access to the specific Azure subnet while keeping the service reachable through its normal public DNS name. It fits the requirement to avoid DNS changes and private IP creation.

C

Distractor review

A site-to-site VPN between the subnet and the storage account.

Storage accounts do not participate in VPN tunnels; VPN connectivity is used between networks, not directly to PaaS endpoints.

D

Distractor review

A user-defined route that sends storage traffic to the default internet next hop.

Routes do not restrict storage access to a subnet and do not provide the access-control behavior required by the security team.

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: A service endpoint on the subnet and a storage account network rule allowing that subnet. — A service endpoint is the right fit when Azure resources in a specific subnet need access to a PaaS service without introducing a private IP or changing DNS. By enabling the Microsoft.Storage service endpoint on the subnet and then allowing that subnet in the storage account firewall, access is limited to approved Azure network traffic while the storage account still uses its standard public name. Why others are wrong: A creates the very private IP and DNS change the team wants to avoid. C is not a valid design for Azure Storage access because the storage account is not a tunnel endpoint. D changes routing only and does not implement the storage firewall restriction the business asked for.

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.