DP-300 Implement a secure environment Practice Question
Your company has a strict policy that all Azure SQL Databases must have Microsoft Defender for SQL enabled. You need to enforce this policy across all subscriptions using a scalable, automated approach. What should you do?
⚠ Common exam trap
Watch out — candidates often confuse Azure Blueprints (which are for initial deployment and governance) with Azure Policy (which provides continuous enforcement and remediation), leading them to choose Option B instead of A.
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 an Azure Policy initiative that includes the 'Configure Microsoft Defender for SQL to be enabled' policy and assign it to the root management group.
Azure Policy provides a scalable, automated, and continuous enforcement mechanism across all subscriptions. By creating an initiative that includes the 'Configure Microsoft Defender for SQL to be enabled' policy and assigning it to the root management group, you ensure that any new or existing subscription inherits the policy, and non-compliant resources are automatically remediated or flagged. This approach aligns with the requirement for a strict, company-wide policy without manual intervention.
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 an Azure Policy initiative that includes the 'Configure Microsoft Defender for SQL to be enabled' policy and assign it to the root management group.
Why this is correct
An Azure Policy initiative bundles the 'Configure Microsoft Defender for SQL to be enabled' policy and, assigned at the root management group, inherits to every subscription, giving scalable automated enforcement. This satisfies the requirement to apply the policy across all subscriptions without manual per-subscription configuration.
- ✗
Use Azure Blueprints to deploy a predefined ARM template that enables Defender for SQL.
Why it's wrong here
Azure Blueprints is being retired and assigns artefacts at definition time, so it cannot continuously enforce Defender for SQL on newly created databases across subscriptions. It is tempting as a governance packaging tool, but Azure Policy with a DeployIfNotExists effect provides the ongoing compliance enforcement required.
- ✗
Create a script that runs periodically to check and enable Defender for SQL on all databases.
Why it's wrong here
A periodic script only detects and remediates drift after the fact, leaving gaps between runs, so it cannot guarantee continuous enforcement. It is tempting because scripting is familiar and automatable, but Azure Policy's DeployIfNotExists effect enforces Defender for SQL at resource creation and remediates non-compliant databases.
- ✗
Assign the 'SQL Security Manager' role to a central team to manually enable Defender for SQL.
Why it's wrong here
Manual role assignment relies on human action, so it cannot scale across all subscriptions or guarantee every database is covered. It is tempting because RBAC delegation is a recognised governance pattern, but the requirement demands automated enforcement, which Azure Policy with a DeployIfNotExists effect supplies.
Go deeper
Related to this question
About these practice questions
One of 574 original DP-300 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.