Question 393 of 953
Implement a secure environmenteasyMultiple ChoiceObjective-mapped

Quick Answer

The answer is to enable 'Azure AD-only authentication' on the logical server, which directly disables SQL authentication on Azure SQL Database and enforces Microsoft Entra-only connections. This setting works at the server level to explicitly block all SQL authentication attempts, including those from contained database users, by rejecting any login that does not use a Microsoft Entra identity. On the Microsoft Azure Database Administrator Associate DP-300 exam, this scenario tests your understanding of how to implement organizational security policies at the logical server scope rather than at the database level, which is a common trap—candidates often mistakenly try to drop SQL logins or alter contained users, but those actions are ineffective if the server still allows SQL authentication. The key insight is that Azure AD-only authentication is a server-level toggle that overrides all database-level permissions, making it the single authoritative control. Memory tip: think of it as a "server-side bouncer" that checks for an Entra ID badge before anyone even reaches the database door.

DP-300 Implement a secure environment Practice Question

This DP-300 practice question tests your understanding of implement a secure environment. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. 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.

Your organization has a policy that all Azure SQL Database connections must use Microsoft Entra authentication. You need to ensure that application developers cannot accidentally use SQL authentication. What should you do?

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

Enable 'Azure AD-only authentication' on the logical server.

Option D is correct because enabling 'Azure AD-only authentication' on the logical server explicitly blocks all SQL authentication connections, including those from contained database users. This setting enforces that only Microsoft Entra ID (formerly Azure AD) principals can authenticate, directly aligning with the policy to prevent accidental use of SQL authentication.

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.

  • Configure server-level firewall rules to block all IP addresses except Azure services.

    Why it's wrong here

    Firewall rules control network access, not authentication type.

  • Disable SQL authentication for all contained database users.

    Why it's wrong here

    Contained database users are not affected by server-level SQL authentication; disabling them does not prevent server-level SQL logins.

  • Create a database-level trigger to reject connections using SQL authentication.

    Why it's wrong here

    Database-level triggers cannot reject connections; authentication is handled at the server level.

  • Enable 'Azure AD-only authentication' on the logical server.

    Why this is correct

    This setting disables SQL authentication and enforces Microsoft Entra authentication for all connections.

    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 may think disabling SQL authentication for contained users (Option B) is sufficient, but they miss that the server-level authentication policy must be enforced to block all SQL authentication attempts, including those from server-level logins or newly created contained users.

Detailed technical explanation

How to think about this question

The 'Azure AD-only authentication' feature is configured at the logical server level via the Azure portal, CLI, or PowerShell, and it enforces a server property that rejects any login attempt not using Microsoft Entra ID. Under the hood, this setting modifies the server's authentication policy, causing the SQL Server engine to return error 18456 with state 1 for any non-Entra ID connection attempt, even before the database context is established. In a real-world scenario, this prevents developers from accidentally using SQL authentication in connection strings, as the server will outright deny those connections regardless of firewall rules or contained user configurations.

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: Enable 'Azure AD-only authentication' on the logical server. — Option D is correct because enabling 'Azure AD-only authentication' on the logical server explicitly blocks all SQL authentication connections, including those from contained database users. This setting enforces that only Microsoft Entra ID (formerly Azure AD) principals can authenticate, directly aligning with the policy to prevent accidental use of SQL authentication.

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

Keep practising

More DP-300 practice questions

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.