Courseiva
Plan and implement data platform resourcesmediumMultiple ChoiceObjective-mapped

DP-300 Plan and implement data platform resources Practice Question

Your company is migrating an on-premises SQL Server database to Azure SQL Managed Instance. The database uses a SQL Server Agent job that runs a PowerShell script to process files. You need to ensure the job continues to run after migration with minimal changes. What should you do?

⚠ Common exam trap

Many candidates assume Azure SQL Database is a suitable target because it is the most common PaaS offering, but they overlook that SQL Managed Instance is required to retain SQL Server Agent and PowerShell job step support, which Azure SQL Database lacks entirely.

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

Migrate the database to Azure SQL Managed Instance and recreate the job using SQL Server Agent.

Azure SQL Managed Instance supports SQL Server Agent, including jobs that run PowerShell scripts via CmdExec or PowerShell job steps. By migrating the database and recreating the job with the same script, you preserve the existing automation with minimal changes. This is the only option that keeps the job execution environment identical to the on-premises 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.

  • Migrate the database to Azure SQL Managed Instance and recreate the job using SQL Server Agent.

    Why this is correct

    Azure SQL Managed Instance supports SQL Server Agent, so the job can run with minimal changes.

  • Migrate the database to Azure SQL Managed Instance and configure an Azure Automation runbook to run the script.

    Why it's wrong here

    Azure Automation is external and does not directly integrate with SQL Server Agent.

  • Migrate the database to Azure SQL Managed Instance and use Elastic Jobs to run the PowerShell script.

    Why it's wrong here

    Elastic Jobs are for Azure SQL Database, not SQL Managed Instance; SQL Agent is the native solution.

  • Migrate the database to Azure SQL Database and use Elastic Jobs to run the PowerShell script.

    Why it's wrong here

    Azure SQL Database does not support SQL Server Agent; Elastic Jobs require significant rework.

About these practice questions

Courseiva writes every DP-300 question from scratch — 906 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.