Question 814 of 953
Implement a secure environmentmediumMultiple SelectObjective-mapped

Quick Answer

The answer is to disable public network access on the SQL server and use Azure Private Link. These two practices work together to enforce network security best practices for Azure SQL Database by ensuring that all traffic to your database is routed through a private endpoint within your virtual network, completely bypassing the public internet. Disabling public access at the server level acts as a master kill switch, blocking any inbound traffic that isn’t explicitly allowed through a private endpoint, while Private Link provides a secure, dedicated connection that eliminates exposure to the open web. On the Microsoft Azure Database Administrator Associate DP-300 exam, this question tests your understanding of modern network isolation versus legacy methods; a common trap is selecting “Allow Azure services” or VNet service endpoints, which are broader and less secure than Private Link. Remember the memory tip: “Private Link, public sink” — if you want true security, lock down public access and link privately.

DP-300 Implement a secure environment Practice Question

This DP-300 practice question tests your understanding of implement a secure environment. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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 are designing a secure environment for Azure SQL Database. Which TWO of the following are recommended practices for network security?

Question 1mediummulti select
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

Use Azure Private Link to connect to the database from a virtual network.

Options A and C are correct. Azure Private Link ensures traffic never traverses the public internet. Disabling public network access at the server level blocks all internet traffic. Option B is wrong because allowing all Azure services is a broad rule that may be insecure. Option D is wrong because VNet service endpoints are legacy and less secure than Private Link. Option E is wrong because firewall rules with large IP ranges are less secure.

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.

  • Enable the 'Allow Azure services and resources to access this server' firewall setting.

    Why it's wrong here

    This allows all Azure services, including those outside your subscription, which is a security risk.

  • Use VNet service endpoints instead of Private Link to reduce costs.

    Why it's wrong here

    Service endpoints still expose the database to the public endpoint, though restricted to the VNet.

  • Use Azure Private Link to connect to the database from a virtual network.

    Why this is correct

    Private Link provides a private IP address within the VNet, eliminating exposure to the internet.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Disable public network access on the SQL server.

    Why this is correct

    This ensures only private endpoint connections are allowed.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Add firewall rules that allow all IP addresses from your organization's IP range.

    Why it's wrong here

    Allowing a large IP range increases attack surface; use the most restrictive rules.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Detailed technical explanation

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

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.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • 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 startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.

What to study next

Got this wrong? Here's your next step.

Identify which DP-300 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.

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: Use Azure Private Link to connect to the database from a virtual network. — Options A and C are correct. Azure Private Link ensures traffic never traverses the public internet. Disabling public network access at the server level blocks all internet traffic. Option B is wrong because allowing all Azure services is a broad rule that may be insecure. Option D is wrong because VNet service endpoints are legacy and less secure than Private Link. Option E is wrong because firewall rules with large IP ranges are less secure.

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

Identify which DP-300 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.

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

Same concept, more angles

2 more ways this is tested on DP-300

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You are setting up Azure SQL Database and need to ensure that only specific Azure services (e.g., Azure Data Factory) can access the database. What should you configure?

easy
  • A.Create a private endpoint for the database.
  • B.Add firewall rules for the public IP addresses of the Azure services.
  • C.Add a firewall rule with start and end IP set to 0.0.0.0.
  • D.Add a virtual network rule for the subnet where the service is deployed.

Why D: Option D is correct because a virtual network rule allows you to restrict access to your Azure SQL Database to traffic originating from a specific virtual network subnet. When Azure services like Azure Data Factory are deployed in a virtual network, you can create a virtual network rule that references the subnet of that service, ensuring only traffic from that subnet can connect. This provides a more secure and granular access control compared to IP-based firewall rules, as it leverages the Azure backbone network and avoids exposing the database to public IP ranges.

Variation 2. Your organization has an Azure SQL Database server. You need to ensure that only applications running on Azure virtual machines in a specific virtual network can connect to the database. Which THREE actions should you take?

hard
  • A.Add a service endpoint for Azure SQL Database to the virtual network.
  • B.Add a virtual network rule for the specific subnet of the VMs.
  • C.Set the 'Allow Azure Services and resources to access this server' setting to OFF.
  • D.Remove all existing firewall rules that allow public IP ranges.
  • E.Set the 'Allow Azure Services and resources to access this server' setting to ON.

Why B: Option B is correct because adding a virtual network rule for the specific subnet of the VMs allows Azure SQL Database to accept traffic only from that subnet when a service endpoint is enabled. This restricts access to the database to only those applications running on Azure VMs within the specified virtual network, ensuring network-level isolation.

Last reviewed: Jun 21, 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.