Skip to content

AZ-700 · Domain 4: Design and implement private access to Azure services · 13% of the exam

Task 4.2: Design and implement service endpoints

When a service endpoint fits, creating it, service endpoint policies, and controlling access to the service through it.

Study it

Sample questions

Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.

Question 1 · choose 1

A storage account in West Europe has these network settings: Public network access: Enabled from selected virtual networks and IP addresses; Virtual network rules: VNet-App/snet-app; IP network rules: None. A partner company, in its own Microsoft Entra tenant, must reach the account from its subnet snet-partner, which already has a service endpoint for Microsoft.Storage. What should you do?

  1. AAdd an IP network rule for snet-partner's private address range
  2. BAdd a resource instance rule for the partner's virtual network
  3. CTell the partner it can't be done, because virtual network rules stay within one tenant
  4. DAdd a virtual network rule for snet-partner
Show the answer and why
  • AAdd an IP network rule for snet-partner's private address range

    Incorrect

    IP network rules take public addresses; private ranges aren't allowed.

  • BAdd a resource instance rule for the partner's virtual network

    Incorrect

    Resource instance rules admit specific Azure resource instances from the same tenant, not subnets of another tenant.

  • CTell the partner it can't be done, because virtual network rules stay within one tenant

    Incorrect

    A virtual network rule can name a subnet from any subscription in any Microsoft Entra tenant.

  • DAdd a virtual network rule for snet-partner

    Correct

    Virtual network rules can admit subnets of virtual networks in any subscription and tenant, as long as the subnet has the service endpoint.

A storage account can allow traffic from subnets in any virtual network, from any subscription in any Microsoft Entra tenant, by adding a virtual network rule for the subnet. The subnet needs a service endpoint for Azure Storage.

Question 2 · choose 1

VMs in snet-batch reach a storage account that allows them through an IP network rule for the subnet's NAT gateway public address. Long transfers run every hour. You'll enable a service endpoint for Microsoft.Storage on snet-batch. How should you proceed?

  1. AEnable the endpoint at any time; the IP rule for the NAT gateway address keeps matching
  2. BEnable the endpoint during a transfer; open connections move to the new path
  3. CAdd a virtual network rule for snet-batch, then enable the endpoint when no transfer is running
  4. DRemove the IP network rule first, then enable the endpoint
Show the answer and why
  • AEnable the endpoint at any time; the IP rule for the NAT gateway address keeps matching

    Incorrect

    With the endpoint, the VMs reach the service from their private addresses, so rules for public addresses stop matching.

  • BEnable the endpoint during a transfer; open connections move to the new path

    Incorrect

    Existing open TCP connections to the service are closed during the switch.

  • CAdd a virtual network rule for snet-batch, then enable the endpoint when no transfer is running

    Correct

    The account must admit the subnet itself, and the switch closes open connections, so it belongs between transfers.

  • DRemove the IP network rule first, then enable the endpoint

    Incorrect

    Removing the only rule that admits the VMs cuts their access; the account needs a virtual network rule for the subnet.

After a service endpoint is enabled, traffic from the subnet to the service uses the VMs' private addresses as source, so firewall rules for public addresses stop working, and open TCP connections are closed during the switch.

Question 3 · choose 1

VMs in snet-app must reach a storage account only through a network virtual appliance in snet-nva of the same virtual network, which inspects the traffic. The account must admit only traffic that has passed the appliance. How should you use service endpoints?

  1. AEnable the endpoint on snet-app only, with a virtual network rule for snet-app
  2. BEnable the endpoint on snet-nva only, with a virtual network rule for snet-nva
  3. CEnable the endpoint on both subnets, with virtual network rules for both
  4. DDon't use them; service endpoints can't be combined with an appliance
Show the answer and why
  • AEnable the endpoint on snet-app only, with a virtual network rule for snet-app

    Incorrect

    The account would then admit the app subnet itself, not only the appliance's subnet.

  • BEnable the endpoint on snet-nva only, with a virtual network rule for snet-nva

    Correct

    Applying the endpoint to the appliance's subnet and securing the resource only to that subnet is the documented inspection scenario.

  • CEnable the endpoint on both subnets, with virtual network rules for both

    Incorrect

    A rule for snet-app admits the app subnet itself as well as the appliance's subnet.

  • DDon't use them; service endpoints can't be combined with an appliance

    Incorrect

    Service endpoints can be applied to the subnet where an appliance runs.

To inspect or filter traffic sent to an Azure service, you can deploy a network virtual appliance in the virtual network, apply service endpoints to the appliance's subnet, and secure the service resource only to that subnet.

Question 4 · choose 1

You script the storage account rules with Azure CLI and add a virtual network rule for subnet snet-etl, which has no service endpoints yet. In the portal, colleagues never had to create endpoints separately. What should the script also do?

  1. ANothing; the CLI creates the endpoint along with the rule
  2. BAdd an IP network rule for the subnet's range as well
  3. CCreate a private endpoint in snet-etl
  4. DEnable the Microsoft.Storage service endpoint on snet-etl
Show the answer and why
  • ANothing; the CLI creates the endpoint along with the rule

    Incorrect

    The portal creates the service endpoint automatically; PowerShell and Azure CLI need it created manually.

  • BAdd an IP network rule for the subnet's range as well

    Incorrect

    IP rules don't replace the subnet's service endpoint.

  • CCreate a private endpoint in snet-etl

    Incorrect

    A virtual network rule relies on a service endpoint, not a private endpoint.

  • DEnable the Microsoft.Storage service endpoint on snet-etl

    Correct

    With PowerShell or Azure CLI the service endpoint has to be created manually.

When network rules are created in the Azure portal, the service endpoints are created automatically as subnets are selected. PowerShell and Azure CLI provide commands to create them manually.

Question 5 · choose 1

A geo-redundant storage account with read access (RA-GRS) admits only subnets in West Europe through virtual network rules. During a regional outage, apps in the paired region must read the secondary. What should you do in advance?

  1. ANothing; the rules move to the paired region automatically
  2. BAdd the paired region's public IP ranges to the account as IP network rules ahead of the outage
  3. CCreate paired-region networks with Storage service endpoints, and add network rules for them
  4. DChange the account's redundancy to geo-zone-redundant storage
Show the answer and why
  • ANothing; the rules move to the paired region automatically

    Incorrect

    Access from the paired region needs its own virtual networks, endpoints and rules.

  • BAdd the paired region's public IP ranges to the account as IP network rules ahead of the outage

    Incorrect

    The guidance is to grant the paired region's virtual networks through service endpoints and network rules.

  • CCreate paired-region networks with Storage service endpoints, and add network rules for them

    Correct

    Planning for disaster recovery means creating the paired region's networks ahead of time and granting them access.

  • DChange the account's redundancy to geo-zone-redundant storage

    Incorrect

    The redundancy option doesn't change which networks the account admits.

For disaster recovery, create virtual networks in the paired region in advance, enable service endpoints for Azure Storage, and add network rules for them to the geo-redundant accounts.

Practice domain 4 →Practice all domains →