DP-300 Configure and manage automation of tasks Practice Question
You need to automate the creation of a new Azure SQL Database whenever a new customer signs up. The solution should use infrastructure as code and integrate with your CI/CD pipeline. What should you use?
⚠ Common exam trap
A common mix-up: candidates confuse operational automation (e.g., runbooks, SQL Agent jobs) with infrastructure-as-code provisioning, mistakenly choosing a scripting or T-SQL approach instead of the declarative ARM template method that natively integrates with CI/CD pipelines.
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 ARM template that defines the database and deploy it from your CI/CD pipeline.
B is correct because ARM (Azure Resource Manager) templates are the recommended infrastructure-as-code approach for defining and deploying Azure SQL Databases in a repeatable, declarative manner. Integrating ARM template deployment into a CI/CD pipeline ensures consistent, version-controlled database creation as part of automated workflows, aligning with DevOps best practices.
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 Azure Automation runbook that calls New-AzureRmSqlDatabase and trigger it from your CI/CD pipeline.
Why it's wrong here
An Azure Automation runbook calling New-AzureRmSqlDatabase is imperative scripting, not infrastructure as code, and the deprecated cmdlet targets the old AzureRM module. It tempts because Automation runbooks do orchestrate scheduled operational tasks, which is their real purpose.
- ✓
Create an ARM template that defines the database and deploy it from your CI/CD pipeline.
Why this is correct
An ARM template declares the Azure SQL Database resource in JSON, so the CI/CD pipeline can deploy it repeatably per customer signup. This satisfies the infrastructure-as-code requirement, unlike portal or manual scripting approaches that lack declarative version control.
- ✗
Set up an Elastic Database Job that runs a CREATE DATABASE statement.
Why it's wrong here
Elastic Database Jobs execute T-SQL against existing databases on a schedule or on demand; they cannot declare a new database as infrastructure as code or integrate with CI/CD pipelines. They are tempting because they genuinely automate cross-database T-SQL tasks across a pool.
- ✗
Configure a SQL Server Agent job on the logical server to run a CREATE DATABASE statement.
Why it's wrong here
SQL Server Agent jobs run T-SQL inside an existing database and cannot provision Azure SQL Database resources or participate in a CI/CD pipeline. They are tempting because Agent jobs genuinely automate recurring administrative T-SQL work on a logical server.
Go deeper
Related to this question
Learn chapter
Deploying and Configuring SQL Server on Azure Virtual Machines
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 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 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.