Plan and configure a high availability and disaster recovery environment →easyMultiple ChoiceObjective-mapped
DP-300 Practice Question: Plan and configure a high availability and disaster recovery environment
You have an Azure SQL Managed Instance that is the primary in a failover group. You need to perform a manual failover for planned maintenance with zero data loss. Which PowerShell cmdlet 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
✓
Switch-AzSqlDatabaseFailoverGroup -AllowDataLoss:$false
Switch-AzSqlDatabaseFailoverGroup with -AllowDataLoss:$false performs a manual failover with zero data loss for planned maintenance. Option A is wrong because Set-AzSqlDatabaseFailoverGroup modifies configuration, not failover. Option C is wrong because Start-AzSqlDatabaseFailoverGroup does not exist. Option D is wrong because Invoke-AzSqlDatabaseFailoverGroup does not exist.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set-AzSqlDatabaseFailoverGroup
Why it's wrong here
This cmdlet modifies failover group properties, not initiates failover.
- ✓
Switch-AzSqlDatabaseFailoverGroup -AllowDataLoss:$false
Why this is correct
This performs a planned failover with zero data loss.
- ✗
Start-AzSqlDatabaseFailoverGroup
Why it's wrong here
Cmdlet name is incorrect.
- ✗
Invoke-AzSqlDatabaseFailoverGroup
Why it's wrong here
Cmdlet name is incorrect; the correct cmdlet is Switch-AzSqlDatabaseFailoverGroup.
Go deeper
Related to this question
Learn chapter
Overview of Azure Data Platform Options
Key term
Azure SQL Managed Instance
Azure SQL Managed Instance is a fully managed cloud database service that gives you nearly all the features of Microsoft SQL Server on your own server, without you having to manage the hardware or operating system.
About these practice questions
One of 906 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.