DP-300 Configure and manage automation of tasks Practice Question
You need to automate the deployment of an Azure SQL Database along with its firewall rules and performance tier using infrastructure as code. Which technology 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
✓
Bicep templates
Bicep is a domain-specific language for deploying Azure resources declaratively. It is the recommended infrastructure as code tool for Azure. Option A is correct because Bicep templates allow you to define Azure SQL Database, firewall rules, and performance tier in a declarative manner. Option B (SSDT) is used for database schema management, not resource deployment. Option C (T-SQL scripts) are for database queries and management, not infrastructure. Option D (PowerShell scripts) can automate tasks but are procedural, not declarative IaC like Bicep.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Bicep templates
Why this is correct
Bicep is a declarative infrastructure-as-code language that defines the Azure SQL Database, its firewall rules and performance tier in a single template, then deploys them repeatably. This satisfies the requirement to automate deployment of all three resources together.
- ✗
SQL Server Data Tools (SSDT) database projects
Why it's wrong here
SSDT database projects deploy schema objects to an existing database; they cannot provision the Azure SQL server, firewall rules or performance tier, which are ARM-level resources. It is tempting because SSDT genuinely handles declarative schema deployment and would suit migrating stored procedures or tables into an already-created database.
- ✗
T-SQL scripts
Why it's wrong here
T-SQL scripts execute inside a database engine, so they cannot provision an Azure SQL logical server, firewall rules or performance tier — those are ARM control-plane resources. T-SQL is tempting because it handles in-database objects such as tables, indexes and logins, which is the right choice once the server already exists.
- ✗
PowerShell scripts
Why it's wrong here
PowerShell scripts issue imperative commands, so reruns don't reconcile drift or guarantee idempotent state; they also lack declarative templates for firewall rules and tier. They suit one-off provisioning or runbooks, but the scenario demands declarative infrastructure as code, which ARM templates or Bicep provide.
Go deeper
Related to this question
Learn chapter
Configuring Automation Tasks for Database Administration
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
One of 574 original DP-300 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.