nerdexam
Microsoft

AZ-500 · Question #11

Case Study 2 - Contoso, Ltd Overview Contoso, Ltd. is a consulting company that has a main office in Montreal and two branch offices in Seattle and New York. The company hosts its entire server…

Contoso Case Study - Virtual Network Modify vs. Delete Rights The entire question turns on Azure Resource Lock behavior applied at the Resource Group level, combined with User2 having sufficient role permissions (Contributor or higher) on the relevant RGs since they created the…

Submitted by akirajp· Mar 6, 2026Secure identity and access

Question

Case Study 2 - Contoso, Ltd Overview Contoso, Ltd. is a consulting company that has a main office in Montreal and two branch offices in Seattle and New York. The company hosts its entire server infrastructure in Azure. Contoso has two Azure subscriptions named Sub1 and Sub2. Both subscriptions are associated to an Azure Active Directory (Azure AD) tenant named contoso.com. Technical requirements Contoso identifies the following technical requirements: Deploy Azure Firewall to VNetWork1 in Sub2. Register an application named App2 in contoso.com. Whenever possible, use the principle of least privilege. Enable Azure AD Privileged Identity Management (PIM) for contoso.com Existing Environment Azure AD Contoso.com contains the users shown in the following table. Contoso.com contains the security groups shown in the following table. Sub1 Sub1 contains six resource groups named RG1, RG2, RG3, RG4, RG5, and RG6. User2 creates the virtual networks shown in the following table. Sub1 contains the locks shown in the following table. Sub1 contains the Azure policies shown in the following table. Sub2 Sub2 contains the virtual machines shown in the following table. All virtual machines have the public IP addresses and the Web Server (IIS) role installed. The firewalls for each virtual machine allow ping requests and web requests. Sub2 contains the network security groups (NSGs) shown in the following table. NSG1 has the inbound security rules shown in the following table. NSG2 has the inbound security rules shown in the following table. NSG3 has the inbound security rules shown in the following table. NSG4 has the inbound security rules shown in the following table. NSG1, NSG2, NSG3, and NSG4 have the outbound security rules shown in the following table. Contoso identifies the following technical requirements: Deploy Azure Firewall to VNetwork1 in Sub2. Register an application named App2 in contoso.com. Whenever possible, use the principle of least privilege. Enable Azure AD Privileged Identity Management (PIM) for contoso.com. Hotspot Question Which virtual networks in Sub1 can User2 modify and delete in their current state? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibit

AZ-500 question #11 exhibit

Answer Area

  • Virtual networks that User2 can modify:
    VNET4 onlyVNET4 and VNET1 onlyVNET4, VNET3, and VNET1 onlyVNET4, VNET3, VNET2, and VNET1
  • Virtual networks that User2 can delete:
    VNET4 onlyVNET4 and VNET1 onlyVNET4, VNET3, and VNET1 onlyVNET4, VNET3, VNET2, and VNET1

Explanation

Contoso Case Study - Virtual Network Modify vs. Delete Rights

The entire question turns on Azure Resource Lock behavior applied at the Resource Group level, combined with User2 having sufficient role permissions (Contributor or higher) on the relevant RGs since they created the VNets.


Azure Resource Lock Types - The Core Concept

Lock TypePrevents Modify?Prevents Delete?
DeleteNoYes
ReadOnlyYesYes

Locks apply hierarchically - a lock on a Resource Group applies to all resources within it.


The Lock-to-VNet Mapping

VNetResource GroupLock TypeCan Modify?Can Delete?
VNET1RG1DeleteYesNo
VNET2RG2ReadOnlyNoNo
VNET3RG3DeleteYesNo
VNET4RG6NoneYesYes

Dropdown 1: Virtual networks User2 can MODIFY

Correct Answer: VNET4, VNET3, and VNET1 only

  • VNET1 - RG1 has a Delete lock. Delete locks block only deletion; modifications are still permitted.
  • VNET3 - RG3 has a Delete lock. Same reasoning - modify is allowed.
  • VNET4 - RG6 has no lock at all. Full modify and delete rights.
  • VNET2 is excluded - RG2 has a ReadOnly lock. This is the strictest lock type and blocks all write operations including modifications.

Why the other options are wrong:

  • VNET4 only - Ignores that Delete-locked resources can still be modified.
  • VNET4 and VNET1 only - Incorrectly excludes VNET3, which also only has a Delete lock.
  • VNET4, VNET3, VNET2, and VNET1 - Incorrectly includes VNET2, which is blocked by a ReadOnly lock.

Dropdown 2: Virtual networks User2 can Delete

Correct Answer: VNET4 only

  • VNET4 - No lock on RG6, so deletion is fully permitted.
  • VNET1 excluded - RG1's Delete lock explicitly prevents deletion, regardless of the user's role.
  • VNET2 excluded - RG2's ReadOnly lock also prevents deletion.
  • VNET3 excluded - RG3's Delete lock prevents deletion.

Why the other options are wrong:

  • VNET4 and VNET1 only - VNET1 cannot be deleted; its RG has a Delete lock.
  • VNET4, VNET3, and VNET1 only - Neither VNET1 nor VNET3 can be deleted due to their Delete locks.
  • VNET4, VNET3, VNET2, and VNET1 - All three non-VNET4 networks are protected by locks.

Key Takeaway

Delete lock = "You can still change it, you just can't remove it." ReadOnly lock = "You can't touch it at all - not modify, not delete."

A common exam trap is assuming a Delete lock also prevents modifications - it does not.

Topics

#Azure RBAC#Azure Resource Locks#Virtual Networks#Resource Management

Community Discussion

No community discussion yet for this question.

Full AZ-500 Practice