Question 34 — AZ-104 Case Study Set
Paideffort wants to evaluate only storage accounts that do not contain an application tag. Which two policy-rule components most directly express that requirement? (Select two answers)
Use
notaround a condition that checks whether thetagsfieldcontainsKeyapplication.Use a condition that verifies the resource
typeequalsMicrosoft.Storage/storageAccounts.Use
anyOfto match every resource that either contains any tag or belongs to any storage-related provider.Use a
valuecondition on the policy assignment identifier to determine whether the storage account contains the tag.
Correct answers
Use
notaround a condition that checks whether thetagsfieldcontainsKeyapplication.Use a condition that verifies the resource
typeequalsMicrosoft.Storage/storageAccounts.
Explanations
Correct Answer:
Use not around a condition that checks whether the tags field containsKey application.
Use a condition that verifies the resource type equals Microsoft.Storage/storageAccounts.
Explanation:
Paideffort's policy needs both resource-type targeting and tag absence. A nested not can invert the result of containsKey, while a separate type comparison limits the rule to Microsoft.Storage/storageAccounts.
Wrong Answers:
Use anyOf to match every resource that either contains any tag or belongs to any storage-related provider.
This would not specifically identify Paideffort storage accounts missing the required application tag.
Use a value condition on the policy assignment identifier to determine whether the storage account contains the tag.
The assignment identifier does not represent the evaluated resource's tag collection. The resource field must be evaluated instead.