Courseiva
Question 651 of 919
Configure and manage automation of tasksmediumMultiple ChoiceObjective-mapped

DP-300 Configure and manage automation of tasks Practice Question

You have an Azure SQL Database that uses SQL Server Agent for automation tasks. You migrated the database to Azure SQL Managed Instance. After migration, some SQL Server Agent jobs fail because they reference a linked server that no longer exists. You need to automate the removal of all linked server references from the jobs. What should you do?

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 T-SQL script that updates the job steps to remove linked server references, and execute it via Azure Automation runbook.

You can create a T-SQL script that updates the job steps to remove linked server references and execute it via Azure Automation runbook. This allows automated execution against the SQL Managed Instance. Option A is incorrect because elastic jobs are used for scheduling tasks across multiple databases, not for modifying SQL Agent jobs directly. Option C is incorrect because Azure CLI does not have native commands to manage SQL Agent jobs. Option D is incorrect because while Azure Automation can run PowerShell scripts, the T-SQL script approach is more direct and reliable for modifying job steps.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use elastic jobs to remove the linked server references.

    Why it's wrong here

    Elastic jobs cannot modify SQL Agent jobs on Managed Instance.

  • Create a T-SQL script that updates the job steps to remove linked server references, and execute it via Azure Automation runbook.

    Why this is correct

    A T-SQL script can modify SQL Agent jobs, and Azure Automation can execute it.

  • Use Azure CLI to remove the linked server references.

    Why it's wrong here

    Azure CLI does not have commands to modify SQL Agent jobs.

  • Use Azure Automation to run a PowerShell script that removes the linked server references.

    Why it's wrong here

    PowerShell cannot directly modify SQL Agent jobs; you need to use T-SQL within the script.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 21, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.