Question 537 of 1,170
Implement and Manage StorageeasyMultiple SelectObjective-mapped

Restrict Storage Account to a Subnet Using Service Endpoint

This AZ-104 practice question tests your understanding of implement and manage storage. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. 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.

An application runs in a subnet and must reach a storage account over the public endpoint, but only that subnet should be allowed. The team does not want to use a private endpoint. Which two configurations should the administrator use? Select two.

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

Enable the Microsoft.Storage service endpoint on the subnet.

Enabling the Microsoft.Storage service endpoint on the subnet (A) ensures that traffic from the subnet to the storage account's public endpoint is routed through the Azure backbone network and uses the source IP of the subnet's virtual network, allowing the storage account firewall to identify the traffic. Adding the subnet to the storage account's virtual network rules (B) then explicitly permits only that subnet's traffic, denying all other public endpoint access. Together, these two configurations restrict access to the storage account's public endpoint exclusively to the specified subnet without requiring a private endpoint.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Enable the Microsoft.Storage service endpoint on the subnet.

    Why this is correct

    A service endpoint extends the subnet identity to the storage service so the subnet can be authorized without a private IP address.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Add the subnet to the storage account's virtual network rules.

    Why this is correct

    The storage firewall must explicitly allow the subnet. Virtual network rules are how the storage account permits that subnet.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Create a private endpoint for the storage account.

    Why it's wrong here

    A private endpoint gives the service a private IP address, which the scenario explicitly says not to use.

    When this WOULD be correct

    If the question required a private connection to the storage account without exposing it to the public internet, and the team is allowed to use private endpoints, then creating a private endpoint would be correct.

  • Assign the Reader role to the subnet.

    Why it's wrong here

    Subnets do not receive Azure RBAC roles. Reader would not control storage network access anyway.

    When this WOULD be correct

    In a scenario where a user or application in a subnet needs to read storage account configuration (e.g., list keys) but not access data, and network access is already open, assigning the Reader role to the subnet's managed identity or user would be correct.

  • Turn on blob soft delete.

    Why it's wrong here

    Soft delete helps recovery of deleted blobs, but it does not restrict which networks can reach the storage account.

    When this WOULD be correct

    In a scenario where an organization needs to protect against accidental blob deletion or overwrite, enabling blob soft delete would be correct. For example, a question might ask: 'Which feature should be enabled to allow recovery of accidentally deleted blobs within a retention period?'

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.

Enable the Microsoft.Storage service endpoint on the subnet.Correct answer

Why this is correct

A service endpoint extends the subnet identity to the storage service so the subnet can be authorized without a private IP address.

Create a private endpoint for the storage account.Wrong answer — click to see why

Why this is wrong here

The question explicitly states the team does not want to use a private endpoint, so creating a private endpoint (option C) contradicts the requirement.

★ When this WOULD be the correct answer

If the question required a private connection to the storage account without exposing it to the public internet, and the team is allowed to use private endpoints, then creating a private endpoint would be correct.

Why candidates choose this

Candidates may confuse service endpoints with private endpoints, or think private endpoints are always the best security practice, ignoring the explicit constraint in the question.

Assign the Reader role to the subnet.Wrong answer — click to see why

Why this is wrong here

Assigning the Reader role to the subnet does not restrict network access to the storage account; it only grants read permissions to resources in that subnet, but the subnet itself is not authorized to access the storage account over the network.

★ When this WOULD be the correct answer

In a scenario where a user or application in a subnet needs to read storage account configuration (e.g., list keys) but not access data, and network access is already open, assigning the Reader role to the subnet's managed identity or user would be correct.

Why candidates choose this

Candidates may confuse role-based access control (RBAC) with network access control, thinking that assigning a role to a subnet grants network-level access to the storage account.

Turn on blob soft delete.Wrong answer — click to see why

Why this is wrong here

Blob soft delete is a data protection feature that allows recovering deleted blobs, but it does not restrict network access to the storage account. The question requires limiting access to a specific subnet, which soft delete cannot achieve.

★ When this WOULD be the correct answer

In a scenario where an organization needs to protect against accidental blob deletion or overwrite, enabling blob soft delete would be correct. For example, a question might ask: 'Which feature should be enabled to allow recovery of accidentally deleted blobs within a retention period?'

Why candidates choose this

Candidates may confuse data protection features with network security controls, or mistakenly think that soft delete includes access restrictions because it is a security-related setting in the storage account.

Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse service endpoints with private endpoints, assuming private endpoints are required for subnet-specific access, but service endpoints plus virtual network rules achieve the same restriction on the public endpoint without the cost or complexity of private endpoints.

Trap categories for this question

  • Scenario analysis trap

    A private endpoint gives the service a private IP address, which the scenario explicitly says not to use.

Detailed technical explanation

How to think about this question

Service endpoints extend the virtual network identity to Azure services, enabling the storage account firewall to evaluate traffic based on the subnet's virtual network ID rather than a public IP. The storage account's virtual network rules accept traffic only from subnets with the corresponding service endpoint enabled, and the firewall denies all other traffic by default when configured. This approach uses the storage account's public endpoint (e.g., *.blob.core.windows.net) but ensures traffic from the subnet stays within the Azure backbone, bypassing the internet.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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.

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-104 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-104 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-104 question test?

Implement and Manage Storage — This question tests Implement and Manage Storage — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Enable the Microsoft.Storage service endpoint on the subnet. — Enabling the Microsoft.Storage service endpoint on the subnet (A) ensures that traffic from the subnet to the storage account's public endpoint is routed through the Azure backbone network and uses the source IP of the subnet's virtual network, allowing the storage account firewall to identify the traffic. Adding the subnet to the storage account's virtual network rules (B) then explicitly permits only that subnet's traffic, denying all other public endpoint access. Together, these two configurations restrict access to the storage account's public endpoint exclusively to the specified subnet without requiring a private endpoint.

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

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

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

Keep practising

More AZ-104 practice questions

Last reviewed: Jun 11, 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-104 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-104 exam.