1.3: Manage Azure subscriptions and governance
1.A policy rule must stop anyone from creating or updating storage accounts that allow HTTP traffic. Complete the rule so it meets the requirement. ``` { "if": { "allOf": [ { "field": "type", "equals": "Microsoft.Storage/storageAccounts" }, { "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly", "equals": "false" } ] }, "then": { "effect": "______" } } ``` Which value completes the effect?
- A.deny
- B.audit
- C.modify
- D.auditIfNotExists
Show answer & explanation
Correct answer: A — deny
- A. Correct. The Deny effect rejects create and update requests whose properties match the rule, which blocks storage accounts that allow HTTP.
- B. Incorrect. Audit allows the request and only records a non-compliance warning, so HTTP-enabled storage accounts would still be created.
- C. Incorrect. Modify would need a details block with operations to change the property, and the requirement is to block the request rather than alter it.
- D. Incorrect. AuditIfNotExists evaluates related resources and only reports. It does not stop the creation of the storage account.