Question 244 of 1,000
Secure compute, storage, and databaseshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is the storage account’s firewall blocking the request from the current IP address. When a storage account firewall is enabled, it denies all traffic by default unless the source IP is explicitly allowed, and the error “operation not allowed” is a direct symptom of this restriction. The PowerShell script uses a storage account key for authentication, which bypasses Azure AD requirements but does not override network-level firewall rules—so even with a valid key, the request is dropped if the client’s IP is not on the allowlist. On the AZ-500 exam, this scenario tests your understanding of defense-in-depth: firewalls operate at the network layer, separate from authentication methods like keys, SAS tokens, or Azure AD. A common trap is assuming a valid key or SAS guarantees access, but the firewall is evaluated first. Memory tip: think of the firewall as a bouncer checking your ID (IP address) before you even show your ticket (key or token).

AZ-500 Secure compute, storage, and databases Practice Question

This AZ-500 practice question tests your understanding of secure compute, storage, and databases. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Exhibit

Refer to the exhibit.

$storageAccount = Get-AzStorageAccount -ResourceGroupName "RG1" -Name "storagedata1"
$ctx = $storageAccount.Context
Get-AzStorageBlob -Container "data" -Context $ctx | Where-Object {$_.BlobType -eq "BlockBlob" -and $_.AccessTier -eq "Cool"} | Set-AzStorageBlobAccessTier -AccessTier "Hot" -PassThru

You run the above PowerShell script to change the access tier of all block blobs in the 'data' container from Cool to Hot. However, you receive an error that the operation is not allowed. What is the most likely reason?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

Question 1hardmultiple choice
Full question →

Exhibit

Refer to the exhibit.

$storageAccount = Get-AzStorageAccount -ResourceGroupName "RG1" -Name "storagedata1"
$ctx = $storageAccount.Context
Get-AzStorageBlob -Container "data" -Context $ctx | Where-Object {$_.BlobType -eq "BlockBlob" -and $_.AccessTier -eq "Cool"} | Set-AzStorageBlobAccessTier -AccessTier "Hot" -PassThru

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The storage account's firewall is blocking the request from the current IP address.

The script does not include the -ErrorAction Stop or handle the case where the storage account firewall is blocking access. However, the most common issue is that the storage account requires Azure AD authentication and the script uses the storage account key (via context without explicit Azure AD). But the error message 'operation not allowed' suggests that the storage account has a firewall that denies the request. Option D is correct. Option A: BlobType is correct. Option B: AccessTier change is allowed. Option C: The script does not use SAS.

Key principle: NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The script incorrectly filters for BlockBlob instead of PageBlob.

    Why it's wrong here

    BlockBlob is the correct type for data blobs; page blobs are for VHDs.

  • The storage account is using a shared access signature (SAS) token that has expired.

    Why it's wrong here

    The script does not use a SAS token; it uses the context from Get-AzStorageAccount which uses the Azure PowerShell session credentials.

  • The access tier cannot be changed from Cool to Hot after 30 days of creation.

    Why it's wrong here

    Access tier changes are allowed any time; there is no such restriction.

  • The storage account's firewall is blocking the request from the current IP address.

    Why this is correct

    If the storage account firewall denies access from the source IP, the operation will fail with an error like 'This request is not authorized to perform this operation'.

    Clue confirmation

    The clue word "most likely" in the question point toward this answer.

    Related concept

    Static NAT maps one inside address to one outside address.

Common exam traps

Common exam trap: NAT rules depend on direction and matching traffic

NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.

Detailed technical explanation

How to think about this question

NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.

KKey Concepts to Remember

  • Static NAT maps one inside address to one outside address.
  • PAT allows many inside hosts to share one public address using ports.
  • Inside local and inside global describe the private and translated addresses.
  • NAT ACLs identify traffic for translation, not always security filtering.

TExam Day Tips

  • Identify inside and outside interfaces first.
  • Check whether the scenario needs static NAT, dynamic NAT or PAT.
  • Do not confuse NAT matching ACLs with normal packet-filtering intent.

Key takeaway

NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related AZ-500 NAT questions on configuration and troubleshooting.

Related practice questions

Related AZ-500 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-500 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-500 question test?

Secure compute, storage, and databases — This question tests Secure compute, storage, and databases — Static NAT maps one inside address to one outside address..

What is the correct answer to this question?

The correct answer is: The storage account's firewall is blocking the request from the current IP address. — The script does not include the -ErrorAction Stop or handle the case where the storage account firewall is blocking access. However, the most common issue is that the storage account requires Azure AD authentication and the script uses the storage account key (via context without explicit Azure AD). But the error message 'operation not allowed' suggests that the storage account has a firewall that denies the request. Option D is correct. Option A: BlobType is correct. Option B: AccessTier change is allowed. Option C: The script does not use SAS.

What should I do if I get this AZ-500 question wrong?

Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related AZ-500 NAT questions on configuration and troubleshooting.

Are there clue words in this question I should notice?

Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

What is the key concept behind this question?

Static NAT maps one inside address to one outside address.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

3 more ways this is tested on AZ-500

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You run the above Kusto query in Azure Monitor Logs for an Azure Storage account. The query returns results showing multiple failed attempts to access PDF blobs with 403 errors from various IP addresses. What is the most likely cause of these failures?

hard
  • A.Anonymous public access is enabled, but the blobs are not marked as public.
  • B.The PDF blobs have been deleted or moved to a different container.
  • C.The storage account firewall is blocking requests from these IP addresses.
  • D.The shared access signatures (SAS) used to access the blobs have expired.

Why C: 403 Forbidden errors indicate that the request was denied due to authorization failure. The most likely cause is that the IP addresses are not allowed by the storage account firewall. Option C is correct. Option A (blob not found) returns 404. Option B (SAS expiration) could be a cause but the query shows multiple IPs, suggesting a firewall issue. Option D (anonymous access) would return 401 or 403 if anonymous access is disabled.

Variation 2. Refer to the exhibit. You are configuring network access for an Azure Storage account. After applying this configuration, users report that they cannot access the storage account from their on-premises network (public IP: 198.51.100.50). What is the most likely reason?

medium
  • A.The storage account is configured with a private endpoint
  • B.The bypass for AzureServices is not configured correctly
  • C.The virtual network rules are missing
  • D.The user's public IP address is not in the allowed IP rules

Why D: Option B is correct because the default action is Deny, and only the IP range 203.0.113.0/24 is allowed. The user's IP is 198.51.100.50, which is not in the allowed range. Option A is wrong because Azure Services bypass only affects trusted Azure services, not user IPs. Option C is wrong because there are no virtual network rules. Option D is wrong because the storage account is not a private endpoint configuration.

Variation 3. You receive the above ARM template snippet for an Azure Storage account. After deployment, a developer reports that they cannot access the storage account from a permitted virtual network. What is the most likely cause?

medium
  • A.The encryption services for blob and file are not enabled correctly.
  • B.No virtual network rules are defined, so all traffic is denied by default.
  • C.The key version is pinned to an older version, causing encryption failures.
  • D.The Key Vault firewall is blocking access to the encryption key.

Why B: The encryption configuration is correct; the issue is that the network ACLs have defaultAction set to 'Deny' but no virtual network rules are defined. Option B is correct. Option A (key version) is not the issue because the version is specified. Option C (blob and file encryption) is fine. Option D (key vault permission) is not indicated in the exhibit.

Last reviewed: Jun 20, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This AZ-500 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-500 exam.