Courseiva
Configure and manage automation of taskseasyMultiple ChoiceObjective-mapped

DP-300 Configure and manage automation of tasks Practice Question

You have an Azure SQL Database that must be automatically stopped during weekends to save costs. Which combination of Azure services can achieve this automation?

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

Azure Automation Runbook with PowerShell script using Suspend-AzSqlDatabase cmdlet, scheduled via Automation schedule.

Azure Automation Runbooks with the Suspend-AzSqlDatabase cmdlet provide a native, straightforward way to stop an Azure SQL Database on a schedule. Option B is incorrect because Azure Logic Apps with the SQL connector cannot execute ALTER DATABASE SET SUSPEND; suspension is not a T-SQL operation for Azure SQL Database. Option C is incorrect because Azure Functions can achieve this but require more custom code and setup compared to the simpler Automation Runbook approach. Option D is incorrect because Elastic Database Jobs are designed for executing T-SQL scripts across multiple databases, not for stopping or starting databases.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Azure Automation Runbook with PowerShell script using Suspend-AzSqlDatabase cmdlet, scheduled via Automation schedule.

    Why this is correct

    Azure Automation Runbooks with the Stop-AzSqlDatabase cmdlet provide a native, straightforward way to stop an Azure SQL Database on a schedule.

  • Azure Logic Apps with a recurrence trigger and the SQL connector to execute ALTER DATABASE SET SUSPEND.

    Why it's wrong here

    Azure Logic Apps with the SQL connector cannot execute ALTER DATABASE SET SUSPEND; suspension is not a T-SQL operation for Azure SQL Database.

  • Azure Functions with a timer trigger and the Azure SDK to stop the database.

    Why it's wrong here

    Azure Functions with a timer trigger and the Azure SDK is a robust solution for scheduled automation across Azure services. However, Azure SQL Database (PaaS) instances do not expose a "stop" or "deallocate" operation; they are always running, with cost optimisation typically achieved by scaling down or utilising serverless auto-pause. This option would be the correct choice for services that *do* support a stop/deallocate action, such as Azure Virtual Machines or Azure SQL Managed Instances, where a scheduled deallocation directly saves costs.

  • Elastic Database Jobs with a T-SQL script to ALTER DATABASE SET SUSPEND.

    Why it's wrong here

    Elastic Database Jobs are designed for executing T-SQL scripts across multiple databases, not for stopping or starting databases.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

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.