Courseiva
Configure and manage automation of tasksmediumMultiple ChoiceObjective-mapped

DP-300 Configure and manage automation of tasks Practice Question

You manage an Azure SQL Database that supports a critical financial application. The database is in the General Purpose tier and uses active geo-replication for disaster recovery. You need to automate the process of failing over to the secondary region in case of a regional outage, but only after confirming that the primary is unreachable for more than 5 minutes. Additionally, you need to send an alert to the operations team when the failover occurs. The solution should use Azure services and minimize manual steps. What should you implement?

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

Use Azure Logic Apps with a timer trigger to check the database status every minute and initiate failover if unreachable.

Azure Logic Apps can automate the failover process by periodically checking the primary database's connectivity. If it remains unreachable for more than 5 minutes, it can initiate a geo-replication failover and send alerts to the operations team. This meets all requirements using Azure services with minimal manual steps. Option B is incorrect because SQL Agent is not available in Azure SQL Database as a PaaS service. Option C is incorrect because Azure Site Recovery is designed for virtual machines, not for Azure SQL Database geo-replication. Option D is incorrect because the 'Deadlock count' metric is unrelated to database connectivity; it measures deadlocks, not reachability, and the described threshold does not correctly detect unreachability.

Answer analysis

Option-by-option breakdown

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

  • Use Azure Logic Apps with a timer trigger to check the database status every minute and initiate failover if unreachable.

    Why this is correct

    Correct. Logic Apps can be configured with a timer trigger to periodically check the primary database's connectivity. If unreachable for more than 5 minutes (e.g., after 5 consecutive failed checks), it can trigger a failover and send alerts. This uses Azure-native services and minimizes manual steps.

  • Schedule a SQL Agent job on the secondary to run a script that checks connectivity and fails over.

    Why it's wrong here

    Incorrect. SQL Agent is not available in Azure SQL Database (PaaS). Additionally, a job on the secondary would require the secondary to be active, which may not be the case, and managing scripts on the secondary is not recommended for automated failover.

  • Configure Azure Site Recovery for the SQL database.

    Why it's wrong here

    Incorrect. Azure Site Recovery is designed for virtual machines and on-premises servers. It does not support Azure SQL Database's geo-replication failover.

  • Configure an Azure Monitor metric alert on the 'Deadlock count' metric (or custom metric) with a threshold of 0 for 5 minutes, then use an action group to trigger an Azure Automation runbook that runs the failover PowerShell cmdlet.

    Why it's wrong here

    Incorrect. The metric 'Deadlock count' is unrelated to database connectivity. It measures deadlocks, not reachability. Even if a custom metric is used, the option as stated is misleading. Additionally, the described metric with a threshold of 0 for 5 minutes does not correctly detect unreachability.

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.