DP-300 Configure and manage automation of tasks Practice Question
Your company uses Azure SQL Managed Instance. You need to automate the execution of a stored procedure that processes sales data every night at 2 AM. The solution must use native capabilities and minimize latency. What should you do?
⚠ Common exam trap
The trap is assuming that because Elastic Jobs and Azure Functions are newer, they are always preferred; the exam tests recognition that SQL Agent is native and lowest-latency for MI.
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 a SQL Agent job with a schedule to execute the stored procedure.
SQL Agent is a native component of Azure SQL Managed Instance and supports scheduled job execution with T-SQL steps, making it the correct choice for running a stored procedure nightly at 2 AM. It minimizes latency because the job runs directly on the instance without external orchestration or network hops.
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 Elastic Database Job to run the stored procedure on the target database.
Why it's wrong here
Elastic Database Jobs require additional setup and are not native to managed instance.
- ✗
Use Azure Logic Apps with a recurrence trigger to call the stored procedure via a connector.
Why it's wrong here
Logic Apps runs outside the SQL engine, adding connector and orchestration latency, and it is not a native database scheduling capability. Logic Apps suits cross-service workflows and cloud connectors, not a nightly in-engine job on Azure SQL Managed Instance.
- ✓
Create a SQL Agent job with a schedule to execute the stored procedure.
Why this is correct
SQL Agent is built into Azure SQL Managed Instance and runs T-SQL jobs on a schedule, so a nightly job at 2 AM executes the stored procedure natively with no external orchestrator or added latency.
- ✗
Deploy an Azure Function with a timer trigger to invoke the stored procedure via the SQL binding.
Why it's wrong here
An Azure Function with a timer trigger executes outside the database engine, adding network and cold-start latency, and it is not a native SQL scheduling feature. Functions suit event-driven or serverless processing, not a fixed nightly job inside Azure SQL Managed Instance.
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 →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Microsoft exam blueprint
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.