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
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
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
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 →
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.