Microsoft AZ-500: Data, Storage and Database Security — Study Guide

Part of the Microsoft Azure Security Engineer Associate AZ-500 — Study Guide. Practice with verified answers in the Microsoft exam hub, or take timed practice tests on ExamRoll.io.

Overview

Azure data, storage, and database security centers on minimizing trust, isolating data planes, encrypting everywhere, and operationalizing least privilege with auditable access paths. This section explains how to harden Azure Storage, Azure SQL, and Azure Cosmos DB, choose the correct identity and key strategy, and prevent data exfiltration. Every control described is accompanied by the operational reasoning behind it so you can justify and maintain the configuration in production.

Securing Azure Storage Accounts and Data Access

Storage account authorization and sharing

Example: generate a user delegation SAS for a blob with Azure AD

az storage blob generate-sas \
  --account-name mystorage \
  --container-name data \
  --name report.csv \
  --permissions r \
  --expiry 2026-12-31T23:59Z \
  --as-user \
  --auth-mode login

Service security by type

Network isolation for all storage services

Operational settings to standardize

Encryption and Key Management

Encryption at rest layers

Key rotation and operations

Example: set CMK for a storage account

az storage account update \
  --name mystorage \
  --resource-group rg-secure \
  --encryption-key-source Microsoft.Keyvault \
  --encryption-key-vault /subscriptions/<subId>/resourceGroups/rg-secure/providers/Microsoft.KeyVault/vaults/mykv \
  --encryption-key-name stor-cmk

Encryption scopes

Database Platform Security: Azure SQL and Azure Cosmos DB

Azure SQL authentication and access

Data protection features

Example: enable server-level auditing to Log Analytics

az sql server audit-policy update \
  --name sql-secure \
  --resource-group rg-secure \
  --state Enabled \
  --log-analytics-workspace /subscriptions/<subId>/resourceGroups/rg-secure/providers/Microsoft.OperationalInsights/workspaces/la-secure

Microsoft Defender for SQL

Azure Cosmos DB security

Monitoring, Classification, and Exfiltration Controls

Key Vault–backed secrets and connection strings

ConnectionStrings__Sql=@Microsoft.KeyVault(SecretUri=https://mykv.vault.azure.net/secrets/sql-connstr/)

Information protection and data classification

Data exfiltration controls and secure access patterns

Practical Problem Scenario

Spotify needs to prevent data exfiltration from developer subnets and AKS workloads to unauthorized Storage and SQL endpoints while enabling CI/CD pipelines to run integration tests.

  1. Disable public network access and create Private Endpoints for all production Storage accounts and Azure SQL servers. Reasoning: Forces all data-plane flows over Private Link, eliminating public ingress/egress and enabling strict origin enforcement via VNets and private DNS.

  2. Configure private DNS zones with A records mapping the storage and database resource FQDNs to the private endpoint IPs; link all required VNets. Reasoning: Prevents DNS leakage to public endpoints and ensures clients resolve to the intended private resources.

  3. In Storage firewalls, add resource instance rules only for the production AKS cluster and build agent scale set identities; set default action to deny. Reasoning: Even within the same VNet, only approved resource identities can access the account, thwarting lateral movement and exfiltration from untrusted workloads.

  4. Enforce Azure CNI on AKS and enable service endpoints with service endpoint policies to allow dev namespaces to reach only a dedicated non-prod storage account. Reasoning: Dev pods obtain VNet IPs so network policies apply; endpoint policies constrain any non-private traffic strictly to sanctioned accounts.

  5. Replace shared keys with Azure AD RBAC for Blob and Queue in app code; where sharing is unavoidable for tests, issue user delegation SAS with stored access policies and 1-hour expiry. Reasoning: Identity-bound tokens are auditable and revocable; short-lived SAS minimizes risk if a token is exposed in build logs.

  6. Enable Defender for SQL with threat detection and Vulnerability Assessment; route alerts and SQL audit logs to a central Log Analytics workspace with automated Logic Apps for triage (disable user, revoke sessions, add temporary firewall deny). Reasoning: Managed detections accelerate containment of SQL injection and anomalous access, while playbooks standardize and speed the response.

  7. Use Key Vault for CMK protecting TDE and Storage encryption scopes; enable soft delete and purge protection; rotate keys quarterly and update resource references to the latest key version. Reasoning: Externalized cryptographic control with safe rotation meets compliance and reduces operational error risk.

  8. Classify sensitive columns in Azure SQL with SQL Information Protection and onboard to Microsoft Purview; apply MIP sensitivity labels for downstream exports. Reasoning: Persistent labeling travels with data extracts, limiting misuse and enabling DLP tooling to enforce controls across tools and devices.

  9. Lock down egress with Azure Firewall to only Azure services required by build/test, using FQDN tags for Storage and SQL and denying wildcard outbound HTTP(S). Reasoning: Positive security model ensures traffic can reach only approved endpoints, preventing data from leaving to attacker domains.

This sequence prevents public access, restricts both who and what can reach data, binds access to identities rather than secrets, and operationalizes monitoring and rapid response—all while preserving developer velocity through scoped, time-bound exceptions.


Compute · All domains · Key Management

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Microsoft →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product