Question 537 of 953
Implement a secure environmentmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct choice is to create a private endpoint for Azure SQL Database in the same virtual network as the application VMs. This configuration assigns the database a private IP address from your virtual network, ensuring that all traffic between the VMs and the database stays entirely within the Microsoft Azure backbone network and never traverses the public internet, while encryption in transit is provided by default via TLS. On the DP-300 exam, this scenario tests your understanding of how to isolate and secure PaaS services using Azure Private Link, often appearing as a distractor alongside service endpoints or firewall rules. A common trap is assuming a service endpoint alone keeps traffic off the public internet—it does not, as it still uses Microsoft’s public IP space. Remember the key distinction: private endpoints use a private IP from your VNet, service endpoints do not. Memory tip: “Private IP, private path—public internet stays out of the math.”

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 manage an Azure SQL Database that is part of a business-critical application. You need to ensure that network traffic between the application hosted on Azure VMs and the database is encrypted and does not traverse the public internet. What should you configure?

Question 1mediummultiple 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

Create a private endpoint for Azure SQL Database in the same virtual network as the application VMs.

Option D is correct because creating a private endpoint for Azure SQL Database places the database service on a private IP address within the same virtual network as the application VMs. This ensures that all traffic between the VMs and the database stays entirely within the Microsoft Azure backbone network, never traversing the public internet, while also providing encryption in transit via TLS by default.

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.

  • Use TLS 1.2 for all connections to the database.

    Why it's wrong here

    TLS encrypts data in transit but traffic still traverses the public internet unless a private endpoint is used.

  • Configure server-level firewall rules to allow only the application VM IP addresses.

    Why it's wrong here

    Firewall rules allow traffic but still go over the public endpoint unless combined with service endpoints or private endpoints.

  • Enable forced tunneling on the application VMs to route all traffic through the on-premises network.

    Why it's wrong here

    Forced tunneling forces traffic to on-premises but does not ensure private connectivity to Azure SQL.

  • Create a private endpoint for Azure SQL Database in the same virtual network as the application VMs.

    Why this is correct

    Private endpoints provide a private IP address within the VNet, keeping traffic off the public internet.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse encryption (TLS) with network isolation, assuming that encrypting traffic alone prevents it from traversing the public internet, or they mistakenly believe that IP-based firewall rules create a private network path.

Detailed technical explanation

How to think about this question

Azure Private Endpoint uses Azure Private Link to map the Azure SQL Database logical server to a private IP address in a virtual network subnet. Traffic to the private endpoint is routed over the Microsoft backbone using the virtual network's infrastructure, and DNS resolution is automatically updated to resolve the database FQDN to the private IP. This architecture also supports network security group (NSG) rules and can be combined with service endpoints for additional control, but private endpoints are the only option that fully eliminates public internet exposure.

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

An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.

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: Create a private endpoint for Azure SQL Database in the same virtual network as the application VMs. — Option D is correct because creating a private endpoint for Azure SQL Database places the database service on a private IP address within the same virtual network as the application VMs. This ensures that all traffic between the VMs and the database stays entirely within the Microsoft Azure backbone network, never traversing the public internet, while also providing encryption in transit via TLS by default.

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.