Question 24 of 953
Implement a secure environmentmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to set the 'Azure AD-only authentication' property to Enabled for the logical server. This works because the property acts as a server-level toggle that explicitly blocks all SQL authentication attempts, overriding any existing SQL logins or contained database users and forcing every connection to authenticate via Microsoft Entra ID only. On the DP-300 exam, this scenario tests your understanding of how to disable SQL authentication at the server level rather than manually removing logins, which is a common trap—candidates often think they need to delete SQL users, but the property handles it centrally. A key memory tip is to think of this as a "master switch" for Entra ID only: once flipped on, SQL credentials are ignored, ensuring compliance without cleanup.

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.

Your company uses Azure SQL Database with Azure Active Directory (now Microsoft Entra ID) authentication. A new security policy requires that all database users must be authenticated via Microsoft Entra ID only. You need to disable SQL authentication for an Azure SQL Database logical server. What should you do?

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

Set the 'Azure AD-only authentication' property to Enabled for the logical server.

Option C is correct because enabling the 'Azure AD-only authentication' property at the logical server level explicitly blocks all SQL authentication attempts, forcing every database user to authenticate via Microsoft Entra ID. This property is a server-level toggle that overrides any existing SQL logins or contained database users, ensuring compliance with the policy without needing to manually remove logins.

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.

  • Remove the Azure AD administrator for the server.

    Why it's wrong here

    Removing the Azure AD administrator does not disable SQL authentication.

  • Remove all SQL logins from the master database.

    Why it's wrong here

    Removing logins does not disable the ability to create new SQL logins.

  • Set the 'Azure AD-only authentication' property to Enabled for the logical server.

    Why this is correct

    This is the correct server-level setting to disable SQL authentication.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Set the 'Azure AD-only authentication' property to Enabled for each database.

    Why it's wrong here

    This property is server-level, not per database.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates mistakenly think disabling SQL authentication requires manually removing SQL logins or that the setting can be applied per database, when in fact the 'Azure AD-only authentication' property is a server-level toggle that automatically blocks all SQL authentication attempts without needing to delete any logins.

Detailed technical explanation

How to think about this question

The 'Azure AD-only authentication' property is enforced at the server level via the `AzureADOnlyAuthentication` flag in the server's properties, which can be set using the Azure portal, Azure CLI, or PowerShell. When enabled, the server rejects any connection attempt that uses SQL authentication (including sysadmin logins) at the TDS protocol handshake layer, before any database-level checks occur. This ensures that even if a SQL login exists, it cannot be used to connect, providing a hard block rather than a soft removal.

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 the 'Azure AD-only authentication' property to Enabled for the logical server. — Option C is correct because enabling the 'Azure AD-only authentication' property at the logical server level explicitly blocks all SQL authentication attempts, forcing every database user to authenticate via Microsoft Entra ID. This property is a server-level toggle that overrides any existing SQL logins or contained database users, ensuring compliance with the policy without needing to manually remove logins.

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.