easymultiple choiceObjective-mapped

During a change freeze, administrators must prevent deletion of a production resource group and all resources inside it, but they still need to update VM sizes and tags. Which lock should be applied?

Question 1easymultiple choice
Full question →

During a change freeze, administrators must prevent deletion of a production resource group and all resources inside it, but they still need to update VM sizes and tags. Which lock should be applied?

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

ReadOnly on the resource group

ReadOnly blocks write operations, so it would also prevent the VM size and tag changes that must remain allowed.

B

Best answer

CanNotDelete on the resource group

CanNotDelete is the correct lock when you want to stop accidental deletion but still allow configuration changes. Applied at the resource group scope, it protects the group and the resources inside it from being deleted while still permitting updates such as resizing a VM or changing tags. That makes it ideal for a maintenance freeze.

C

Distractor review

CanNotDelete on the management group

That would protect far more than the single production resource group and could affect unrelated subscriptions.

D

Distractor review

An Azure Policy deny assignment

Policy can enforce rules, but this question specifically asks for a lock that prevents deletion while allowing writes.

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-104 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.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Standard ACLs match source addresses.

What is the correct answer to this question?

The correct answer is: CanNotDelete on the resource group — A CanNotDelete lock at the resource group scope prevents deletion of the resource group and its contents, but it still allows normal write operations. That means admins can resize virtual machines, update tags, or make other configuration changes during the freeze without risking accidental removal of the production environment. It is the standard choice when deletion prevention is required but operational changes must continue. Why others are wrong: ReadOnly is too restrictive because it blocks updates, not just deletions. A lock at management group scope would be much broader than the single resource group and could disrupt unrelated workloads. Azure Policy is useful for compliance, but the requirement here is specifically about deletion protection, which is exactly what CanNotDelete provides.

What should I do if I get this AZ-104 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.