- A
Create a private endpoint on the Key Vault for the SQL server
Why wrong: A private endpoint could enable connectivity, but it requires additional configuration and is not the simplest solution when the 'trusted services' option is available.
- B
Disable the Key Vault firewall
Why wrong: Disabling the firewall would expose the key vault to public network traffic, violating the security requirement.
- C
Enable the 'Allow trusted Microsoft services to bypass the firewall' setting on the Key Vault
This setting allows Azure SQL Database (as a trusted Microsoft service) to access the key vault for TDE operations without enabling public access.
- D
Assign the SQL server a system-assigned managed identity and grant it access to the key vault
Why wrong: While managed identity is used for authentication to Key Vault, it does not bypass the Key Vault firewall; the firewall must still allow the request.
Quick Answer
The answer is to enable the 'Allow trusted Microsoft services to bypass the firewall' setting on the Key Vault. This is correct because Azure SQL Database is classified as a trusted Microsoft service, and when this setting is enabled, the Key Vault firewall permits the SQL server to authenticate using its system-assigned managed identity to retrieve the customer-managed key for TDE operations, without needing to disable the firewall or configure a private endpoint. On the Microsoft Azure Security Engineer Associate AZ-500 exam, this scenario tests your understanding of how to grant Azure SQL Database access to a firewalled Key Vault for TDE with customer-managed keys, often appearing as a trap where candidates mistakenly think a private endpoint or firewall rule exception is required. The key insight is that trusted Microsoft services bypass the firewall automatically, so you do not need to add the SQL server’s IP address. Memory tip: think of the Key Vault firewall as a bouncer who lets in only VIPs—trusted Microsoft services are on the guest list.
AZ-500 Secure compute, storage, and databases Practice Question
This AZ-500 practice question tests your understanding of secure compute, storage, and databases. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. A key principle to apply: the 'Allow trusted Microsoft services to bypass the firewall' setting is for specific Azure services.. 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) protected by a customer-managed key (CMK) stored in Azure Key Vault. The Key Vault has a firewall enabled that denies all public network access. The SQL server is a Microsoft service. How can the SQL server be granted access to the key vault to perform TDE operations?
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 the firewall' setting on the Key Vault
Option C is correct because Azure Key Vault's firewall includes a setting to 'Allow trusted Microsoft services to bypass this firewall.' Azure SQL Database is a trusted Microsoft service, so enabling this setting allows the SQL server to authenticate to Key Vault using its system-assigned managed identity to retrieve the customer-managed key for TDE operations, without needing to disable the firewall or create a private endpoint.
Key principle: The 'Allow trusted Microsoft services to bypass the firewall' setting is for specific Azure services.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create a private endpoint on the Key Vault for the SQL server
Why it's wrong here
A private endpoint could enable connectivity, but it requires additional configuration and is not the simplest solution when the 'trusted services' option is available.
- ✗
Disable the Key Vault firewall
Why it's wrong here
Disabling the firewall would expose the key vault to public network traffic, violating the security requirement.
- ✓
Enable the 'Allow trusted Microsoft services to bypass the firewall' setting on the Key Vault
Why this is correct
This setting allows Azure SQL Database (as a trusted Microsoft service) to access the key vault for TDE operations without enabling public access.
Related concept
The 'Allow trusted Microsoft services to bypass the firewall' setting is for specific Azure services.
- ✗
Assign the SQL server a system-assigned managed identity and grant it access to the key vault
Why it's wrong here
While managed identity is used for authentication to Key Vault, it does not bypass the Key Vault firewall; the firewall must still allow the request.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often think a private endpoint is required for PaaS services to access a firewalled Key Vault, but they overlook that Azure SQL Database is a trusted Microsoft service that can bypass the firewall with the appropriate setting, and that a private endpoint would require the SQL server to be network-integrated, which it is not by default.
Detailed technical explanation
How to think about this question
Under the hood, the 'Allow trusted Microsoft services' setting works by allowing Azure services that are authenticated with a system-assigned managed identity and that are part of the Azure platform's trusted list (including Azure SQL Database) to bypass the Key Vault firewall. The SQL server's managed identity is used to authenticate to Azure Active Directory, which then issues a token that Key Vault accepts, but the network-level firewall check is skipped for these trusted services. In a real-world scenario, if you need to enforce network isolation but still allow TDE key access, this setting is the only way to avoid exposing the Key Vault to the public internet while maintaining functionality.
KKey Concepts to Remember
- The 'Allow trusted Microsoft services to bypass the firewall' setting is for specific Azure services.
- Azure SQL Database is considered a trusted Microsoft service for Key Vault access.
- This setting maintains Key Vault network isolation while enabling service integration.
- Managed identities provide authentication, but this setting provides network access through the firewall.
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
The 'Allow trusted Microsoft services to bypass the firewall' setting is for specific Azure services.
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 the 'Allow trusted Microsoft services to bypass the firewall' setting is for specific Azure services., 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 — The 'Allow trusted Microsoft services to bypass the firewall' setting is for specific Azure services..
What is the correct answer to this question?
The correct answer is: Enable the 'Allow trusted Microsoft services to bypass the firewall' setting on the Key Vault — Option C is correct because Azure Key Vault's firewall includes a setting to 'Allow trusted Microsoft services to bypass this firewall.' Azure SQL Database is a trusted Microsoft service, so enabling this setting allows the SQL server to authenticate to Key Vault using its system-assigned managed identity to retrieve the customer-managed key for TDE operations, without needing to disable the firewall or create a private endpoint.
What should I do if I get this AZ-500 question wrong?
Review the 'Allow trusted Microsoft services to bypass the firewall' setting is for specific Azure services., then practise related AZ-500 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
The 'Allow trusted Microsoft services to bypass the firewall' setting is for specific Azure services.
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
1 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. A company uses Azure SQL Database with Transparent Data Encryption (TDE) and a customer-managed key stored in Azure Key Vault. The Key Vault is configured with a firewall that denies all public access. The SQL server must be able to access the key. What additional configuration is necessary?
hard- ✓ A.Enable trusted Microsoft services on the Key Vault firewall
- B.Create a private endpoint for Key Vault
- C.Assign the SQL server's managed identity to the Key Vault
- D.Configure a service endpoint on the SQL server
Why A: When Azure Key Vault's firewall denies all public access, enabling 'Allow trusted Microsoft services' is necessary because Azure SQL Database's TDE key retrieval is considered a trusted service operation. This setting bypasses the firewall for specific Azure services like SQL Database that are authenticated and authorized to access the vault, without requiring a private endpoint or service endpoint.
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.