Private Endpoint DNS Resolution and Public Access Restriction
Short answer
A Configure private DNS and client routing so the data service name resolves to the private endpoint address, then explicitly restrict public access to close the remaining public path.
Question
Key Takeaways
Private Link requires private DNS resolution, client routing, and an explicit public-access restriction; a private endpoint alone does not redirect a service name away from its public address. Option A is correct because it repairs name resolution and reachability before closing the independent public network path. Recreating the endpoint, adding outbound integration, or relying on TLS leaves the public address usable.
Expert Analysis
The application still resolving the service name to its public address while public access remains enabled shows a private endpoint whose private path was never wired into client name resolution, so the correct action is option A: configure private DNS and client routing, then explicitly restrict public access.
Private DNS resolution must translate the endpoint's private IP into the name the client actually queries
Creating a private endpoint for a data service allocates a private IP address on a network interface in the selected subnet and establishes an approved Private Link connection to the service. That address is not automatically what an application receives when it looks up the service name. The client asks DNS for the service's fully qualified domain name; if the query still reaches the public Azure DNS record, the client gets the public IP and opens a public connection, even though a private endpoint exists. The private path therefore requires a private DNS zone for the service's Private Link suffix, a virtual network link from the client's VNet to that zone, and an A record mapping the service name to the endpoint's private IP. Client routing must also be able to reach that IP—usually through VNet peering, a VPN or ExpressRoute path, and without a UDR or firewall sending the traffic back to the internet. Only when the name resolves privately and the route succeeds does the endpoint carry traffic. The public access setting is independent: the service can still accept connections from public addresses until that setting is changed. So the complete fix is DNS, routing, then a deliberate public-access restriction.
Leaving name resolution and public access untouched keeps the public path fully usable
B adds outbound virtual network integration, which changes how an application initiates outbound traffic but does not rewrite the DNS answer the client receives or flip the service's public access switch; the public address remains reachable and the private endpoint remains unused. C recreates the private endpoint and assumes creation alone disables every public network path, yet the new endpoint can land in the same unresolved, publicly exposed state, adding downtime and a fresh approval cycle without correcting DNS or public access. D requires TLS on the public endpoint and removes the application's private route: TLS encrypts a public connection but does not make it private or prevent public reachability, and deleting the private route discards the path the endpoint was built to provide. Each alternative treats the private endpoint as a complete security boundary rather than as one component. The cost is not merely that the application keeps using the public address; it is that the organization may believe the service is private while the public endpoint remains open to any client that can reach it. Recreating or encrypting does not alter the DNS record, the VNet link, the route table, or the publicNetworkAccess setting, which are the controls that decide whether the private address is used and whether the public address is accepted.
Reachability and exposure are separate planes, and a private endpoint only changes one of them
The conflation to avoid is treating a private endpoint as if it were the same control as public network access. In this deployment, the private endpoint is an inbound Private Link connection: it creates a network interface with a private IP in the endpoint subnet and gives the data service a second, private address. DNS decides which address a name returns; routing decides whether packets to that address arrive. Neither is the same as the service's public exposure setting, which is a property on the data service such as publicNetworkAccess. A service can have an approved private endpoint, a correct private DNS record, and still have publicNetworkAccess set to Enabled; in that state, clients that resolve publicly or arrive from the internet are still accepted. Conversely, disabling public access without a working private DNS record and route can break the application, because the name may still resolve to a public address that is now blocked. The boundary is therefore: private endpoint and private DNS supply a private destination; public access decides whether non-private destinations are allowed. Both must be configured, and the order matters—verify the private path first, then restrict public access so the restriction does not cause an outage.
Carrying the DNS-first, exposure-second test to other Private Link services
For another Private Link design, apply a simple if-then test: if the private endpoint exists but the client resolves the service's public FQDN to a public IP, then inspect the private DNS zone, its virtual network link and its A record before rebuilding the endpoint; if the name resolves privately but connections fail, then inspect the route—peering, VPN, ExpressRoute, UDR and firewall—before changing DNS; and if either path works but the service still answers from the internet, then set public access to Disabled or restrict it with the service's firewall or network rules. The evidence to collect is concrete: the DNS answer from the client's own network context, the endpoint NIC's private IP, the approval state of the private endpoint connection, the effective route table, and the data service's public network access property. This order prevents the common mistake of recreating a healthy endpoint while leaving the actual defect—an unlinked private DNS zone or a public DNS answer—in place. It also prevents the opposite mistake of disabling public access before the private name and route are proven, which converts a partial configuration into a full outage. The rule generalizes because Private Link always separates the private endpoint, name resolution, routing and public exposure.
Official Reference
- https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns
- https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview
These links open the official vendor documentation in a new tab.
Exam Strategy
On Private Link questions, separate the symptom from the security control. If a client still resolves a public address, look first for a private DNS zone link and A record plus an effective route to the endpoint NIC; if the stem also says public access is enabled, look for a second action that disables or restricts it. Reject answers that rebuild the endpoint, add outbound integration, or add TLS as a substitute for name resolution and access control. The two-part answer—private path first, public exposure second—is the pattern to select.
Related Analysis
Practice All AI-200 Questions
Access 69 questions with complete answers and detailed explanations.
View Full AI-200 Practice Test →