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
While possible, Automation runbooks are not the standard for infrastructure provisioning in CI/CD; ARM templates are preferred.
- ✓
Create an ARM template that defines the database and deploy it from your CI/CD pipeline.
Why this is correct
ARM templates are the recommended way to provision Azure resources declaratively and can be deployed via Azure DevOps.
- ✗
Set up an Elastic Database Job that runs a CREATE DATABASE statement.
Why it's wrong here
Elastic Database Jobs run T-SQL scripts, but they are used for maintenance tasks, not for provisioning new databases in a CI/CD context.
- ✗
Configure a SQL Server Agent job on the logical server to run a CREATE DATABASE statement.
Why it's wrong here
SQL Server Agent is not available in Azure SQL Database (only in Managed Instance).
Go deeper
Related to this question
Learn chapter
Overview of Azure Data Platform Options
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.