DP-300 Elastic Database Jobs (Elastic Jobs) Practice Question
Your company uses Azure SQL Managed Instance and wants to automate the creation of new databases for each development sprint. Each database must be a copy of a template database with specific schema and data. You need to recommend an automation solution that minimizes manual steps and integrates with your CI/CD pipeline. What 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
✓
Create an Elastic Database Job that runs CREATE DATABASE AS COPY OF...
For Azure SQL Managed Instance, automating database creation with CI/CD integration can be achieved using Elastic Database Jobs (now Elastic Jobs). These jobs can run T-SQL commands such as 'CREATE DATABASE AS COPY OF' to create copies of a template database. Elastic Jobs can be triggered programmatically via REST API or Azure DevOps tasks, enabling seamless integration into a CI/CD pipeline. Option A (Logic App) does not support database copy operations. Option B (portal feature) requires manual steps. Option D uses PowerShell cmdlets ('az sql db copy' or 'Restore-AzSqlDatabase') that are specific to Azure SQL Database, not Managed Instance; the correct cmdlets for Managed Instance would be 'Restore-AzSqlInstanceDatabase' or T-SQL commands. Therefore, option C is the most appropriate recommendation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Deploy an Azure Logic App with a SQL connector that triggers on a schedule.
Why it's wrong here
Azure Logic App with SQL connector cannot perform database copy operations; it is limited to simple queries and triggers, not DDL like CREATE DATABASE AS COPY OF.
- ✗
Use the Azure portal's 'Create database from backup' feature.
Why it's wrong here
The Azure portal's 'Create database from backup' feature is a manual process and does not integrate with CI/CD pipelines.
- ✓
Create an Elastic Database Job that runs CREATE DATABASE AS COPY OF...
Why this is correct
Elastic Database Jobs (Elastic Jobs) support Managed Instance and can execute 'CREATE DATABASE AS COPY OF' on a schedule or trigger, allowing automation with CI/CD by invoking the job via REST API or Azure DevOps tasks.
- ✗
Use an Azure DevOps pipeline with a PowerShell task that runs the 'az sql db copy' command or the Restore-AzSqlDatabase cmdlet.
Why it's wrong here
While an Azure DevOps pipeline with PowerShell is a good concept, the cmdlets mentioned ('az sql db copy' and 'Restore-AzSqlDatabase') are for Azure SQL Database, not Azure SQL Managed Instance. For Managed Instance, use 'Restore-AzSqlInstanceDatabase' or T-SQL commands. Therefore, this option is incorrect as written.
Go deeper
Related to this question
Learn chapter
Overview of Azure Data Platform Options
Key term
Azure SQL Managed Instance
Azure SQL Managed Instance is a fully managed cloud database service that gives you nearly all the features of Microsoft SQL Server on your own server, without you having to manage the hardware or operating system.
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
This DP-300 question is part of Courseiva's 906-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 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.