easymultiple choiceObjective-mapped

A company wants to prevent users from creating storage accounts unless the resources include a costCenter tag. Which Azure feature should be used?

Question 1easymultiple choice
Full question →

A company wants to prevent users from creating storage accounts unless the resources include a costCenter tag. Which Azure feature should be used?

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

Azure RBAC, because it controls whether users can create resources.

This is incorrect because RBAC controls who can perform actions, not whether a resource configuration meets a compliance rule.

B

Best answer

Azure Policy, because it can evaluate and enforce required resource properties.

This is correct because Azure Policy is designed to enforce standards and assess compliance. A policy can require a tag such as costCenter and deny or audit noncompliant resource creation. RBAC could still allow the user to create storage accounts, but Policy adds the configuration rule that controls whether the deployment is compliant.

C

Distractor review

A resource lock, because it can force resources to use tags.

This is incorrect because locks prevent deletion or modification, but they do not evaluate deployment rules like required tags.

D

Distractor review

A service endpoint, because it can filter which resources are allowed in a subscription.

This is incorrect because service endpoints are for network access to Azure services, not compliance enforcement.

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: Azure Policy, because it can evaluate and enforce required resource properties. — Azure Policy is the right tool when the requirement is about resource compliance, such as requiring a tag, restricting allowed locations, or enforcing a configuration standard. RBAC only answers whether a user is allowed to perform an action. In this case, the company wants to block or audit deployments that do not include the costCenter tag, which is a policy concern rather than an access-control concern. Why others are wrong: RBAC can allow or deny actions, but it cannot validate resource properties like tags. Resource locks protect existing resources from deletion or changes, but they do not enforce deployment standards. Service endpoints are unrelated to compliance and only affect how certain network traffic reaches Azure services.

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.