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

CertStreak
Menu

Configure firewall settings on Key Vault

A worked example

Single answer

The key vault kv-fin-prod uses the Azure RBAC permission model. Its firewall is enabled with Allow public access from specific virtual networks and IP addresses selected. The only IP rule is 198.51.100.0/27, the range used by the application servers. The trusted services exception is not selected.

An engineer works from a laptop whose public IP address is 203.0.113.45. The engineer has all management-plane and data-plane permissions required for the following operations. From the laptop, the engineer:

  1. Deploys an ARM template that creates a secret resource in kv-fin-prod through Azure Resource Manager.
  2. Browses to kv-fin-prod in the Azure portal.
  3. Opens Secrets in the portal to list the vault's secrets.

Which outcome should the engineer expect?

Choose one answer
Why

The Key Vault firewall filters data plane traffic only. An ARM template that creates a secret uses the Resource Manager endpoint, so it is not subject to the firewall rules. In the portal, the engineer can open the vault, but listing secrets is a data plane request from a client address that is not allowed, so it fails despite the engineer having the required permissions.

  • Not correct: Template deployment succeeds; the vault is visible in the portal; listing secrets succeeds. Portal access to secrets is a data plane operation, and the laptop's address is not in the allow list, so the role assignment alone does not let the engineer list secrets.
  • Not correct: Template deployment fails; the vault is visible in the portal; listing secrets fails. Secrets deployed through ARM templates go through the Resource Manager control plane endpoint, which firewall rules do not restrict.
  • Not correct: Template deployment succeeds; the vault is not visible in the portal; listing secrets fails. Users outside the allow list can still browse to the vault in the portal; only data plane actions such as listing secrets are blocked.
  • Correct: Template deployment succeeds; the vault is visible in the portal; listing secrets fails. ARM deployment of a secret is a control plane operation that the firewall does not restrict, browsing to the vault works, and listing secrets is a data plane call from an address outside the allow list.

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