AZ-700 · Question #354
You have an Azure subscription that contains a virtual network named VNet1. VNet1 contains a subnet named Subnet1. You plan to add a private endpoint to Subnet. You need to ensure that you can route…
The correct answer is B. Enable delegation. To enable user-defined routes (UDRs) for a private endpoint within a subnet, the subnet must first have delegation enabled for the Private Link service.
Question
You have an Azure subscription that contains a virtual network named VNet1. VNet1 contains a subnet named Subnet1. You plan to add a private endpoint to Subnet. You need to ensure that you can route traffic between the private endpoint and the Azure Private Link service by using a user-defined route. What should you do first on Subnet1?
Options
- AEnable network policy.
- BEnable delegation.
- CCreate a service endpoint.
- DProvision a Standard Azure load balancer.
How the community answered
(29 responses)- A3% (1)
- B83% (24)
- C3% (1)
- D10% (3)
Why each option
To enable user-defined routes (UDRs) for a private endpoint within a subnet, the subnet must first have delegation enabled for the Private Link service.
While enabling network policy is relevant to how NSGs and UDRs are applied, subnet delegation is often a prerequisite for enforcing these policies effectively with private endpoints.
To properly apply network policies such as Network Security Groups (NSGs) or User-Defined Routes (UDRs) to private endpoint traffic within a subnet, the subnet must be delegated. Specifically, for Azure Private Link, subnet delegation ensures that network policies can be enforced on traffic flowing to and from the private endpoint, allowing UDRs to route traffic to the Private Link service.
Creating a service endpoint provides direct access to Azure services over the Azure backbone, but private endpoints use Azure Private Link and are a distinct connectivity model.
Provisioning a Standard Azure load balancer is unrelated to enabling Private Link routing with UDRs for a private endpoint.
Concept tested: Private Endpoint subnet delegation for network policies
Source: https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview#network-policy-for-private-endpoints
Community Discussion
No community discussion yet for this question.