Question 678 of 953
Implement a secure environmenteasyMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is to set 'Allow Azure Services and resources to access this server' to ON and add a firewall rule for the on-premises IP range. This works because enabling that toggle creates a special server-level firewall rule that permits traffic from all Azure services, including those from other subscriptions, by covering Azure’s public IP ranges, while the additional rule explicitly allows only your specified on-premises IP range, blocking all other external traffic. On the DP-300 exam, this configuration tests your understanding of Azure SQL Database firewall layers and the distinction between server-level and database-level rules, often appearing as a scenario where candidates must avoid the trap of confusing the “Allow Azure Services” toggle with a simple IP rule. A common memory tip is to think of the toggle as a “master key” for Azure services and the IP rule as a “specific key” for your on-premises network—both are needed to satisfy the requirement.

DP-300 Implement a secure environment Practice Question

This DP-300 practice question tests your understanding of implement a secure environment. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. 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.

You need to configure Azure SQL Database to allow connections only from Azure services and from a specific on-premises IP range. Which firewall rule configuration should you apply at the server level?

Question 1easymultiple choice
Full question →

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 'Allow Azure Services and resources to access this server' to ON and add a firewall rule for the on-premises IP range.

Option C is correct because enabling 'Allow Azure Services and resources to access this server' permits connections from all Azure services (including those from other subscriptions) by adding a special firewall rule that allows Azure IP ranges. Adding a separate firewall rule for the specific on-premises IP range then restricts non-Azure external traffic to only that range. This combination meets the requirement to allow only Azure services and the specified on-premises range.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 for the server.

    Why it's wrong here

    Private endpoint provides private connectivity, not IP-based.

  • Create a virtual network service endpoint and add a VNet firewall rule.

    Why it's wrong here

    Not required for IP-based access.

  • Set 'Allow Azure Services and resources to access this server' to ON and add a firewall rule for the on-premises IP range.

    Why this is correct

    Allows Azure services and on-premises traffic.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Set 'Allow Azure Services and resources to access this server' to OFF and add a firewall rule for the on-premises IP range.

    Why it's wrong here

    Would block Azure services.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often think 'Allow Azure Services' must be OFF to secure the database, but they miss that the requirement explicitly asks to allow connections from Azure services, making ON necessary, and then they forget to add the on-premises IP rule separately.

Detailed technical explanation

How to think about this question

The 'Allow Azure Services and resources to access this server' setting creates a firewall rule with start IP 0.0.0.0 and end IP 0.0.0.0, which is a special marker that the Azure SQL firewall interprets as allowing traffic from any Azure datacenter IP. This is distinct from adding explicit IP ranges, and it does not open the database to the public internet. In a real-world scenario, if you need to allow only specific Azure services (e.g., from your own subscription), you would instead use a VNet firewall rule or private endpoint for finer control.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

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

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related DP-300 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DP-300 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 DP-300 question test?

Implement a secure environment — This question tests Implement a secure environment — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Set 'Allow Azure Services and resources to access this server' to ON and add a firewall rule for the on-premises IP range. — Option C is correct because enabling 'Allow Azure Services and resources to access this server' permits connections from all Azure services (including those from other subscriptions) by adding a special firewall rule that allows Azure IP ranges. Adding a separate firewall rule for the specific on-premises IP range then restricts non-Azure external traffic to only that range. This combination meets the requirement to allow only Azure services and the specified on-premises range.

What should I do if I get this DP-300 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

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.

Loading comments…

Sign in to join the discussion.

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.