You are a database administrator for Contoso. You are creating a new Azure SQL Database named SalesDb in the Azure portal by using the Create SQL Database wizard. You also create a new logical server in the same wizard.
Requirements:
- Virtual machines in an existing virtual network named app-vnet must connect to the server through a private IP address in app-vnet.
- The virtual machines must use the server's standard name (
<server>.database.windows.net), and that name must resolve to the private IP address. - app-vnet uses Azure-provided DNS. No custom DNS servers exist.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
| Statement | Yes | No |
|---|---|---|
| On the Networking tab of the Create SQL Database wizard, you should set Network connectivity to Private endpoint and then add a private endpoint. A private endpoint can be added during database creation. On the Networking tab, you select the Private endpoint option for Network connectivity and then use + Add private endpoint. A private endpoint gives the server a private IP address in the virtual network, which meets the first requirement. | Correct | |
| In the Create private endpoint pane, the target sub-resource must identify the SalesDb database rather than the logical server. In the Create private endpoint pane, the target sub-resource is SqlServer. This means the private endpoint targets the logical server, not an individual database. | Correct | |
| Setting Integrate with private DNS zone to Yes in the Create private endpoint pane helps meet the requirement that the server's standard name resolves to the private IP address. Setting Integrate with private DNS zone to Yes and keeping the default zone is the expected configuration. When a private endpoint is used, a lookup of the server's standard name is expected to pass through an alias in privatelink.database.windows.net and return the endpoint's private IP. The privatelink.database.windows.net private DNS zone supplies that answer. This matters here because app-vnet has no custom DNS servers. | Correct |
You can add a private endpoint while you create the database: select Private endpoint for Network connectivity on the Networking tab, then add the endpoint. The endpoint's target sub-resource is SqlServer, so the private endpoint is created for the logical server rather than for a single database. If you integrate the endpoint with the default private DNS zone, the standard server name resolves through privatelink.database.windows.net to the private IP. This lets clients in the virtual network keep using the usual server name.