Cloud / Azure Private Link Interview questions
Last updated
1. What is Azure Private Link?
Azure Private Link lets you reach Azure PaaS services, and your own services hosted on Azure, through a private IP address inside your virtual network instead of a public endpoint. Traffic stays on the Microsoft backbone network and never crosses the public internet.
It works in two directions. As a consumer you create a private endpoint that points at one specific resource, such as a storage account or SQL server. As a provider you publish your own application behind a Standard Load Balancer using a Private Link service.
The practical effect is that mystorage.blob.core.windows.net behaves as if it lived in your own subnet, and you can then switch off its public network access completely.
Take quiz
From a Microsoft-managed public IP pool
From the subnet of your virtual network
From the Azure DNS address 168.63.129.16
the public internet protected only by TLS
a site-to-site VPN that Azure creates automatically
the Microsoft backbone network
2. What is a private endpoint in Azure?
A private endpoint is a network interface in your subnet that gets a private IP address and is mapped to one specific Azure resource and one sub-resource of it, for example the blob service of a single storage account.
Because the mapping is to a resource instance, not to the whole service type, you can allow access to your own storage account without opening a path to every other storage account in the region.
The endpoint is a regional resource that lives in the same region as its virtual network, but the target resource can be in a different region. Clients still use the normal service hostname, so DNS has to resolve that name to the private IP.
Take quiz
all PaaS resources in the subscription
one specific resource instance and sub-resource
every resource of that service type in the region
a read-only network interface with a private IP
a VPN gateway
a new Standard Load Balancer
a route server
3. What is an Azure Private Link service?
A Private Link service is the provider-side resource that publishes your own application to other virtual networks, subscriptions, or tenants over Private Link. It is attached to the frontend IP configuration of a Standard Load Balancer that fronts your backend VMs or pods.
Consumers create a private endpoint that targets the service by its alias or resource ID. Their traffic is source-NATed to an IP from a NAT subnet you choose, then delivered through the load balancer.
You control who can connect with visibility settings and an auto-approval list, so partner access does not require peering or exposing a public IP.
Take quiz
a VPN gateway
an Azure Firewall policy
the frontend of a Standard Load Balancer
a Basic Load Balancer
an Azure service tag
its NAT IP address
a peering link
its alias or resource ID
4. What are the main components of Azure Private Link?
Private Link is made of a few cooperating pieces. Some sit on the consumer side, some on the provider side, and DNS ties them together.
| Component | Side | Role |
| Private endpoint | Consumer | NIC with a private IP that maps to one target resource |
| Private Link service | Provider | Publishes a Standard Load Balancer frontend to consumers |
| Target resource + group ID | Provider | The PaaS resource and the sub-resource being exposed |
| Connection | Both | Approval relationship: Pending, Approved, Rejected, Disconnected |
| Private DNS zone + zone group | Consumer | Resolves the service FQDN to the private IP |
Take quiz
Private DNS zone group
Private Link service
Private endpoint NIC
Private endpoint
A NAT gateway
A network security group
A private DNS zone linked to the VNet
A route table
5. What is the purpose of Azure Private Link?
Its purpose is to let workloads use Azure services privately, without sending traffic to a public endpoint.
- Remove public exposure: the resource can have public network access disabled.
- Private reachability: the service gets an address from your own address space, reachable from peered VNets and from on-premises over VPN or ExpressRoute.
- Exfiltration control: an endpoint reaches one resource, not the whole service.
- Overlapping IP ranges: consumer and provider address spaces can overlap because no peering is needed.
Take quiz
Reaching a PaaS service without public internet exposure
Autoscaling a database tier
Encrypting data at rest in storage
Replicating blobs across regions
allowed only with a VPN gateway
blocked until one side is readdressed
not a problem, since no peering is required
6. What are the connection states of a private endpoint?
Every private endpoint connection has a state that shows where it is in the approval cycle. Only one state lets traffic through.
| State | Meaning |
| Pending | Request created, waiting for the resource owner to approve. |
| Approved | Owner approved it. Traffic flows. |
| Rejected | Owner declined the request. |
| Disconnected | Connection was removed, for example the owner deleted it or the endpoint was deleted. |
Take quiz
Approved
Disconnected
Pending
Approved
Rejected
Disconnected
Pending
7. What is a group ID (sub-resource) in a private endpoint?
The group ID selects which sub-service of the target resource the endpoint exposes. One private endpoint carries exactly one group ID.
| Service | Example group IDs |
| Storage account | blob, dfs, file, queue, table, web |
| Azure SQL Database | sqlServer |
| Key Vault | vault |
| Container Registry | registry |
| Service Bus | namespace |
If an application needs both Blob and Data Lake (dfs) access on the same account, you create two endpoints.
Take quiz
secrets
sqlServer
vault
namespace
one endpoint plus a service endpoint
one endpoint that covers every sub-resource
two private endpoints, one per group ID
8. How do you create a private endpoint using Azure CLI?
Use az network private-endpoint create with the subnet, the target resource ID, and the group ID.
az network private-endpoint create \ --name pe-stdata-blob \ --resource-group rg-net \ --vnet-name vnet-spoke1 \ --subnet snet-pe \ --private-connection-resource-id $(az storage account show -n stdata123 --query id -o tsv) \ --group-id blob \ --connection-name conn-stdata-blob
The command creates the NIC and the connection. If you have rights on the target it is auto-approved. DNS is a separate step, handled by a private DNS zone group.
Take quiz
--connection-name
--group-id
--vnet-name
--private-ip
the private DNS zone ID
the subnet ID
the ID of the target resource
the NSG ID
9. What is the role of Azure Private DNS zones in Private Link?
Clients keep using the normal service hostname, so something must make that name return the private IP. That is the job of a private DNS zone such as privatelink.blob.core.windows.net.
When a client queries mystorage.blob.core.windows.net, the public DNS answers with a CNAME to mystorage.privatelink.blob.core.windows.net. A private zone linked to your VNet answers that second name with an A record holding the endpoint's private IP.
The zone only answers queries that come from virtual networks linked to it, or from resolvers that forward into those networks.
Take quiz
every VNet in the subscription automatically
virtual networks linked to it, directly or through forwarders
any client on the internet
an SRV record
an A record with the private IP
an MX record
a TXT record holding the NIC ID
10. List common privatelink DNS zone names for Azure services?
Each service type has its own privatelink zone. These are the ones you meet most often:
| Service | Private DNS zone |
| Blob storage | privatelink.blob.core.windows.net |
| File storage | privatelink.file.core.windows.net |
| Azure SQL Database | privatelink.database.windows.net |
| Key Vault | privatelink.vaultcore.azure.net |
| Container Registry | privatelink.azurecr.io |
| Service Bus / Event Hubs | privatelink.servicebus.windows.net |
| Cosmos DB (NoSQL) | privatelink.documents.azure.com |
| App Service | privatelink.azurewebsites.net |
Always confirm the current zone name in the Microsoft documentation for the service, since some services need more than one zone.
Take quiz
privatelink.sqlserver.azure.com
privatelink.database.windows.net
privatelink.sql.windows.net
Azure Key Vault
Azure Cosmos DB
Azure Service Bus
Azure Container Registry
11. What is a private DNS zone group?
A private DNS zone group is a child object of a private endpoint that links the endpoint to one or more private DNS zones. Azure then creates, updates, and deletes the A records for you as the endpoint changes.
Without it, you add and clean up A records by hand, which is how stale records and outages usually start.
az network private-endpoint dns-zone-group create \ -g rg-net --endpoint-name pe-stdata-blob --name default \ --private-dns-zone privatelink.blob.core.windows.net \ --zone-name blob
Take quiz
approving the connection
assigning NSG rules
creating and removing the endpoint's A records
linking the zone to the VNet
the whole private DNS zone is deleted
the records stay and must be removed manually
its DNS records are removed from the zone
12. What is the network interface created with a private endpoint?
Creating a private endpoint also creates a read-only network interface in the endpoint's subnet. This NIC holds the private IP that clients connect to.
- It is created in the same resource group as the private endpoint.
- You cannot attach it to a VM or modify it directly.
- Its lifecycle follows the endpoint: delete the endpoint and the NIC goes with it.
- The IP is allocated from the subnet; you can request a specific static IP when you create the endpoint.
Take quiz
Yes, as a secondary NIC
No, it is read-only and managed by the endpoint
Yes, but only in the same availability zone
the target resource firewall changes
the DNS zone is unlinked
the private endpoint is deleted
the subnet NSG is edited
13. List some Azure services that support Private Link?
Support is broad and keeps growing. Common examples:
- Data: Storage, Azure SQL Database, Cosmos DB, Synapse, Data Factory
- Security and integration: Key Vault, Service Bus, Event Hubs, Event Grid
- Compute and apps: App Service, Functions, Container Registry, AKS private cluster API server
- AI and monitoring: Azure OpenAI and other Foundry resources, Azure Monitor through AMPLS
Check the Private Link availability page before designing, because the supported sub-resources and regions differ per service.
Take quiz
the Kubernetes API server endpoint
the public load balancer health probes
the node pool OS disks
the cluster autoscaler logs
NSG flow logs
the subnet delegation list
the Azure Private Link availability documentation
14. What is manual approval in a Private Link connection?
Manual approval means the resource owner must approve a private endpoint connection before it works. The connection sits in Pending until then.
It applies when you create an endpoint to a resource you do not have approval rights on (the privateEndpointConnectionsApproval permission), when the resource is in another tenant, or when a Private Link service has no matching entry in its auto-approval list.
You can add a request message to tell the owner who is asking and why.
Take quiz
Approved
Rejected
Disconnected
Pending
the owner of the target resource
Microsoft support
the owner of the consumer VNet
the DNS zone administrator
15. What are the prerequisites for creating a private endpoint?
Before you create one, line up the following:
- A virtual network and subnet with at least one free IP address, in the region where the endpoint will live.
- The resource ID and group ID of the target.
- Permissions to create network resources, plus approval rights on the target or an owner who can approve.
- A DNS plan: the right privatelink zone, linked to the VNets that need it, or forwarders for on-premises.
- The
Microsoft.Networkresource provider registered on the subscription.
Take quiz
the target resource
the virtual network it is placed in
the private DNS zone
an ExpressRoute circuit
a Basic public IP
a VPN gateway
a subnet with an available IP address
16. What is the NAT IP configuration in a Private Link service?
A Private Link service translates each consumer's source address to an IP from a NAT subnet in the provider's VNet. Those addresses are the NAT IP configurations.
You can configure up to 8 per service, and each one adds about 64,000 ports of capacity, so adding NAT IPs is how you scale concurrent connections.
Side effect: the backend sees the NAT IP, not the consumer's real address, unless TCP Proxy Protocol v2 is enabled. The NAT subnet also needs Private Link service network policies disabled.
Take quiz
the private endpoint's NIC IP
a NAT IP of the Private Link service
the consumer VM's private IP
enable accelerated networking on the endpoint
add another private DNS zone
add more NAT IP configurations
17. What is Private Link Center in the Azure portal?
Private Link Center is the portal hub for everything Private Link. From one blade you can see private endpoints and Private Link services, review pending connection requests, approve or reject them, and start creating new endpoints.
It saves you from opening each target resource individually to find out what is waiting for approval.
Take quiz
Private Link Center
Azure Advisor
Cost Management
Service Health
configure BGP peering
set storage lifecycle policies
create private endpoints and manage connections
18. What is Azure Monitor Private Link Scope (AMPLS)?
An Azure Monitor Private Link Scope groups Azure Monitor resources, such as Log Analytics workspaces, Application Insights components, and data collection endpoints, behind a single private endpoint.
Each scope has access modes for ingestion and query. Open allows both private and public traffic, while Private Only accepts traffic only from the private endpoint.
The endpoint needs several DNS zones, for example privatelink.monitor.azure.com and the oms and ods opinsights zones.
Take quiz
only one Log Analytics workspace
the Azure Monitor resources linked to that scope
every resource in the subscription
Private Only
Audit
Open
Hybrid
19. What are managed private endpoints?
Managed private endpoints are created by services like Azure Data Factory and Synapse inside the Microsoft-managed virtual network that runs their integration runtimes, not inside your VNet.
You request one to a data source such as a storage account or SQL server, and the data source owner approves it. After that the service reaches the source privately even if its public access is off.
Because they live in a managed network, you do not pick a subnet or manage a NIC.
Take quiz
in your hub virtual network
in the service's Microsoft-managed virtual network
on the on-premises router
peer the two VNets
create a private DNS zone
open port 443 in an NSG
approve the connection
20. How do you disable public access after enabling Private Link?
Once the endpoint works, turn off the public path on the resource. Most services expose a public network access setting for this. On a storage account:
az storage account update \ --name stdata123 --resource-group rg-data \ --public-network-access Disabled
Move every client to the private name first, and verify DNS from each network. Then test that a request from outside your network fails and one from inside succeeds.
Take quiz
delete the private DNS zone
confirm all clients resolve and reach the private endpoint
remove the NSG
reject the endpoint connection
load balancer SKU
subnet delegation
public network access
21. What is the difference between a service endpoint and a private endpoint?
Both keep traffic on the Azure backbone, but they work very differently. A service endpoint extends your subnet's identity to the service's public IP. A private endpoint gives the resource a private IP in your VNet.
| Aspect | Service endpoint | Private endpoint |
| Target address | Service public IP | Private IP in your subnet |
| Granularity | Service type per subnet (can be narrowed with policies) | One specific resource |
| On-premises access | No | Yes, over VPN or ExpressRoute |
| DNS changes | None | Private DNS required |
| Cost | Free | Per hour plus data processed |
Pick the private endpoint when on-premises access or resource-level isolation matters.
Take quiz
Private endpoint
Both equally
Neither one
Service endpoint
Private endpoint
Service endpoint
Private Link service
Managed private endpoint
22. Why does Private Link need DNS configuration?
Applications connect by hostname, and TLS certificates are issued for that hostname. If DNS keeps returning the service's public IP, traffic skips the private endpoint entirely.
So the name must stay the same but resolve to the endpoint's private IP inside your network. That is why you connect to mystorage.blob.core.windows.net and not to a raw IP.
With public access disabled, a wrong DNS answer does not fall back gracefully. Requests simply fail, which is the most common Private Link outage.
Take quiz
FQDN traffic is billed at a lower rate
TLS certificates and routing are tied to the service hostname
private IPs rotate every day
fail
automatically use the private endpoint
are routed through a NAT gateway
are queued until DNS refreshes
23. How does DNS resolution work for a storage account private endpoint?
The client asks for mystorage.blob.core.windows.net. Public DNS answers with a CNAME to mystorage.privatelink.blob.core.windows.net. Inside a VNet linked to the private zone, that second name resolves to the endpoint's private IP. Outside, it resolves to the public IP.
sequenceDiagram participant V as VM in VNet participant D as Azure DNS participant Z as Private DNS zone V->>D: mystorage.blob.core.windows.net D-->>V: CNAME mystorage.privatelink.blob.core.windows.net V->>D: mystorage.privatelink.blob.core.windows.net D->>Z: lookup in linked zone Z-->>V: A 10.0.2.5
The CNAME is why the same hostname works both inside and outside your network.
Take quiz
an NS record for the VNet
an A record with the private IP
a CNAME to the privatelink name
a PTR record
the storage account firewall
the NIC ARP table
the privatelink private DNS zone linked to the VNet
24. How do on-premises clients resolve private endpoint names?
On-premises DNS cannot talk to Azure's resolver at 168.63.129.16 directly, because that address is only reachable from inside Azure. So you add a hop.
- Deploy an Azure DNS Private Resolver inbound endpoint, or a DNS forwarder VM, in a VNet linked to the private zones.
- On your on-premises DNS, create a conditional forwarder for the service's public zone, such as
blob.core.windows.net, pointing to that inbound endpoint. - Make sure VPN or ExpressRoute routes the private endpoint subnet to on-premises.
Forwarding the public zone name keeps non-private accounts resolving normally, since Azure DNS still returns their public IPs.
Take quiz
the target resource firewall
a DNS Private Resolver inbound endpoint or a forwarder in Azure
the private endpoint NIC IP
168.63.129.16 directly
Private Link blocks it by design
it answers MX queries only
that address is reachable only from inside Azure
25. How does Private Link protect against data exfiltration?
A private endpoint maps to one resource instance. A VM using the endpoint to storageA has no path through that endpoint to storageB, even in the same region.
A service endpoint is broader: it allows the subnet to reach the whole service type unless you add service endpoint policies. Private Link also works in one direction. Only the consumer starts connections, and the provider cannot reach back into your VNet.
For full protection, also disable public access on the target and block outbound internet or restrict it with a firewall.
Take quiz
a specific resource instance
an entire service tag
a whole region
a whole subscription
Yes, if both share a subscription
Yes, to any account in the region
No, the endpoint reaches only account A
26. What is the difference between a private endpoint and a Private Link service?
They are the two ends of the same connection. The Private Link service publishes your application. The private endpoint consumes it.
| Aspect | Private endpoint | Private Link service |
| Side | Consumer | Provider |
| Purpose | Get a private IP for a remote resource | Expose your app behind a Standard Load Balancer |
| Created in | Consumer subnet | Provider VNet with a NAT subnet |
| Needs a load balancer | No | Yes, Standard SKU |
Take quiz
Private endpoint
Private DNS zone
Route table
Private Link service
the Private Link service
the NAT gateway
the private endpoint
27. Why is a Standard Load Balancer required for a Private Link service?
A Private Link service is attached to a frontend IP configuration of a Standard Load Balancer. That load balancer decides which backend instance receives each connection, using health probes and its distribution rules.
The Basic SKU is not supported. The service relies on Standard SKU features and platform integration, so the provider uses an internal Standard Load Balancer and publishes it.
Take quiz
an inbound NAT rule
the backend pool
a frontend IP configuration
a health probe
Basic
either Basic or Standard
Standard
28. How does a Private Link service expose your application to consumers?
- The provider creates a Standard Load Balancer and a Private Link service on its frontend, with a NAT subnet.
- The provider shares the service alias or resource ID.
- The consumer creates a private endpoint to that alias in their own VNet.
- The connection is auto-approved or approved manually.
- Consumer traffic reaches the endpoint IP, is NATed, and lands on a backend through the load balancer.
flowchart LR C["Consumer VM"] --> E["Private endpoint 10.1.0.4"] E --> S["Private Link service"] S --> L["Standard LB frontend"] L --> B["Backend VMs"]
No peering, no public IP, and no address planning between the two networks.
Take quiz
a public IP allow-list on the load balancer
a private endpoint that targets the service alias or resource ID
a VNet peering with the provider
Only when in different regions
Yes, always
No, the private endpoint connection is enough
29. How can a Private Link service see the original client IP?
By default the backend sees the service's NAT IP, so every consumer looks the same. Enable TCP Proxy Protocol v2 on the service to fix this.
With it on, each connection starts with a proxy header carrying the consumer's source IP and a LinkID that identifies the private endpoint. Your application or proxy, such as NGINX or HAProxy, must be configured to read that header.
az network private-link-service update \ -g rg-prov -n pls-app --enable-proxy-protocol true
Take quiz
a header with the source IP and private endpoint LinkID
another NAT IP
a DNS record
a TLS client certificate
the consumer's public IP
the consumer's NIC MAC address
the NAT IP of the Private Link service
30. How do you troubleshoot a private endpoint that resolves to a public IP?
A public answer means DNS is not using your private zone. Work from the client outward:
- Run
nslookup mystorage.blob.core.windows.netfrom the failing client and check for the CNAME to the privatelink name. - Confirm the private DNS zone exists and has an A record for the account.
- Confirm the zone is linked to the client's VNet.
- If the VNet uses custom DNS, check that server forwards to Azure DNS or a Private Resolver.
- From on-premises, check the conditional forwarder and any hosts file or DNS cache.
Take quiz
raise the NSG rule priority
run nslookup from the affected client and read the CNAME chain
restart the target PaaS resource
the private DNS zone not being linked to the VNet
accelerated networking on the NIC
a Basic public IP
a UDR on the subnet
31. How do you troubleshoot a private endpoint stuck in Pending state?
Pending means the resource owner has not approved the connection. DNS and routing are not the problem yet.
- Open the target resource and check Networking > Private endpoint connections.
- Find someone with approval permission on that resource.
- Approve it in the portal or by CLI.
- If it was rejected, create a new endpoint, since a rejected request cannot be revived.
az network private-endpoint-connection approve \ --id <connection-resource-id> --description "Approved"
Take quiz
the NSG blocks 443
DNS has not propagated
the resource owner has not approved yet
the subnet is out of IPs
az network private-dns link approve
az network private-endpoint update --approve
az network private-endpoint-connection approve
32. What happens when you delete a private endpoint?
The endpoint and its NIC are removed and the private IP returns to the subnet. On the target, the connection moves to Disconnected. The target resource itself and its data are untouched.
What happens to DNS depends on how you set it up. A zone group removes the A record. Manually created records stay behind, and clients keep resolving to an IP that no longer answers.
If public access was disabled, the service is unreachable from that network until you recreate the endpoint.
Take quiz
Yes, with all its data
No, the account and data remain
Only if soft delete is off
move to the target resource
switch to the public IP
remain and cause stale resolution
are cleaned automatically by Azure
33. How do NSGs and UDRs apply to private endpoints?
Historically, NSG rules and UDRs were ignored for private endpoint traffic. You now opt in per subnet with the privateEndpointNetworkPolicies property.
| Value | Effect |
| Disabled | NSG and UDR ignored for endpoints |
| NetworkSecurityGroupEnabled | NSG applies |
| RouteTableEnabled | UDR applies |
| Enabled | Both apply |
az network vnet subnet update -g rg-net --vnet-name vnet-hub \ -n snet-pe --private-endpoint-network-policies Enabled
Without this, the endpoint's /32 system route beats broader UDR prefixes, so firewall steering silently does not happen.
Take quiz
privateEndpointNetworkPolicies
serviceEndpointPolicies
privateLinkServiceNetworkPolicies
delegations
nothing, because UDRs always win
only the default route on-premises
broader UDR routes, so traffic skips the firewall
34. How does traffic from peered VNets reach a private endpoint?
Peering makes the endpoint's private IP routable from the peered VNet, and global peering works across regions. Routing is only half of it, though.
The spoke must also resolve the service name to that private IP. Either link the private zone to the spoke VNet, or point the spoke at a central DNS forwarder or Private Resolver.
If the endpoint subnet has NSG policies enabled, the rules must allow the spoke's address range. Spoke-to-spoke access to a hub endpoint works because each spoke peers with the hub that hosts it.
Take quiz
a second endpoint per spoke
DNS that resolves the name to the private IP
a service endpoint on each subnet
No, endpoints are single-region only
Only through a VPN gateway
Yes, with global VNet peering
35. How do you connect to a resource in another tenant using Private Link?
You need the target's resource ID (or alias for a Private Link service) and an owner who will approve the request.
- In the portal, choose Connect to an Azure resource by resource ID or alias, or use the CLI with
--manual-request true. - Enter the resource ID, the group ID, and a request message.
- The connection stays Pending until the other tenant's owner approves it.
- Set up DNS in your own tenant so the name resolves to your endpoint IP.
Permissions are separate in each tenant, so approval is always manual across tenants.
Take quiz
auto-approval
manual approval by the target owner
VNet peering across tenants
Connect to a resource in my directory
Use a service tag
Connect to an Azure resource by resource ID or alias
36. When should you choose Private Link over service endpoints?
Choose Private Link when any of these apply:
- On-premises clients must reach the service privately over VPN or ExpressRoute.
- You need access to a single resource, not the whole service.
- Compliance requires that the service has no public path.
- The target is in another region or tenant.
Service endpoints remain fine for simple Azure-only access where the public IP is acceptable, no DNS work is wanted, and cost matters, since they are free.
Take quiz
only subnet-level access from Azure VMs
private access from on-premises over ExpressRoute
zero cost and no DNS work
on-premises must reach the service privately
each resource must be isolated individually
only Azure subnets need access and cost matters
37. How do you design Private Link DNS in a hub-and-spoke network?
Keep DNS central. One copy of each privatelink zone lives in a connectivity subscription and is linked to the hub, and spokes use the hub resolver.
flowchart LR S["Spoke VMs"] --> R["Hub DNS Private Resolver"] O["On-premises DNS"] --> I["Inbound endpoint"] I --> R R --> Z["Central private DNS zones"]
- Spokes set the hub resolver as their DNS server, or link the zones directly.
- Endpoints in any spoke register A records in the central zones through their zone groups.
- Use Azure Policy (DeployIfNotExists) so new endpoints join the right zone automatically.
Duplicate zones per spoke cause split answers, which is the usual design mistake.
Take quiz
inside each private endpoint
once, centrally, linked to the hub and used by all VNets
one copy per spoke
relying on peering alone to share zones
attaching an NSG to the zone
setting the hub resolver as their DNS server or linking the zones
38. What is the difference between a private endpoint and VNet injection?
With VNet injection, the service's own compute is deployed into a subnet you provide, for example SQL Managed Instance, API Management in internal mode, or Databricks. You manage the subnet, its delegation, and its rules.
With a private endpoint, nothing of the service is deployed into your network. You only get a NIC that forwards privately to a service running elsewhere.
| Aspect | VNet injection | Private endpoint |
| Service compute | In your subnet | Outside your VNet |
| Subnet | Dedicated, often delegated | Shared subnet is fine |
| Direction | Inbound and outbound | Inbound to the service only |
| Footprint | Large address needs | One IP per endpoint |
Take quiz
a NIC maps to a remote resource
the service instances are deployed into your subnet
a DNS override is applied
the service nodes run in your subnet
it provides outbound NAT for the service
it gives inbound private access to a service that runs outside your VNet
39. How does App Service use private endpoints and VNet integration?
They solve opposite directions, and a fully private web app usually needs both.
| Feature | Direction | Purpose |
| Private endpoint | Inbound | Clients reach the app on a private IP |
| Regional VNet integration | Outbound | The app reaches resources in your VNet |
DNS uses privatelink.azurewebsites.net, and the SCM (Kudu) site resolves through the same zone. Once the endpoint works, you can disable public access on the app.
Take quiz
a service endpoint on the app
a private endpoint
regional VNet integration
inbound traffic to the app
DNS zone linking
outbound traffic from the app
40. Why does a storage account need multiple private endpoints?
Each storage service is a separate sub-resource, and one endpoint carries exactly one group ID. Using blob and file on the same account means two endpoints.
A data lake with hierarchical namespace is the classic case. Tools use both the blob and dfs endpoints, so you need an endpoint for each, plus the zones privatelink.blob.core.windows.net and privatelink.dfs.core.windows.net.
Only create the ones you use, since each endpoint is billed.
Take quiz
table and queue only
blob and dfs
web and file only
a dedicated subscription
its own storage account
its own matching privatelink DNS zone
41. How do you enforce private endpoints using Azure Policy?
Use three kinds of policy effects at management group or subscription scope:
- Deny creation of resources that leave public network access enabled.
- Audit existing resources first, to see the impact before blocking.
- DeployIfNotExists to add the private DNS zone group to new endpoints so records register automatically.
Built-in definitions exist for most services, usually in the Network category. Roll out in audit mode, fix findings, then switch to deny. Use exemptions for the few resources that must stay public.
Take quiz
DeployIfNotExists
Audit
Disabled
Deny
AuditIfNotExists
Deny
Audit
Disabled
42. How can you scale a Private Link service for many connections?
The limit is usually SNAT port capacity on the NAT IPs, since every consumer connection is translated.
- Add NAT IP configurations. You can have up to 8, each adding about 64,000 ports.
- Scale out the backend pool behind the Standard Load Balancer.
- Watch for port exhaustion and unhealthy probes in metrics.
- Enable TCP Proxy Protocol v2 if you need per-consumer visibility or throttling.
Take quiz
64
unlimited
2
8
disable proxy protocol
add more private DNS zones
add more NAT IP configurations
43. How does Azure Front Door Premium connect to origins using Private Link?
Front Door Premium can create a private endpoint from its own managed network to an origin such as a storage blob, an App Service, or an internal load balancer through a Private Link service.
- Enable Private Link when adding the origin and give a request message.
- The connection appears as Pending on the origin.
- The origin owner approves it.
- Disable public access on the origin so only Front Door can reach it.
Standard and Classic tiers do not support this.
Take quiz
Standard
Classic
Premium
All tiers
peer Front Door's VNet
add Front Door to an NSG
approve the private endpoint connection
44. How do you troubleshoot connectivity to a private endpoint?
Work through the path in order:
- DNS: does the name resolve to the private IP?
- State: is the connection Approved?
- Port: can you open a TCP connection?
- NSG/UDR: if network policies are on, do rules allow it?
- Network Watcher: use connection troubleshoot or IP flow verify.
- Target firewall: some services need the endpoint allowed explicitly.
- On-premises: check routes over VPN or ExpressRoute.
Test-NetConnection mystorage.blob.core.windows.net -Port 443
Take quiz
Cost Analysis
Network Watcher connection troubleshoot
Azure Advisor
Activity log export
the RBAC role assignment
the storage encryption key
TCP reachability to the resolved address
45. How can you optimize Private Link costs?
Cost comes from two meters: an hourly charge per endpoint and a charge for data processed through it. Peering adds its own data charges.
- Share endpoints from a hub across spokes instead of one per app.
- Consolidate storage accounts where design allows.
- Delete orphaned or Disconnected endpoints.
- Use service endpoints for low-risk, Azure-only access.
- Use one AMPLS endpoint for Azure Monitor rather than several.
Take quiz
number of NSG rules
hourly endpoint charges and data processed
DNS queries only
duplicating endpoints in every subnet
one endpoint per developer
sharing hub endpoints across spokes
46. Explain the execution flow of a connection request to a Private Link service?
sequenceDiagram
participant C as Consumer
participant P as Azure control plane
participant S as Private Link service
C->>P: Create endpoint with alias
P->>S: Check visibility
S->>S: Match auto-approval list
alt Subscription auto-approved
S-->>C: Approved
else Not listed
S-->>C: Pending
S->>S: Provider approves
S-->>C: Approved
end
C->>S: Traffic via endpoint IP
Visibility decides who may request. The auto-approval list decides who skips manual approval. Once Approved, the NIC passes traffic to the service NAT IP and the load balancer.
Take quiz
which NAT IP is used
who can see and request a connection
which health probe runs
receive automatic VNet peering
bypass visibility checks
get connections approved without a manual step
47. Explain the internal working of a private endpoint packet flow?
A private endpoint adds a /32 system route in the VNet, with next hop type InterfaceEndpoint. A packet to the endpoint IP matches that route and is handled by Azure's software-defined network on the host, not by a gateway or appliance.
flowchart LR V["Client VM"] --> R["/32 route, InterfaceEndpoint/"] R --> N["Azure SDN on host"] N --> T["Target service"]
The path is one-way: only the consumer can start connections. The /32 route is also why it beats less specific UDRs unless network policies are enabled.
Take quiz
VirtualNetworkGateway
Internet
InterfaceEndpoint
VirtualAppliance
both consumer and provider
only the service
only the consumer side
48. How do you design disaster recovery with Private Link?
An endpoint lives in one region and points at one replica, so it does not fail over by itself. Pre-build the private path in the secondary region.
- Create a VNet and subnet in the secondary region.
- Create endpoints to the secondary replicas, for example
blob_secondaryfor RA-GRS storage, or the secondary SQL server in a failover group. - Link the privatelink zones to both regions' VNets.
- Test failover and DNS resolution regularly.
Take quiz
dfs_backup
blob_secondary
blob_replica
blob_dr
a second tenant
a Basic load balancer in the primary
an endpoint in the secondary region to the secondary resource
49. How do you inspect private endpoint traffic with Azure Firewall?
Out of the box, traffic goes straight to the endpoint because of its /32 route. To force it through the firewall:
- Enable RouteTableEnabled or Enabled in
privateEndpointNetworkPolicieson the endpoint subnet. - Add a UDR that sends the endpoint subnet prefix or endpoint IPs to the firewall.
- Allow the flow with network rules on the private IP and port.
- Turn on SNAT for these flows so return traffic stays symmetric.
Take quiz
serviceEndpoints set to Microsoft.Storage
privateEndpointNetworkPolicies set to RouteTableEnabled or Enabled
disableBgpRoutePropagation only
to hide the NIC from DNS
to encrypt the traffic
to keep return traffic symmetric through the firewall
50. How do you expose an AKS service through Private Link service?
The AKS cloud provider can create the Private Link service for you from annotations on an internal LoadBalancer Service.
apiVersion: v1 kind: Service metadata: name: orders-api annotations: service.beta.kubernetes.io/azure-load-balancer-internal: "true" service.beta.kubernetes.io/azure-pls-create: "true" service.beta.kubernetes.io/azure-pls-name: "pls-orders" spec: type: LoadBalancer ports: - port: 443 selector: app: orders
Consumers then create a private endpoint to the service alias. Check the cloud-provider-azure docs for visibility and auto-approval annotations for your AKS version.