Courseiva

DP-300 Implement a secure environment Practice Question

Your organization uses Azure SQL Database and wants to automatically detect and alert on potential SQL injection attacks. Which Azure service should you enable?

⚠ Common exam trap

Candidates often confuse Vulnerability Assessment (which finds weaknesses) or Auditing (which logs events) with the active threat detection capability of Defender for SQL, not realizing that only Defender for SQL provides automatic, real-time SQL injection detection and alerting without additional configuration.

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

✓

Microsoft Defender for SQL

Microsoft Defender for SQL (option C) is the correct answer because it provides advanced SQL security capabilities, including a dedicated SQL injection detection engine that analyzes database activity patterns and alerts on suspicious queries. Unlike other options, Defender for SQL specifically monitors for SQL injection attempts by evaluating query anomalies and known attack signatures, making it the appropriate service for automatic detection and alerting.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Azure SQL Database Vulnerability Assessment

    Why it's wrong here

    Vulnerability Assessment scans for misconfigurations and missing patches; it does not detect SQL injection attempts at runtime. It is tempting because it is a security feature on the same database, but the scenario requires threat detection and alerting, which Microsoft Defender for Azure SQL provides.

  • ✗

    Azure SQL Auditing

    Why it's wrong here

    Auditing records activity to storage for later review; it does not analyse query patterns or raise alerts, so injection attempts go unnoticed until someone reads logs. It is tempting because auditing underpins forensic investigation and compliance evidence, and would be the right choice when the requirement is a tamper-evident trail of database events.

  • ✓

    Microsoft Defender for SQL

    Why this is correct

    Microsoft Defender for SQL provides Advanced Threat Protection, continuously analysing query patterns and audit logs to flag anomalous behaviour indicative of SQL injection. It satisfies the requirement for automatic detection and alerting without manual monitoring, raising alerts through Microsoft Defender for Cloud and integrating with Microsoft Entra ID for investigation.

  • ✗

    Microsoft Sentinel

    Why it's wrong here

    Microsoft Sentinel is a cloud SIEM ingesting logs from many sources; it cannot itself inspect Azure SQL traffic for injection patterns, so it only alerts after another service detects and forwards the event. It is tempting as the central alerting platform, and would be correct when correlating detections across the estate.

Go deeper

Related to this question

About these practice questions

This DP-300 question is part of Courseiva's 574-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.