- A
Generate a SAS token and require HTTPS.
Why wrong: SAS token does not restrict access based on network location.
- B
Configure storage firewall rules to deny all public IPs, add the VNet as a service endpoint, and enable 'Secure transfer required' (HTTPS).
Firewall blocks public access, service endpoint allows VNet, and 'Secure transfer required' enforces HTTPS.
- C
Configure a Network Security Group (NSG) on the subnet to deny all inbound traffic.
Why wrong: NSG controls traffic to VMs, not to the storage account directly.
- D
Configure a private endpoint for the storage account and disable public network access.
Why wrong: Private endpoint provides private connectivity, but you must also enable 'Secure transfer required' for HTTPS.
Quick Answer
The answer is to configure storage firewall rules to deny all public IPs, add the VNet as a service endpoint, and enable 'Secure transfer required' (HTTPS). This combination works because the firewall rules explicitly block any traffic not originating from the trusted VNet, while the service endpoint ensures traffic from that VNet reaches the storage account over the Azure backbone. Enabling 'Secure transfer required' enforces HTTPS for all data in transit, meeting the encryption requirement. On the AZ-500 exam, this scenario tests your understanding of network segmentation and encryption controls for Azure Storage, often appearing as a multi-step configuration where candidates must remember that a service endpoint alone does not block public access—you must also deny all public IPs in the firewall. A common trap is thinking a private endpoint or NSG alone suffices, but the private endpoint still requires a firewall rule to block public endpoints, and NSGs only filter traffic within the VNet. Memory tip: think "Firewall first, then endpoint, then HTTPS"—three distinct layers to lock down storage completely.
AZ-500 Secure compute, storage, and databases Practice Question
This AZ-500 practice question tests your understanding of secure compute, storage, and databases. 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.
You need to ensure that an Azure Storage account is accessible only from a specific virtual network (VNet) and only over HTTPS. You also want to deny access from any public IP. What should you configure?
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
Configure storage firewall rules to deny all public IPs, add the VNet as a service endpoint, and enable 'Secure transfer required' (HTTPS).
Option D is correct because you can configure firewall rules to deny all public IPs, add the VNet as a service endpoint, and enable the 'Secure transfer required' property. Option A is wrong because NSG on the subnet is not sufficient to block public internet access to the storage account. Option B is wrong because private endpoint creates a private IP, but you also need to block public access. Option C is wrong because SAS token does not restrict network location.
Key principle: Count usable hosts — not total addresses — and remember that the network and broadcast addresses are not available to hosts in standard IPv4 subnets.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Generate a SAS token and require HTTPS.
Why it's wrong here
SAS token does not restrict access based on network location.
- ✓
Configure storage firewall rules to deny all public IPs, add the VNet as a service endpoint, and enable 'Secure transfer required' (HTTPS).
- ✗
Configure a Network Security Group (NSG) on the subnet to deny all inbound traffic.
Why it's wrong here
NSG controls traffic to VMs, not to the storage account directly.
- ✗
Configure a private endpoint for the storage account and disable public network access.
Why it's wrong here
Private endpoint provides private connectivity, but you must also enable 'Secure transfer required' for HTTPS.
Common exam traps
Common exam trap: usable hosts are not the same as total addresses
Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.
Detailed technical explanation
How to think about this question
Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.
KKey Concepts to Remember
- CIDR notation defines the prefix length.
- Block size helps identify subnet boundaries.
- Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
- The required host count determines the smallest suitable subnet.
TExam Day Tips
- Write the block size before choosing the subnet.
- Check whether the question asks for hosts, subnets or a specific address range.
- Do not confuse /24, /25, /26 and /27 host counts.
Key takeaway
Count usable hosts — not total addresses — and remember that the network and broadcast addresses are not available to hosts in standard IPv4 subnets.
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 block sizes, usable host formulas (2^n − 2), and how to find network and broadcast addresses for /24 through /30. Then practise related AZ-500 subnetting questions on CIDR, address ranges, and subnet selection.
- →
Secure compute, storage, and databases — study guide chapter
Learn the concepts, then practise the questions
- →
Secure compute, storage, and databases practice questions
Targeted practice on this topic area only
- →
All AZ-500 questions
1,000 questions across all exam domains
- →
Microsoft Azure Security Engineer Associate AZ-500 study guide
Full concept coverage aligned to exam objectives
- →
AZ-500 practice test guide
How to use practice tests most effectively before exam day
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.
Secure identity and access practice questions
Practise AZ-500 questions linked to Secure identity and access.
Secure compute, storage, and databases practice questions
Practise AZ-500 questions linked to Secure compute, storage, and databases.
Secure Azure using Microsoft Defender for Cloud and Microsoft Sentinel practice questions
Practise AZ-500 questions linked to Secure Azure using Microsoft Defender for Cloud and Microsoft Sentinel.
Manage identity and access practice questions
Practise AZ-500 questions linked to Manage identity and access.
Secure networking practice questions
Practise AZ-500 questions linked to Secure networking.
AZ-500 fundamentals practice questions
Practise AZ-500 questions linked to AZ-500 fundamentals.
AZ-500 scenario practice questions
Practise AZ-500 questions linked to AZ-500 scenario.
AZ-500 troubleshooting practice questions
Practise AZ-500 questions linked to AZ-500 troubleshooting.
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 — CIDR notation defines the prefix length..
What is the correct answer to this question?
The correct answer is: Configure storage firewall rules to deny all public IPs, add the VNet as a service endpoint, and enable 'Secure transfer required' (HTTPS). — Option D is correct because you can configure firewall rules to deny all public IPs, add the VNet as a service endpoint, and enable the 'Secure transfer required' property. Option A is wrong because NSG on the subnet is not sufficient to block public internet access to the storage account. Option B is wrong because private endpoint creates a private IP, but you also need to block public access. Option C is wrong because SAS token does not restrict network location.
What should I do if I get this AZ-500 question wrong?
Review block sizes, usable host formulas (2^n − 2), and how to find network and broadcast addresses for /24 through /30. Then practise related AZ-500 subnetting questions on CIDR, address ranges, and subnet selection.
What is the key concept behind this question?
CIDR notation defines the prefix length.
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 →
Same concept, more angles
2 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 need to restrict access to an Azure Storage account so that only traffic from a specific virtual network (VNet) subnet is allowed. Which Azure Storage firewall setting should you configure?
easy- A.Create a private endpoint for the storage account.
- B.Enable service endpoints on the subnet and add an IP rule.
- C.Add a firewall rule with the subnet's public IP address range.
- ✓ D.Add a virtual network rule that references the VNet and subnet.
Why D: Option B is correct because Storage firewall rules can restrict access to specific VNets and subnets by adding a 'Virtual Network' rule. Option A is wrong because IP rules allow specific public IPs, not VNets. Option C is wrong because Private Endpoint is a separate feature that uses private IPs but requires Private Link. Option D is wrong because service endpoints are a prerequisite but the rule type is 'Virtual Network'.
Variation 2. You need to restrict access to an Azure Storage account so that only requests from a specific Azure Virtual Network are allowed. What should you configure?
easy- A.Assign an RBAC role to the VNet's managed identity
- B.Configure a service endpoint for the storage account
- ✓ C.Configure the storage account firewall to allow access only from the VNet
- D.Configure an Azure Private Endpoint for the storage account
Why C: Azure Storage firewalls and virtual network rules allow you to restrict access to specific VNets. Option B is correct. Option A is wrong because private endpoints provide private connectivity but do not automatically block other traffic. Option C is wrong because service endpoints are used for other services. Option D is wrong because RBAC controls who can access, not where from.
Last reviewed: Jun 20, 2026
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.
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.
Sign in to join the discussion.