SaveMyCert
Log in
5 of 5 free questions left today·for 30 a day
SC-500 · Domain 2

Secure storage, databases, and networking practice questions

Secure storage, databases, and networking is worth 28% of the SC-500 exam — the heaviest of the 4 domains. Storage account and Azure SQL security with Defender protections, and network security: NSGs/ASGs, Virtual Network Manager, Virtual WAN, VPN, Entra Private Access, Private Link and Azure Firewall. Official weighting 25–30%. 6 fully worked examples are further down this page, answers included.

Exam weight
28%
the heaviest of the 4 domains
Questions
135
across 3 topics
Free, no account
5/day
a free account allows 30 a day
Explanations
Every option
right and wrong

Build a practice session

5 free questions left today.

Domains

How many?

Mode

Ready when you are

10 fresh questions drawn across 1 of 4 domains, in Learn mode.

Focused review

Every question you answer incorrectly, and every question you flag while practising, is saved here automatically. Finish a session and you can come back to re-drill just those.

6 sample Secure storage, databases, and networking questions, fully explained

Questions from the SC-500 bank mapped to domain 2, with the answer key and the reasoning behind every option. None of them repeat the examples on the main SC-500 practice page.

Question 1Secure storage, databases, and networking

Developers at Contoso create their own storage accounts in several subscriptions under one management group. The security team requires that any deployment creating or updating a storage account so that it allows anonymous blob access fails with an error the developer sees, while existing compliant accounts are left alone. What should you do?

Choose one.

  • a
    Assign the built-in policy that disallows storage account public access, with the Audit effect, at the management group

    Audit only marks non-compliant accounts in the compliance report; the deployment still succeeds.

  • b
    Enable Microsoft Defender for Storage on the subscriptions under the management group

    Defender for Storage detects threats and suspicious access; it doesn't block a deployment that changes a configuration setting.

  • c
    Assign the built-in policy that configures storage account public access to be disallowed, with the Modify effect

    The Modify policy quietly rewrites the setting to disallowed during the request, so the deployment succeeds instead of failing with an error the developer sees.

  • d
    Assign the built-in policy that disallows storage account public access, with the Deny effect, at the management group Correct

    A Deny assignment evaluates every create and update request in scope and rejects any that would permit anonymous blob access.

The concept

Azure Policy effects: Deny rejects a non-compliant request, Modify alters it to be compliant, Audit only reports it.

Why that’s the answer

The requirement is preventive and visible: the non-compliant deployment itself must fail. Assigning the built-in public-access policy with Deny at the management group covers every subscription below it and refuses non-compliant creates and updates with a policy error. The same policy with Audit only reports. The separate built-in 'Configure your Storage account public access to be disallowed' policy uses Modify: it alters the request so the account ends up compliant, which is a valid hardening choice but doesn't make the deployment fail. Defender for Storage is a detection plan and blocks nothing.

How to reason it out
  1. Identify the requirement: the deployment must fail with an error.
  2. Choose Azure Policy for configuration rules across subscriptions.
  3. Separate the effects: Audit reports, Modify rewrites, Deny rejects.
  4. Scope it at the management group so every subscription inherits it.

Exam tip: Report it: Audit. Silently fix it: Modify. Make the deployment fail: Deny.

SC-500 Azure Storage Account Security: Firewall, Defender for Storage, Encryption, SAS and Access — the lesson that teaches this.

Question 2Secure storage, databases, and networking

Before you set Allow storage account key access to Disabled on a production storage account, you must find out which client applications still authorize requests with the account key or a SAS. You need the caller IP address and user agent of each client. What should you configure first?

Choose one.

  • a
    A Transactions metric in Metrics Explorer filtered on the Authentication dimension

    The metric shows how many requests used Account Key or SAS over time, but not which clients sent them.

  • b
    A diagnostic setting that sends blob resource logs to a Log Analytics workspace Correct

    Resource logs record each request's authentication type, caller IP and user agent, so a query on AuthenticationType lists exactly which clients use Shared Key or SAS.

  • c
    An Azure Resource Graph query that projects the allowSharedKeyAccess property

    Resource Graph shows each account's setting, not the requests that clients are making.

  • d
    Microsoft Defender for Storage activity monitoring on the storage account

    Activity monitoring raises alerts for suspicious behaviour; it isn't an inventory of every client's authorization method.

The concept

Metrics count Shared Key/SAS requests; resource logs (via a diagnostic setting) identify the clients making them.

Why that’s the answer

Microsoft's guidance is to measure before you disallow Shared Key. Metrics Explorer gives aggregate counts by authentication type, which is useful but anonymous. To see per-client detail such as caller IP and user agent you need resource logs, which require a diagnostic setting sending StorageBlobLogs to Log Analytics. Resource Graph only reports configuration, and Defender for Storage alerts on anomalies rather than listing every caller.

How to reason it out
  1. Note what's needed: per-client detail (IP, user agent).
  2. Separate metrics (counts) from logs (request detail).
  3. Recall that resource logs need a diagnostic setting.
  4. Query the logs by authentication type to find key and SAS callers.

Exam tip: How many key/SAS requests? Metrics. Who sends them? Resource logs via a diagnostic setting.

SC-500 Azure Storage Account Security: Firewall, Defender for Storage, Encryption, SAS and Access — the lesson that teaches this.

Question 3Secure storage, databases, and networking

You set Allow storage account key access to Disabled on an account. Four clients use it: a web app that issues user delegation SAS URLs for blob downloads, a partner that reads a container with a service SAS, a Logic App that writes blobs with its managed identity and Storage Blob Data Contributor, and operators who browse an Azure file share in the Azure portal with default settings and no Azure Files data roles. Which clients stop working?

Choose one.

  • a
    The partner's service SAS and the operators browsing the file share Correct

    A service SAS is signed with the account key, so it's denied; the portal uses Shared Key for Azure Files by default, so operators without Azure Files data roles lose access.

  • b
    The partner's service SAS and the web app's user delegation SAS URLs

    A user delegation SAS is signed with a key obtained through Microsoft Entra ID, so it keeps working when Shared Key is disallowed.

  • c
    The operators browsing the file share and the Logic App's managed identity

    Both authorize through Microsoft Entra ID, which is exactly the path that remains allowed.

  • d
    The Logic App's managed identity and the web app's user delegation SAS URLs

    Both authorize through Microsoft Entra ID: the managed identity directly, and the user delegation SAS through a key obtained with Entra credentials, so both keep working.

The concept

Disallowing Shared Key denies every key-signed request (account key, service SAS, account SAS) and leaves Microsoft Entra authorization, including user delegation SAS, working.

Why that’s the answer

Sort each client by how its request is signed. The service SAS is signed with an account key, so it fails. A user delegation SAS is signed with a user delegation key obtained with Entra credentials, and the Logic App uses its managed identity, so both keep working. The subtle one is Azure Files in the portal: it uses Shared Key by default, so operators with no Azure Files data roles can no longer browse the share. Microsoft recommends assigning those roles, moving the files, or not disabling Shared Key on accounts that serve file shares.

How to reason it out
  1. List how each client authorizes: account key, SAS type, or Entra ID.
  2. Mark key-signed SAS (service, account) as denied.
  3. Keep user delegation SAS and managed identity as allowed.
  4. Remember the portal's default Shared Key use for file shares.

Exam tip: Shared Key off: service and account SAS die, user delegation SAS and Entra ID live; check Azure Files in the portal.

SC-500 Azure Storage Account Security: Firewall, Defender for Storage, Encryption, SAS and Access — the lesson that teaches this.

Question 4Secure storage, databases, and networking

You will encrypt an existing general-purpose v2 storage account with a customer-managed key stored in an Azure Key Vault that uses the Azure RBAC permission model. The account will reach the key through a user-assigned managed identity. Soft delete is already on in the vault. You must follow least privilege. Which two actions should you perform? (Select TWO.)

Choose TWO.

  • a
    Assign the identity the Key Vault Secrets User role on the key vault

    That role reads secret values; the storage account uses a key, so the role gives the wrong permissions.

  • b
    Enable purge protection on the key vault Correct

    Azure Storage requires both soft delete and purge protection on the vault before it accepts a customer-managed key.

  • c
    Assign the identity the Key Vault Crypto Service Encryption User role on the key Correct

    This role grants only the get, wrap key and unwrap key operations the storage service needs, scoped to the key.

  • d
    Enable infrastructure encryption on the existing storage account

    Infrastructure encryption is optional, is unrelated to customer-managed keys, and can only be chosen when an account is created.

  • e
    Assign the identity the Key Vault Crypto Officer role on the key vault

    Crypto Officer can create and delete keys across the vault, which exceeds what the storage account needs and breaks least privilege.

The concept

Customer-managed keys for Azure Storage need a vault with soft delete and purge protection, and an identity with wrap/unwrap rights on the key.

Why that’s the answer

Two facts combine here. First, Azure Storage refuses a key from a vault that lacks purge protection; soft delete alone isn't enough. Second, the identity needs only to get, wrap and unwrap the key, which is exactly Key Vault Crypto Service Encryption User scoped to that key. Secrets User grants the wrong data type, Crypto Officer is far broader than required, and infrastructure encryption is a separate, creation-time-only setting.

How to reason it out
  1. Check vault prerequisites: soft delete and purge protection.
  2. Identify the key operations storage needs: get, wrap, unwrap.
  3. Map them to the narrowest built-in role, scoped to the key.
  4. Discard creation-time settings and over-broad roles.

Exam tip: CMK for storage: purge protection on the vault + Key Vault Crypto Service Encryption User on the key.

SC-500 Azure Storage Account Security: Firewall, Defender for Storage, Encryption, SAS and Access — the lesson that teaches this.

Question 5Secure storage, databases, and networking

Woodgrove Bank keeps trade confirmations in a blob container. Regulators require that each blob can't be modified or deleted for seven years after it's written, and that no administrator, including a subscription Owner, can shorten that period. What should you configure on the container?

Choose one.

  • a
    A time-based retention policy of seven years and leave the policy unlocked

    An unlocked policy is meant for testing; a user with the right permissions can shorten or delete it, so it doesn't meet the regulator's demand.

  • b
    A legal hold with a tag that names the seven-year regulation

    A legal hold has no retention period; it protects blobs until someone clears it, so an administrator could remove it at any time.

  • c
    A ReadOnly resource lock on the storage account that holds the container

    Resource locks act on the control plane and can be removed by an Owner; they don't stop data-plane deletes or overwrites of blobs.

  • d
    A time-based retention policy of seven years, then lock the policy Correct

    A locked time-based retention policy puts blobs in a WORM state for the interval, and once locked the interval can only be extended, never shortened or removed.

The concept

Immutable storage offers time-based retention (locked or unlocked) and legal holds; only a locked time-based policy guarantees a fixed period that can't be shortened.

Why that’s the answer

The requirement has two parts: a fixed period, and no one able to shorten it. A time-based retention policy supplies the period, and locking it makes the policy compliant with regulations such as SEC 17a-4(f): the interval can be extended but never reduced or deleted. An unlocked policy is the near-twin that fails the second part. A legal hold has no period and can be cleared, and resource locks don't protect blob data.

How to reason it out
  1. Note the need for a fixed retention period.
  2. Note that even Owners must not shorten it.
  3. Choose a time-based retention policy over a legal hold.
  4. Lock it, because only a locked policy can't be shortened.

Exam tip: Fixed period that nobody can shorten = locked time-based retention policy.

SC-500 Azure Storage Account Security: Firewall, Defender for Storage, Encryption, SAS and Access — the lesson that teaches this.

Question 6Secure storage, databases, and networking

VMs in the subnet snet-app of vnet-prod must read blobs from a storage account, and all other networks must be blocked. The account doesn't need a private IP address, and the solution must not add hourly networking charges. What should you configure?

Choose one.

  • a
    A Microsoft.Storage service endpoint and a virtual network rule for snet-app Correct

    Service endpoints carry the subnet's identity to the storage firewall at no hourly cost, and the virtual network rule admits only that subnet.

  • b
    A private endpoint for the blob service in snet-app and Public network access set to Disabled

    This works, but a private endpoint is billed per hour and gives the account a private IP that isn't required.

  • c
    An IP network rule on the storage account that allows the address range of snet-app

    Storage IP network rules accept only public internet addresses; private ranges such as a subnet's can't be added.

  • d
    An outbound NSG rule on snet-app that allows the Storage service tag and denies the internet

    The NSG limits where the VMs can send traffic, but the storage account would still accept requests from every other network.

The concept

Storage firewall virtual network rules admit traffic from subnets that have the Microsoft.Storage service endpoint enabled.

Why that’s the answer

To restrict the account to one subnet without a private IP or extra charges, enable the Microsoft.Storage service endpoint on snet-app and add a virtual network rule for it; the firewall then denies everything else. A private endpoint also works but adds the hourly cost the stem rules out. IP rules can't contain private addresses, and an NSG controls the VMs' outbound traffic, not who can reach the account.

How to reason it out
  1. Note the constraints: no private IP needed, no hourly charge.
  2. Recall that firewall virtual network rules rely on service endpoints.
  3. Rule out private ranges in IP rules.
  4. Remember that an NSG on the client side doesn't lock down the account.

Exam tip: Subnet-only access, no private IP, no hourly fee: service endpoint + virtual network rule.

SC-500 Azure Storage Account Security: Firewall, Defender for Storage, Encryption, SAS and Access — the lesson that teaches this.

What SC-500 domain 2 tests, topic by topic

The official exam guide breaks Secure storage, databases, and networking into 3 topics. The question bank follows the same split, so a weak topic shows up as a cluster of misses you can go back and read.

Published SC-500 practice questions per topic in Secure storage, databases, and networking
TopicWhat it coversQuestions
Implement security for storage accountsSkills outline section (SC-500 study guide, fetched 2026-10-15). Implement and configure security for storage accounts; Configure Azure Storage firewall rules; Implement Defender for Storage threat protection configurations; Manage access to storage, including access policies.45
Implement security for databasesSkills outline section (SC-500 study guide, fetched 2026-10-15). Implement platform-level security configurations in Azure SQL; Configure database auditing for Azure SQL Database and Azure SQL Managed Instance; Configure Defender for Databases protection across Azure database services.45
Implement security for Azure network servicesSkills outline section (SC-500 study guide, fetched 2026-10-15). Implement and manage network security groups (NSGs) and application security groups (ASGs); Implement and configure network access policies by using Azure Virtual Network Manager; Configure security for an Azure Virtual WAN; Implement and configure security for virtual private network (VPN) connections; Implement and configure Microsoft Entra Private Access; Configure Azure private endpoints to secure access to Azure platform as a service (PaaS) resources; Configure Azure Private Link services to secure access to network resources; Implement and configure Azure Firewall; Evaluate effective security rules by using Azure Network Watcher diagnostics.45
Total135

Revise Secure storage, databases, and networking before you drill it

Other SC-500 domains

Secure storage, databases, and networking: your questions

Secure storage, databases, and networking is domain 2 of the SC-500 exam guide and carries 28% of the scored content — the heaviest of the 4 domains. On a 50-question paper that works out to roughly 14 questions, though Microsoft Azure does not publish an exact per-domain count and individual exam forms vary.

Source

The domain weight and topic list on this page come from the official SC-500 exam guide.