Question 941 of 919
DP-300 Azure SQL Database firewall Practice Question
Your organization uses Azure SQL Database and wants to restrict access to only specific on-premises IP addresses. The database has a public endpoint. Which security feature should you configure?
⚠ Common exam trap
Candidates might consider enabling 'Allow Azure services' or using virtual network endpoints, but those are for Azure service access or private network integration, not for restricting on-premises IPs.
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
✓
Set firewall rules to allow specific on-premises IP ranges.
To restrict access to specific on-premises IP addresses, you should configure firewall rules to allow those IP ranges. Setting a firewall rule ensures that only traffic from allowed IP addresses can reach the database. Option C directly addresses this requirement.
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 'Allow Azure services and resources to access this server' in the firewall settings.
Why it's wrong here
Correct. This setting allows Azure services (e.g., App Service, Functions) to connect to the database through the public endpoint.
- ✗
Enable Always Encrypted with secure enclaves.
Why it's wrong here
Incorrect. Always Encrypted with secure enclaves is a data encryption feature, not a network access control.
- ✓
Set firewall rules to allow specific on-premises IP ranges.
Why this is correct
Correct. Firewall rules for on-premises IP ranges allow specific on-premises clients to connect.
- ✗
Create a virtual network service endpoint for SQL.
Why it's wrong here
Incorrect. A virtual network service endpoint is used for private connectivity from a VNet, but the question assumes a public endpoint is already in use.
- ✗
Configure a private endpoint for the database.
Why it's wrong here
Incorrect. A private endpoint provides private connectivity, but the database already has a public endpoint, and the requirement can be met with firewall rules.
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 24, 2026
This DP-300 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 DP-300 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.