mediummultiple choiceObjective-mapped

A company has a critical production resource group that contains several virtual machines and an Azure SQL Database. The IT manager wants to prevent anyone from accidentally deleting the resource group or any of its resources. However, authorized administrators must still be able to add, update, or delete individual resources within the group (except deletion of the group itself). Which Azure feature should the manager apply to the resource group?

Question 1mediummultiple choice
Full question →

A company has a critical production resource group that contains several virtual machines and an Azure SQL Database. The IT manager wants to prevent anyone from accidentally deleting the resource group or any of its resources. However, authorized administrators must still be able to add, update, or delete individual resources within the group (except deletion of the group itself). Which Azure feature should the manager apply to the resource group?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Apply an Azure Policy with the 'Deny' effect to prevent all operations on the resource group.

Azure Policy 'Deny' effect blocks creation or update of resources that do not comply with policy rules, but it does not prevent deletion of existing resources or the resource group itself. Moreover, it is too broad (would block any non-compliant resource modifications) and is not designed for accidental deletion protection. Using a 'Deny' policy is incorrect for this scenario.

B

Distractor review

Apply a Read-Only lock on the resource group.

A Read-Only lock prevents any user (even with Owner permissions) from creating, updating, or deleting resources in the resource group. The requirement explicitly states that administrators must be able to add or modify resources, so this lock is too restrictive and would block those operations. Therefore, it is not the correct solution.

C

Best answer

Apply a CanNotDelete lock on the resource group.

A CanNotDelete lock allows all operations (read, create, update, delete of individual resources) except the deletion of the locked scope (the resource group in this case). This exactly matches the requirement: authorized administrators can manage resources normally, but the entire resource group and all its resources are protected from accidental deletion. This is the correct choice.

D

Distractor review

Remove the Contributor role from all users and assign the Owner role to the IT manager only.

Changing role assignments does not reliably prevent resource group deletion. Users with the Owner role (or even Contributor role) can delete a resource group unless a resource lock is applied. Removing Contributor roles may still leave owners who can delete, and this approach is complex and does not directly address the requirement to prevent accidental deletion while allowing modifications. It is incorrect.

Common exam trap

Common exam trap: ACLs stop at the first match

ACLs are processed top to bottom. The first matching entry wins, and an implicit deny usually exists at the end.

Technical deep dive

How to think about this question

ACL questions test precision: source, destination, protocol, port and direction. A generally correct ACL can still fail if it is applied on the wrong interface or in the wrong direction.

KKey Concepts to Remember

  • Standard ACLs match source addresses.
  • Extended ACLs can match source, destination, protocol and ports.
  • The first matching ACL entry is used.
  • There is usually an implicit deny at the end.

TExam Day Tips

  • Check inbound versus outbound direction.
  • Read the ACL from top to bottom.
  • Look for a broader permit or deny above the intended line.

Related practice questions

Related AZ-900 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

Question 1

A developer is building a serverless application that requires integration with an on-premises SQL Server database for real-time data processing. The on-premises network is connected to Azure via a site-to-site VPN. Which Azure service would allow the function to securely access the on-premises database without exposing it to the public internet?

Question 2

A solutions architect is designing a storage solution for a large media company. The company needs to store video files that are accessed infrequently but must be retained for several years for compliance. Which two Azure storage options meet these requirements? (Select two.)

Question 3

A company deploys a multi-tier application using Azure virtual machines. The web tier VMs must be evenly distributed across two distinct data centers within an Azure region to avoid a single point of failure from an infrastructure outage. Which Azure construct should they use to meet this requirement?

Question 4

A company wants to enforce a set of security policies across all their Azure subscriptions. They have created several individual policy definitions. Which Azure construct should they use to group these policies together and assign them as a single package?

Question 5

A company deploys a line-of-business application on an Azure virtual machine. The IT team wants to ensure the application remains secure. According to the shared responsibility model, which of the following security tasks is the sole responsibility of the customer (the company)?

Question 6

A company develops a web API that runs on Azure App Service. The development team wants to deploy a new version of the API to a staging environment, run integration tests against it, and then gradually shift production traffic to the new version. If any issues are detected, they want to immediately roll back to the previous version without redeploying. Which Azure App Service feature should the team use to meet these requirements?

FAQ

Questions learners often ask

What does this AZ-900 question test?

Standard ACLs match source addresses.

What is the correct answer to this question?

The correct answer is: Apply a CanNotDelete lock on the resource group. — Azure Resource Locks are used to prevent accidental deletion or modification of critical resources. There are two types: 'CanNotDelete' (allows all operations except deletion) and 'ReadOnly' (blocks all write operations). In this scenario, the requirement is to allow full management of resources while only blocking deletion of the resource group and its contained resources. The CanNotDelete lock is the appropriate choice because it permits creation, update, and even deletion of individual resources (if the user has permissions) but prevents the entire resource group from being deleted. If a ReadOnly lock were applied, no modifications would be allowed at all, which is too restrictive. An Azure Policy with 'Deny' effect could block specific resource actions but would not directly block deletion of the resource group itself; additionally, Deny policies are for enforcing compliance rules (e.g., requiring a tag), not for locking. Changing role assignments (option D) would not reliably prevent deletion because users with Owner or Contributor roles can still delete resource groups unless a lock is in place.

What should I do if I get this AZ-900 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.