SC500-STTLS-001SC-500Study guide skill: Implement and configure security for storage accountsReviewed

Contoso's subscription contains dozens of storage accounts created with the portal, PowerShell, and the Azure CLI. The security team requires that no new storage account can be created with a minimum TLS version below 1.2, and that an existing account whose minimum TLS version is below 1.2 can't receive any other configuration change until that setting is fixed. What should you do?

  1. A. Set the MinimumTlsVersion property to TLS1_2 on each existing storage accountIncorrect
  2. B. Assign to the subscription an Azure Policy with the Audit effect that finds storage accounts whose minimum TLS version is below 1.2Incorrect
  3. C. Assign to the subscription an Azure Policy with the Deny effect that prevents creating or modifying storage accounts whose minimum TLS version is below 1.2Correct
  4. D. Create a diagnostic setting on each storage account that sends logs to a Log Analytics workspace, and query the TlsVersion propertyIncorrect
Show answer and explanation

Answer: C

Explanation

An Azure Policy with the Deny effect prevents requests that create a new storage account with a minimum TLS version older than the policy dictates. The same policy also prevents all configuration changes to an existing account whose minimum TLS version setting isn’t compliant, so it meets both requirements.[1]

MinimumTlsVersion is set on each account, so changing it fixes only the accounts that exist now and doesn’t apply to accounts created later. Accounts created with PowerShell, the Azure CLI, or an Azure Resource Manager template don’t set this property by default and accept requests sent with TLS 1.0 or later.[1] The Audit effect creates a warning for a noncompliant resource but doesn’t stop the request.[1] A diagnostic setting and a TlsVersion query show which TLS versions clients use; they don’t block account creation or configuration changes.[1]


Sources

  1. Enforce a minimum required version of Transport Layer Security (TLS) for requests to a storage accountMicrosoft Learn · Location: Use Azure Policy to enforce the minimum TLS version, Use Azure Policy to audit for compliance, Configure the minimum TLS version for a storage account, Detect the TLS version used by client applications · Checked