DP-300 Implement a secure environment Practice Question
You need to ensure that only specific Azure services can access your Azure SQL Database server. You want to allow traffic from Azure services but block all other traffic. What should you configure?
⚠ Common exam trap
It's easy for candidates to confuse the 'Allow Azure Services' rule with a generic 0.0.0.0 rule, leading candidates to think they need to add 0.0.0.0 to allow Azure traffic, when in fact the Azure services rule is a distinct mechanism that does not require explicit IP entries.
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 the firewall rule 'Allow Azure Services and resources to access this server' to ON and remove all other IP rules.
Setting the 'Allow Azure Services and resources to access this server' firewall rule to ON enables a special rule that permits traffic from all Azure datacenter IP ranges, while removing all other IP rules ensures no other external traffic can reach the server. This configuration meets the requirement to allow only Azure services and block all other traffic, as the Azure services rule is a blanket allow for Azure-originated connections without needing specific IP addresses.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Set the firewall rule 'Allow Azure Services and resources to access this server' to ON and remove all other IP rules.
Why this is correct
Enabling that server-level firewall rule permits connections originating from Azure datacentre IP ranges, while removing all other IP rules blocks every other source. This satisfies the requirement to allow Azure services only, though it does not restrict which Azure services connect.
- ✗
Set the firewall rule 'Allow Azure Services and resources to access this server' to OFF and add a rule for 0.0.0.0.
Why it's wrong here
Turning the Azure services rule off while adding 0.0.0.0 leaves Azure traffic blocked, because that address only functions as the exception marker when the toggle is enabled. It is tempting as a restrictive default, but it prevents the permitted Azure services from connecting at all.
- ✗
Set firewall rules to deny all IP addresses.
Why it's wrong here
Denying all IP addresses blocks the Azure services you intend to permit, since those services reach the server through Azure-internal addresses. It is tempting as a default-deny posture, but the requirement is to allow Azure traffic specifically; the correct configuration enables the Azure services firewall rule.
- ✗
Set the firewall rule 'Allow Azure Services and resources to access this server' to ON and add a rule for 0.0.0.0.
Why it's wrong here
Enabling 'Allow Azure Services' with a 0.0.0.0 rule permits any Azure tenant's resources, not only your specific services, so it fails the restriction requirement. It is tempting because 0.0.0.0 conventionally signals the Azure services exception, but that exception is tenant-wide rather than scoped.
Go deeper
Related to this question
Learn chapter
Deploying and Configuring SQL Server on Azure Virtual Machines
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
Courseiva writes every DP-300 question from scratch — 574 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.