Practice free →
HomeAzure AZ-104cloudcomputingaz104identitygovernance › Which Azure construct lets you enforce a rule th…

Which Azure construct lets you enforce a rule that "only resources tagged with a `cost-center` value may be created in this subscription"?

AA NSG with a tag-matching rule
BA Cosmos DB schema validation rule
CAn Entra Conditional Access policy
DAn Azure Policy initiative with a `require tag` policy + a deny effect
Answer & Solution
Correct answer: D. An Azure Policy initiative with a `require tag` policy + a deny effect
Azure Policy enforces tag presence with the `Require a tag and its value` built-in (or custom) policies with deny effect. NSGs aren't tag-aware in that way; Conditional Access is for sign-in; Cosmos DB doesn't gate other resources.
Solve this in the app — Azure AZ-104 practice & 24k+ MCQs →
Related questions