DP-300 Implement a secure environment Practice Question
You are configuring Azure SQL Database firewall rules for a new application. The application runs on Azure VMs in the same region. To minimize latency and security risk, which approach should you use?
⚠ Common exam trap
Watch out — candidates often confuse 'allowing Azure services' (a broad, insecure setting) with the more secure virtual network service endpoint approach, or they mistakenly think adding individual VM public IPs is sufficient for security and latency.
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
✓
Configure a virtual network service endpoint and a virtual network firewall rule.
Using a virtual network service endpoint and a virtual network firewall rule allows Azure SQL Database to accept traffic only from the specific subnet hosting the application VMs, without exposing the database to the public internet. This minimizes latency by keeping traffic within the Azure backbone network and reduces the security risk by eliminating broad IP-based rules.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Add a firewall rule allowing all Azure IP addresses.
Why it's wrong here
Allowing all Azure IPs is overly broad and insecure.
- ✓
Configure a virtual network service endpoint and a virtual network firewall rule.
Why this is correct
Service endpoints provide secure, low-latency connectivity from the VNet to Azure SQL.
- ✗
Add a firewall rule for each VM's public IP address.
Why it's wrong here
Public IPs may change and are less secure than VNet integration.
- ✗
Add a firewall rule allowing all Azure services to access the database.
Why it's wrong here
Allowing all Azure services is too permissive and not secure.
Visual reference
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.
Key term
Azure SQL Firewall Rules
Azure SQL Firewall Rules are security settings that control which IP addresses or Azure services are allowed to connect to a SQL database hosted in Microsoft Azure.
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.