hardmulti selectObjective-mapped

A VM in VNet-Prod must connect to Azure SQL Database over a private IP address. The SQL server must not be reachable through its public endpoint, and the VM should resolve the server name automatically without manual DNS entries. Which three actions are required? Select three.

Question 1hardmulti select
Full question →

A VM in VNet-Prod must connect to Azure SQL Database over a private IP address. The SQL server must not be reachable through its public endpoint, and the VM should resolve the server name automatically without manual DNS entries. Which three actions are required? Select three.

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

Best answer

Create a private endpoint for the Azure SQL server in VNet-Prod.

A private endpoint gives the SQL server a private IP address inside the virtual network.

B

Best answer

Create the private DNS zone privatelink.database.windows.net.

This DNS zone is required so the SQL server name resolves to the private endpoint address.

C

Best answer

Link the private DNS zone to VNet-Prod.

Linking the zone lets resources in the VNet resolve SQL names through the private records.

D

Distractor review

Enable a service endpoint for Microsoft.Sql on the subnet instead of using a private endpoint.

A service endpoint extends identity to the public service endpoint and does not create a private IP.

E

Distractor review

Leave public network access enabled and add the VNet as an allowed firewall rule.

That permits access over the public endpoint, which conflicts with the private-IP-only requirement.

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: Create a private endpoint for the Azure SQL server in VNet-Prod. — To make Azure SQL reachable on a private IP, you need a private endpoint in the VNet. The SQL private DNS zone then maps the standard database name to that private endpoint. Linking the zone to the VNet makes the resolution automatic for clients in that network. Together these steps provide private connectivity, automatic name resolution, and removal of the public exposure path. Why others are wrong: A service endpoint still uses the public service endpoint and therefore does not satisfy private-IP access. Leaving public network access enabled would preserve the public path, which the scenario explicitly forbids. The question is intentionally about private endpoint plumbing, not just permitting a subnet through a firewall.

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.