Courseiva
Configure and manage automation of taskseasyMultiple ChoiceObjective-mapped

DP-300 Configure and manage automation of tasks Practice Question

You need to automate the creation of an Azure SQL Database and a corresponding server-level firewall rule to allow access from a specific IP address. The deployment must be repeatable and version-controlled. 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 ARM template that defines both the server firewall rule and the database.

ARM templates provide a declarative, Infrastructure-as-Code approach that is repeatable and can be version-controlled. Option B is wrong because while PowerShell can automate, it is procedural and not as easily version-controlled or idempotent as ARM templates. Option C is wrong because the Azure portal is manual and not repeatable. Option D is wrong because SSMS scripting is also manual and not suitable for automated deployment.

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 ARM template that defines both the server firewall rule and the database.

    Why this is correct

    ARM templates are ideal for repeatable deployments and version control.

  • Write a PowerShell script that uses New-AzSqlDatabase and New-AzSqlServerFirewallRule.

    Why it's wrong here

    PowerShell is procedural; ARM templates are preferred for infrastructure as code.

  • Use the Azure portal to create the database and firewall rule.

    Why it's wrong here

    Portal is manual and not repeatable.

  • Use SQL Server Management Studio to script the creation.

    Why it's wrong here

    SSMS scripting is manual and not easily version-controlled.

About these practice questions

Courseiva writes every DP-300 question from scratch — 906 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.