mediummultiple choiceObjective-mapped

A VM-based application must connect to Azure SQL Database over a private IP inside the VNet. The SQL server name must resolve to that private IP, and public network access must remain disabled. What should the administrator deploy?

Question 1mediummultiple choice
Full question →

A VM-based application must connect to Azure SQL Database over a private IP inside the VNet. The SQL server name must resolve to that private IP, and public network access must remain disabled. What should the administrator deploy?

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 service endpoint for Microsoft.Sql on the subnet.

A service endpoint does not create a private IP address or change name resolution to the VNet.

B

Best answer

A private endpoint for the SQL server and a private DNS zone linked to the VNet.

Private endpoints place the PaaS service behind a private IP address in the virtual network. For name resolution to work correctly, the SQL server name must also resolve through a private DNS zone linked to the VNet. This design keeps public network access disabled while allowing the VM to reach Azure SQL entirely over private connectivity. It is the right fit when both private IP access and DNS integration are required.

C

Distractor review

A user-defined route that points SQL traffic to the Internet.

Routing to the Internet cannot satisfy a requirement for private IP connectivity inside the VNet.

D

Distractor review

An NSG rule that allows TCP 1433 from the subnet to Azure SQL.

NSGs can permit traffic, but they do not provide private addressing or private DNS 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: A private endpoint for the SQL server and a private DNS zone linked to the VNet. — A private endpoint is required when the service must be reachable through a private IP inside the VNet. Because the application also needs the SQL server name to resolve to that private address, the administrator should link an appropriate private DNS zone to the VNet. Disabling public network access ensures the service is only reachable through the private path, which matches the stated security requirement exactly. Why others are wrong: A service endpoint still uses the service’s public endpoint and does not satisfy the private IP requirement. A user-defined route to the Internet directly contradicts the need for private connectivity. An NSG rule can permit the port, but it cannot create private name resolution or replace the public endpoint with a private one.

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.