Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Configure Azure private endpoints to secure access to Azure platform as a service (PaaS) resources

A worked example

Single answer

Contoso runs an AI agent application on virtual machines in VNet1. The application calls a Microsoft Foundry resource named aoai-contoso that exposes endpoints under openai.azure.com, cognitiveservices.azure.com and services.ai.azure.com. The application uses all three endpoint suffixes. You created a private endpoint for aoai-contoso (sub-resource account) in VNet1. You created and linked only the privatelink.openai.azure.com private DNS zone to VNet1. Public network access on aoai-contoso is set to Disabled. Calls to the openai.azure.com endpoint succeed, but calls to the other two endpoints fail.

Requirements:

  • Public network access on aoai-contoso must remain Disabled.
  • All application traffic to aoai-contoso must use the private endpoint.
  • Every endpoint the application uses must resolve correctly from VNet1.

What should you do?

Choose one answer
Why

The workload uses three endpoint suffixes, so each needs its corresponding private DNS configuration. Only the openai zone is linked, leaving the other two endpoint types without private resolution. Create the missing zones, add records pointing to the corresponding private endpoint IP addresses, and link both zones to VNet1. This enables private access to every endpoint the application uses while public network access remains disabled.

  • Not correct: Add A records for the other two host names to the existing privatelink.openai.azure.com zone. Each public endpoint suffix maps to its own private DNS zone. Records for other suffixes in the openai zone do not give correct resolution for those endpoints.
  • Not correct: Enable a Microsoft.CognitiveServices service endpoint on the subnet of the virtual machines. Service endpoints use the public endpoint of the service and give no private IP. This does not configure the required private endpoint DNS resolution.
  • Not correct: Set public network access on aoai-contoso to allow selected networks that include VNet1. This re-enables the public endpoint, which breaks the requirement to keep public network access disabled.
  • Not correct: Configure private endpoint records and VNet1 links for privatelink.cognitiveservices.azure.com and privatelink.openai.azure.com. The openai.azure.com endpoint already works, and this configuration still leaves services.ai.azure.com without private resolution.
  • Correct: Create the privatelink.cognitiveservices.azure.com and privatelink.services.ai.azure.com zones with records and link both to VNet1. This workload uses all three endpoint suffixes, each of which has a corresponding private DNS zone. Adding the two missing zones with records pointing to the corresponding private endpoint IP addresses enables private resolution for the failing endpoints.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free