DP-300 Configure and manage automation of tasks Practice Question
You need to automate the execution of a T-SQL script against all user databases in an Azure SQL Database elastic pool. The script should run on a schedule and results should be logged to a table. Which feature should you use?
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
✓
Elastic Database Jobs
Elastic Database Jobs are designed for executing T-SQL across many databases in a pool. SQL Agent is not available in Azure SQL Database. Azure Automation runbooks can run T-SQL but require more setup. Azure Data Factory is for data movement, not T-SQL execution.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
SQL Agent jobs
Why it's wrong here
SQL Agent is unavailable in Azure SQL Database, so no job can be created there; it exists only in SQL Server and Managed Instance. It is tempting because Agent jobs natively schedule T-SQL across databases, and would be correct on a Managed Instance or on-premises SQL Server.
- ✗
Azure Data Factory
Why it's wrong here
Azure Data Factory orchestrates pipelines and can run stored procedures, but it cannot natively iterate every user database in an elastic pool and log per-database results to a table. It suits scheduled cross-service data movement and transformation, not in-database T-SQL fan-out, which Elastic Database Jobs provide.
- ✗
Azure Automation with PowerShell runbooks
Why it's wrong here
Azure Automation runbooks execute outside the database engine, so they cannot natively loop over every user database in an elastic pool and log results within T-SQL. Automation is tempting for cross-service orchestration, and would be correct if the task also managed Azure resources rather than pure T-SQL scheduling.
- ✓
Elastic Database Jobs
Why this is correct
Elastic Database Jobs run T-SQL across every database in a pool from a job agent, using a target group rather than per-database connections. This satisfies the scheduled, pool-wide execution requirement, and job step output can be written to a logging table.
Go deeper
Related to this question
Learn chapter
Implementing High Availability for Azure SQL Databases
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 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.