- A
Configure a private endpoint for the Key Vault and assign it to the SQL server's virtual network.
Why wrong: This is a valid approach but requires setting up virtual network integration and is not a single 'additional configuration' in Key Vault alone. The firewall exception is a simpler and more direct configuration.
- B
Enable soft-delete on the Key Vault.
Why wrong: Soft-delete is for recovery of deleted keys, secrets, and certificates. It does not grant access to bypass the firewall.
- C
Enable the 'Allow trusted Microsoft services to bypass this firewall' setting.
This setting allows Azure services like Azure SQL Database, which are trusted by Azure, to access the Key Vault even when the firewall is enabled to deny public traffic. It is the required configuration to allow TDE operations.
- D
Add a firewall rule to allow traffic from the Azure SQL Database's public IP address.
Why wrong: Azure SQL Database uses a range of public IPs that are not static and can change. It is not practical to maintain IP-based rules, and this would also compromise security by allowing broader IP ranges.
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. A key principle to apply: azure Key Vault firewall can deny all public access.. 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.
A company uses Azure SQL Database with Transparent Data Encryption (TDE) encrypted using a customer-managed key (CMK) stored in Azure Key Vault. The Key Vault is protected by a firewall that denies all public access. The SQL server must be able to access the key for TDE operations. Which additional configuration is necessary in the Key Vault to allow this?
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 'Allow trusted Microsoft services to bypass this firewall' setting.
Option C is correct because when Azure Key Vault is protected by a firewall that denies all public access, the Azure SQL Database service (a trusted Microsoft service) must be explicitly allowed to bypass the firewall to retrieve the customer-managed key for TDE operations. Enabling the 'Allow trusted Microsoft services to bypass this firewall' setting permits the SQL server's managed identity to authenticate and access the key vault without requiring a public IP address or network rule.
Key principle: Azure Key Vault firewall can deny all public access.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Configure a private endpoint for the Key Vault and assign it to the SQL server's virtual network.
Why it's wrong here
This is a valid approach but requires setting up virtual network integration and is not a single 'additional configuration' in Key Vault alone. The firewall exception is a simpler and more direct configuration.
- ✗
Enable soft-delete on the Key Vault.
Why it's wrong here
Soft-delete is for recovery of deleted keys, secrets, and certificates. It does not grant access to bypass the firewall.
- ✓
Enable the 'Allow trusted Microsoft services to bypass this firewall' setting.
Why this is correct
This setting allows Azure services like Azure SQL Database, which are trusted by Azure, to access the Key Vault even when the firewall is enabled to deny public traffic. It is the required configuration to allow TDE operations.
Related concept
Azure Key Vault firewall can deny all public access.
- ✗
Add a firewall rule to allow traffic from the Azure SQL Database's public IP address.
Why it's wrong here
Azure SQL Database uses a range of public IPs that are not static and can change. It is not practical to maintain IP-based rules, and this would also compromise security by allowing broader IP ranges.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse network-level controls (private endpoints, firewall rules) with the Azure platform's built-in trust mechanism, mistakenly thinking that a private endpoint or a static IP rule is required when the simpler 'trusted Microsoft services' bypass is the correct and intended solution for PaaS services like Azure SQL Database.
Detailed technical explanation
How to think about this question
Under the hood, the 'Allow trusted Microsoft services' setting leverages Azure's internal service-to-service authentication, where the SQL server's system-assigned managed identity is authenticated by Azure Active Directory and authorized by Key Vault's access policy. This bypass works because Azure SQL Database runs on compute nodes that are part of the Azure platform, and the firewall exception is based on the source being an Azure service rather than a specific IP range. In a real-world scenario, if this setting is not enabled and the Key Vault firewall blocks all public access, TDE operations will fail with a 'Key Vault authentication error' because the SQL server cannot retrieve the key for encryption or decryption.
KKey Concepts to Remember
- Azure Key Vault firewall can deny all public access.
- Trusted Microsoft services can bypass Key Vault firewalls with a specific setting.
- Azure SQL Database is considered a trusted Microsoft service for Key Vault access.
- This bypass allows secure CMK access for TDE without public exposure.
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
Azure Key Vault firewall can deny all public access.
Real-world example
How this comes up in practice
A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.
What to study next
Got this wrong? Here's your next step.
Review azure Key Vault firewall can deny all public access., then practise related AZ-500 questions on the same topic to reinforce the concept.
- →
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 — Azure Key Vault firewall can deny all public access..
What is the correct answer to this question?
The correct answer is: Enable the 'Allow trusted Microsoft services to bypass this firewall' setting. — Option C is correct because when Azure Key Vault is protected by a firewall that denies all public access, the Azure SQL Database service (a trusted Microsoft service) must be explicitly allowed to bypass the firewall to retrieve the customer-managed key for TDE operations. Enabling the 'Allow trusted Microsoft services to bypass this firewall' setting permits the SQL server's managed identity to authenticate and access the key vault without requiring a public IP address or network rule.
What should I do if I get this AZ-500 question wrong?
Review azure Key Vault firewall can deny all public access., then practise related AZ-500 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
Azure Key Vault firewall can deny all public access.
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 →
Last reviewed: Jun 11, 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.