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

CertStreak
Menu

Plan and configure shared or dedicated subnets

A worked example

Single answer

An engineer must create a private endpoint in vnet-1 for an existing Azure App Service web app. The exhibit shows the existing subnets of vnet-1.

Requirements:

  • Do not create any new subnets in vnet-1.
  • Do not change the delegation of any existing subnet.
SubnetAddress prefixDelegationCurrent contents
subnet-110.0.0.0/24NoneNetwork interfaces of test VMs
AzureBastionSubnet10.0.1.0/26NoneAzure Bastion host (Basic SKU)
snet-integration10.0.2.0/24Microsoft.Web/serverFarmsApp Service virtual network integration

In which subnet should the engineer place the private endpoint?

Choose one answer
Why

A private endpoint does not need a dedicated subnet. It can share a non-delegated subnet with VM network interfaces. AzureBastionSubnet is reserved only for Bastion resources. A delegated subnet such as snet-integration can't be used with a private endpoint. Because new subnets and delegation changes are not allowed, subnet-1 is the only subnet that meets every requirement.

  • Not correct: A new subnet for the endpoint. A separate subnet could host the private endpoint, but the requirements forbid creating new subnets.
  • Not correct: AzureBastionSubnet. AzureBastionSubnet is reserved exclusively for Azure Bastion resources, so it cannot host a private endpoint.
  • Correct: subnet-1. subnet-1 is not delegated and is not reserved for a service, so the private endpoint can share it with the VM network interfaces.
  • Not correct: snet-integration. A delegated subnet can't be used with a private endpoint. Removing the delegation would break the requirement not to change any existing delegation.

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