Study guide

5.1 Storage Account Security Fundamentals

Microsoft Certified: Cloud and AI Security Engineer Associate SC-500

Track your progress as you read

Finished sections get a check mark.

1 Introduction & Exam Overview

1.1 Current Exam Facts 1.2 Skills Measured & Weightings 1.3 Study Path, Prerequisites & Exam Strategy

2 Microsoft Entra ID Secure Access

2.1 Privileged Identity Management (PIM) 2.2 Conditional Access Policies 2.3 MFA and Passwordless Authentication 2.4 Application Identities, OAuth Consent & Managed Identities

3 Azure Key Vault Secrets and Keys

3.1 Deploy and Configure Key Vault 3.2 Access Control and Firewall for Key Vault 3.3 Keys, Secrets, Certificates & Defender for Key Vault

4 Governance, Policy & RBAC

4.1 Azure Policy for Security Controls 4.2 Defender for Cloud Compliance & Security Standards 4.3 Resource Locks and Azure RBAC 4.4 Custom Roles, Overprivileged Access, Backup & IaC Security

5 Secure Storage Accounts

5.1 Storage Account Security Fundamentals 5.2 Storage Firewalls and Access Policies 5.3 Defender for Storage

6 Secure Databases

6.1 Azure SQL Platform Security 6.2 Database Auditing 6.3 Defender for Databases

7 Network Security Groups & Virtual Network Manager

7.1 Network Security Groups and Application Security Groups 7.2 Azure Virtual Network Manager Security Admin Rules 7.3 Virtual WAN and VPN Security

8 Private Access, Private Link & Azure Firewall

8.1 Microsoft Entra Private Access 8.2 Private Endpoints and Private Link 8.3 Azure Firewall 8.4 Network Watcher Diagnostics and Effective Rules

9 Security for AI Workloads

9.1 Purview DSPM for AI and Data Overexposure 9.2 Copilot Studio Protection and Agent Management 9.3 Microsoft Entra Agent ID Security 9.4 Defender for AI, Foundry Guardrails & AI Gateway

10 Secure Servers and Virtual Machines

10.1 Disk Encryption 10.2 Azure Bastion and JIT VM Access 10.3 Azure Arc and Defender for Servers 10.4 Trusted Launch, VM Security Features & Machine Configuration

11 Application Platform Security

11.1 Containers: AKS, ACR, ACI, Container Apps & Defender for Containers 11.2 Azure Functions and Logic Apps Security 11.3 Azure App Service Security 11.4 Web Application Firewall and API Management Protection

12 Defender for Cloud Security Posture

12.1 Defender CSPM and Secure Score 12.2 Workload Protection Plans and Multicloud Connectors 12.3 Vulnerability Management and Defender EASM

13 Microsoft Sentinel Activity and Event Collection

13.1 Workspaces, Roles & Content Hub 13.2 Data Connectors, Syslog/CEF & Windows Event Collection 13.3 Custom Tables, Retention & Purview Audit 13.4 Automation Rules and Playbooks

14 Microsoft Security Copilot & Final Review

14.1 Microsoft Security Copilot Workspaces and Roles 14.2 Plugins and Security Agents 14.3 Final Review and Exam-Day Strategy

5.1 Storage Account Security Fundamentals

Key Takeaways Explain This Topic AI

Prefer Microsoft Entra ID (Azure AD) with managed identities and data-plane RBAC over Shared Key; disable Shared Key authorization when clients can use Entra or user-delegation SAS.

All Azure Storage data is encrypted at rest by default with Microsoft-managed keys; customer-managed keys (CMK) in Key Vault add control of key lifecycle, and infrastructure encryption adds a second AES-256 layer at account creation only.

Require secure transfer (HTTPS) and set a minimum TLS version (prefer TLS 1.2 or higher) so cleartext or obsolete TLS clients are rejected.

Disable anonymous public blob access at the account level unless a deliberate public-read design exists; use immutable (WORM) storage for retention and legal-hold scenarios.

Enable soft delete for blobs, containers, and file shares so accidental or malicious deletes can be recovered within the configured retention window.

Last updated: July 2026

Why Storage Security Dominates SC-500 Weighting

Secure storage, databases, and networking is the heaviest SC-500 domain (25–30%). Under that domain, Microsoft explicitly measures implement security for storage accounts : account configuration, firewalls, Defender for Storage, and access policies. This section covers the fundamentals —authentication model, encryption, transport security, public access, immutability, and soft delete—that every hardened account needs before you layer network ACLs or threat detection.

A storage account is the control boundary for Blobs (including Data Lake Storage Gen2), Files, Queues, and Tables. Misconfiguration here is a common path to data exfiltration: a leaked account key, open public blob container, or HTTP-only client can undermine every identity control you built with Entra and Key Vault.

Shared Key vs Microsoft Entra ID Authorization

Azure Storage supports two primary authorization models for data-plane requests (who can read/write blobs, files, queues, tables):

Model Credential Scope of power SC-500 preference

Shared Key Account access keys (key1/key2) or connection strings / account- or service-SAS signed with those keys Effectively full account data access for anyone holding a key; SAS can narrow scope but is still key-derived Avoid for ongoing app access

Microsoft Entra ID OAuth tokens for users, groups, service principals, managed identities Least-privilege Azure RBAC data-plane roles (for example Storage Blob Data Contributor) Prefer for all modern clients

Shared Key realities

When a storage account is created, Azure generates two 512-bit account access keys . Either key can authorize Shared Key requests and can sign account SAS and service SAS tokens. Anyone who can list keys (Owner, Contributor, Storage Account Key Operator Service Role, or custom roles with Microsoft.Storage/storageAccounts/listkeys/action ) effectively owns the data plane.

Risks examiners expect you to recite:

Keys are long-lived secrets —rotation is manual or Key Vault–orchestrated, not identity lifecycle.

Regenerating a key invalidates all account/service SAS signed with that key (user-delegation SAS is unaffected).

Keys bypass Conditional Access–style identity controls unless Shared Key is disabled.

Embedding keys in apps, pipelines, or git is a classic breach pattern.

Microsoft recommendation: Use Entra ID with managed identities for blob, queue, and table data whenever possible. For Azure Files SMB, prefer identity-based authentication (Kerberos / Entra). When temporary delegated access is required without a full proxy, prefer a user delegation SAS (Entra-signed) over key-signed SAS.

Disable Shared Key access

You can disallow Shared Key authorization on the storage account. After that setting is on:

Requests authorized only with account keys are rejected .

Only Entra-authenticated (and properly authorized) requests succeed for supported scenarios.

Conditional Access policies on storage become meaningful because clients must present Entra tokens.

Exam trap: Disabling Shared Key breaks clients that still use connection strings with account keys, classic Storage Explorer Shared Key mode, and key-signed SAS. Plan migration to Entra RBAC or user-delegation SAS first. Some trusted Microsoft service paths may still appear as Shared Key in logs—understand trusted access vs your application traffic.

  • Scenario Correct auth path
  • App Service / Function / VM reading blobs Managed identity + Storage Blob Data * role
  • Temporary client upload without app proxy User delegation SAS (Entra) with short expiry

Legacy third-party that only accepts connection string Temporary Shared Key or key-signed SAS while remediating; store key in Key Vault if unavoidable

  • Human admins managing containers in portal Entra RBAC data roles + network allow list
  • Encryption at Rest: Microsoft-Managed vs Customer-Managed Keys

Azure Storage encrypts all data at rest by default with 256-bit AES . You always get encryption; the design choice is who manages the encryption keys .

  • Mode Who holds the key material Rotation When to use
  • Microsoft-managed keys (MMK) Microsoft Automatic by platform Default; most workloads

Customer-managed keys (CMK) You, via Azure Key Vault or Managed HSM; storage uses envelope encryption You control Key Vault rotation policy and key versions Regulatory need to revoke/rotate/audit key control

With CMK, Azure Storage uses a data encryption key (DEK) that is wrapped by your key encryption key (KEK) in Key Vault. Disabling or deleting the KEK can render data inaccessible—pair CMK vaults with soft-delete and purge protection (see Key Vault chapter).

Exam trap: CMK is not “extra encryption on top of none.” MMK already encrypts. CMK changes key custody and lifecycle , not the fact of encryption. Client-side encryption is a third option (app encrypts before upload) and is independent of account encryption settings.

Infrastructure encryption

Infrastructure encryption enables a second 256-bit AES encryption layer at the infrastructure level (double encryption). Critical constraints:

Must be enabled at storage account creation —you generally cannot turn it on later for an existing account.

Adds a second platform layer; still works with MMK or CMK for the service layer.

Choose when compliance language explicitly requires double encryption at rest.

Scenario: A regulated workload needs customer key control and double encryption. Create the account with infrastructure encryption enabled, configure CMK to a purge-protected Key Vault key, and disable Shared Key once apps use managed identities.

  • Secure Transfer Required and Minimum TLS
  • Secure transfer required

When Secure transfer required is enabled (strongly recommended; on by default for new accounts in modern API versions):

All requests must use HTTPS .

HTTP requests are rejected.

This stops cleartext credential and data exposure on the wire. Always leave this on for production.

Minimum TLS version

Independently, configure the minimum TLS version accepted by the storage account (for example TLS 1.2). Clients negotiating a lower version fail. SC-500-aligned baselines use TLS 1.2 or higher ; reject TLS 1.0/1.1.

  • Setting Effect
  • Secure transfer required = On HTTP blocked; HTTPS only
  • Minimum TLS = 1.2 TLS 1.0/1.1 handshakes rejected

Also require HTTPS-only when minting SAS tokens so the token itself is not sent in cleartext.

Disable Public (Anonymous) Blob Access

Anonymous public access lets unauthenticated clients read containers/blobs if a container ACL is set to blob or container public level. Even if no container is currently public, account-level allow for public access is a latent risk: a single mis-set ACL exposes data on the internet.

Best practice: Set the account property to disable public blob access (prevent anonymous access). Only re-enable for deliberate static-website or public-media designs, and prefer CDN + controlled origins over broad public containers for sensitive data.

Exam trap: “Public access disabled” is an account setting that blocks anonymous ACL elevation. It is separate from the storage firewall (network allow list) and from private endpoints . You need both identity and network hardening for defense in depth.

Immutable Storage (WORM) Overview

Immutable storage stores blob data in a WORM (Write Once, Read Many) state:

  • Policy type Behavior
  • Time-based retention Blobs cannot be modified or deleted until the retention interval elapses

Legal hold Indefinite retention until all legal holds are cleared; often used with tags/identifiers for case tracking

Policies can apply at the container (version-level or container-level immutability depending on account capabilities) for compliance archives, financial records, and forensic evidence. Immutability protects against ransomware operators and rogue admins who try to wipe or encrypt data in place—deletes and overwrites are blocked while the policy is locked as configured.

Note for exams: Resource locks on the storage account protect against account deletion/config change , not against deleting blobs inside the account. Immutable policies and soft delete address data durability; locks address resource lifecycle.

Soft Delete for Blobs, Containers, and Files

Soft delete is a recovery safety net:

Feature Protects Behavior

Blob soft delete Individual blobs and versions/snapshots (per configuration) Deleted data retained for N days; restore to undo delete

  • Container soft delete Entire containers Deleted container and contents recoverable for retention period
  • File share soft delete Azure Files shares Soft-deleted shares restorable within retention

Configure retention long enough for detection (often 7–14+ days; match organizational RPO). Soft delete does not replace backups or immutability for compliance, but it is the fastest fix for “oops, deleted the wrong container.”

Related controls: Point-in-time restore for containers, blob versioning, and change feed improve recoverability and audit trails. Enable diagnostics so restore operations and deletes are attributable.

  • Hardening Baseline (Fundamentals Checklist)
  • Prefer Entra + managed identity; disable Shared Key when ready
  • MMK default; CMK + purge-protected vault when policy requires customer keys
  • Infrastructure encryption only if required—and only at create
  • Secure transfer on; minimum TLS 1.2+
  • Disable public blob access at account level
  • Soft delete for blobs/containers/files with adequate retention
  • Immutable policies for regulated “cannot alter” data
  • Rotate keys if Shared Key remains; store secrets in Key Vault—not source control
  • SC-500 Exam Traps (Fundamentals)

Shared Key = full data power; Contributor who can list keys is effectively data-plane admin.

Disabling Shared Key is the step that forces Entra-only data access—not merely “using RBAC somehow.”

CMK ≠ enabling encryption for the first time; encryption is always on.

Infrastructure encryption cannot be bolted on later in typical designs.

Account locks ≠ blob immutability.

Public access setting and firewall are different layers.