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.
Go deeper
Related to this question
Learn chapter
Overview of Azure Data Platform Options
Key term
Azure SQL Performance Tuning
Azure SQL Performance Tuning is the process of optimizing the speed and efficiency of queries and database operations in Microsoft Azure SQL Database or SQL Managed Instance to reduce latency and improve throughput.
About these practice questions
One of 906 original DP-300 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.