DP-300 Configure and manage automation of tasks Practice Question
A company uses Azure SQL Database and wants to automatically send an email notification when an index fragmentation exceeds 30% for any database. Which solution should they implement?
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
✓
Use Azure Automation runbook to query sys.dm_db_index_physical_stats and send email
Azure Automation runbooks can query fragmentation and send emails via SendGrid. Elastic Database Jobs can check fragmentation but cannot send emails directly. Azure Monitor alerts can trigger on metrics like DTU but not on index fragmentation. Azure Logic Apps can receive data but require custom setup.
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 Monitor alert based on fragmentation
Why it's wrong here
Azure Monitor cannot directly measure index fragmentation.
- ✗
Use Elastic Database Jobs to check fragmentation and send email
Why it's wrong here
Elastic jobs execute T-SQL but cannot send emails natively.
- ✗
Configure SQL Agent job to send email
Why it's wrong here
SQL Agent is not available in Azure SQL Database.
- ✓
Use Azure Automation runbook to query sys.dm_db_index_physical_stats and send email
Why this is correct
PowerShell runbooks can query the DMV and use SendGrid to send email notifications.
Go deeper
Related to this question
Learn chapter
Overview of Azure Data Platform Options
Key term
Azure SQL Performance Tuning
Azure SQL Performance Tuning is the process of optimizing the speed and efficiency of queries and database operations in Microsoft Azure SQL Database or SQL Managed Instance to reduce latency and improve throughput.
About these practice questions
One of 906 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.