mediummultiple choiceObjective-mapped

A company has an Azure subscription that contains production resources. The IT manager is concerned that a user who has the Contributor role might accidentally delete the entire subscription. The company wants a solution that prevents anyone from deleting the subscription, even users with the Owner role, while still allowing modifications to the resources inside the subscription. What should the administrator configure?

Question 1mediummultiple choice
Full question →

A company has an Azure subscription that contains production resources. The IT manager is concerned that a user who has the Contributor role might accidentally delete the entire subscription. The company wants a solution that prevents anyone from deleting the subscription, even users with the Owner role, while still allowing modifications to the resources inside the subscription. What should the administrator configure?

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

Assign a custom role-based access control (RBAC) role that denies the delete action for all users.

This is incorrect because even with a custom role that denies delete, a user with the Owner role can modify or remove the custom role assignment, effectively bypassing the restriction. Resource locks are designed to override permissions for all users, including Owners.

B

Distractor review

Configure an Azure Policy with the 'Deny' effect to block deletion of the subscription.

This is incorrect because Azure Policy cannot be applied directly to a subscription itself; policies are assigned to scopes (management groups, subscriptions, resource groups) to enforce rules on resources within those scopes. Additionally, policies can be excluded or overridden by users with sufficient privileges. A resource lock is the appropriate tool for preventing deletion of the subscription.

C

Best answer

Apply a resource lock of type 'Delete' at the subscription level.

This is correct. A 'Delete' lock prevents the subscription from being deleted but allows read and update operations on the resources inside. Resource locks apply to all users, including Owners, and can be set at subscription, resource group, or resource level. This directly meets the requirement to protect against accidental deletion while still allowing modifications.

D

Distractor review

Apply a resource lock of type 'ReadOnly' at the subscription level.

This is incorrect because a 'ReadOnly' lock prevents both deletion and modification of the subscription and all resources within it. The requirement is to still allow modifications to resources, so a 'ReadOnly' lock is too restrictive. Only a 'Delete' lock should be used.

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 resource lock of type 'Delete' at the subscription level. — Resource locks in Azure provide a way to protect resources from accidental deletion or modification. A 'Delete' lock at the subscription level prevents any user or process from deleting the subscription itself, but still allows read and update operations on the resources within. This lock applies to all users, including those with the Owner role, because locks override any RBAC permissions. In contrast, a 'ReadOnly' lock would also block modifications. Azure Policy and role-based access control (RBAC) do not provide this type of override; policies enforce compliance rules but can be excluded, and RBAC assignments can be changed by owners. Azure Blueprints is used for orchestration of resource templates, not for protecting against deletion.

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.