A company needs to ensure that their Azure SQL Database is accessible only from a specific virtual network and deny access from public endpoints. Which feature should they configure?
Configure Azure SQL Database firewall to allow connections from a specific virtual network subnet by enabling a service endpoint for Microsoft.Sql on that subnet and adding a virtual network firewall rule. This extends the SQL database's public endpoint to accept traffic from that subnet only, while all other public internet traffic is blocked by default firewall rules. This pairs network-level isolation with firewall rules to restrict access to designated VNets without needing private IPs.
Why this answer
Virtual network service endpoints and firewall rules allow restricting access to a specific VNet while denying public access. Option A is incorrect because disabling public network access alone does not tie to a specific VNet; it would block all access unless combined with Private Link. Option C is incorrect because IP firewall rules allow access from specific public IP addresses, not from a VNet.
Option D is incorrect because Azure Private Link provides private connectivity but does not deny public access by itself; it requires additional configuration to block public endpoints.