mediummultiple choiceObjective-mapped

A VM in a virtual network must access an Azure Storage account over a private IP address, and the storage account's public endpoint must be disabled. Name resolution from the VM should resolve the storage name to the private IP. Which configuration should you use?

Question 1mediummultiple choice
Full question →

A VM in a virtual network must access an Azure Storage account over a private IP address, and the storage account's public endpoint must be disabled. Name resolution from the VM should resolve the storage name to the private IP. Which configuration should you use?

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

Service endpoint on the subnet plus public DNS, because the storage account will expose a private IP automatically.

Service endpoints extend the subnet's identity to the service, but they do not create a private IP address for the storage account.

B

Best answer

Private endpoint with a private DNS zone linked to the virtual network.

A private endpoint places the storage service behind a private IP address in your virtual network, which is exactly what the scenario requires. Linking a private DNS zone ensures the storage account name resolves to that private IP from resources inside the VNet. Together, these settings provide private network access and allow you to disable the public endpoint safely.

C

Distractor review

Network security group rules only, because they can force traffic to use private addressing.

NSG rules filter traffic, but they do not change name resolution or create a private endpoint for the storage account.

D

Distractor review

Storage account firewall rules with Allow trusted Microsoft services, because that gives a private address path.

Storage firewall rules control public endpoint access, but they do not provide a private IP address or private DNS-based name resolution.

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: Private endpoint with a private DNS zone linked to the virtual network. — A private endpoint is the correct way to give a storage account a private IP in a VNet. Because the public endpoint must be disabled, the VM also needs private DNS so the storage name resolves to that private IP instead of the public address. Service endpoints and firewall rules can limit access, but only private endpoints create the private address path required here. Why others are wrong: Service endpoints extend VNet identity to the service, but traffic still uses the public service endpoint and not a private IP. NSGs only filter traffic and do not affect DNS or endpoint type. Firewall rules can restrict access to the public endpoint, but they do not provide private addressing. The scenario specifically asks for private IP connectivity and matching name resolution.

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.