Courseiva
Configure and manage automation of taskseasyMultiple ChoiceObjective-mapped

DP-300 Configure and manage automation of tasks Practice Question

You need to automate the execution of a T-SQL script against an Azure SQL Database every hour. Which Azure service 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

Azure Automation

Azure Automation with a runbook can run PowerShell or Python scripts that execute T-SQL against Azure SQL Database on a schedule. Option A is wrong because Azure Data Factory is focused on data movement and transformation, not direct T-SQL execution. Option B is wrong because Elastic Database Jobs require a job agent and are designed for management tasks across multiple databases, not simple hourly script execution. Option C is wrong because Azure Logic Apps is geared towards integration workflows, and while it can execute SQL, it is less efficient than Azure Automation for this straightforward scheduling task.

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 Data Factory

    Why it's wrong here

    Azure Data Factory is for data integration, not simple script execution.

  • Elastic Database Jobs

    Why it's wrong here

    Elastic jobs are designed for multiple databases and require additional setup.

  • Azure Logic Apps

    Why it's wrong here

    Azure Logic Apps are unsuitable here because, while they offer scheduled triggers and can connect to Azure SQL Database, they are primarily designed for orchestrating workflows and integrating multiple services, not for natively scheduling and executing a T-SQL script directly within the database context. They are tempting as they provide robust serverless automation and integration capabilities. Logic Apps would be the correct choice if the scenario involved complex multi-service workflows, such as processing data from the script and then updating another system or sending notifications.

  • Azure Automation

    Why this is correct

    Azure Automation with a runbook can schedule and execute T-SQL scripts.

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 →

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.