Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Case Study Set

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)

  1. Use not around a condition that checks whether the tags field containsKey application.

  2. Use a condition that verifies the resource type equals Microsoft.Storage/storageAccounts.

  3. Use anyOf to match every resource that either contains any tag or belongs to any storage-related provider.

  4. Use a value condition on the policy assignment identifier to determine whether the storage account contains the tag.

Correct answers

  1. Use not around a condition that checks whether the tags field containsKey application.

  2. Use a condition that verifies the resource type equals Microsoft.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.