DP-300 Practice Question: Monitor, configure, and optimize database resources
You manage an Azure SQL Managed Instance with a large database. You notice that the automatic tuning recommendations are not being applied. You need to ensure that automatic tuning is enabled for the instance. Which PowerShell cmdlet should you run?
⚠ Common exam trap
A common mix-up: candidates confuse Azure SQL Database cmdlets (Set-AzSqlDatabase) with Azure SQL Managed Instance cmdlets (Set-AzSqlInstanceDatabase), leading them to select the wrong cmdlet for the managed instance context.
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
✓
Set-AzSqlInstanceDatabase with -AutoTuningProperties
The correct cmdlet is Set-AzSqlInstanceDatabase because Azure SQL Managed Instance uses instance-level databases, and automatic tuning properties are configured at the database level within the instance. The -AutoTuningProperties parameter directly enables or configures automatic tuning recommendations for the specified database in the managed instance.
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-AzSqlInstanceDatabase with -AutoTuningProperties
Why this is correct
This is the correct cmdlet and parameter to enable auto-tuning on a Managed Instance database.
- ✗
Set-AzSqlDatabase with -AutoTuningProperties
Why it's wrong here
Set-AzSqlDatabase is for Azure SQL Database, not Managed Instance.
- ✗
Set-AzSqlInstance with -DtcEnabled
Why it's wrong here
-DtcEnabled enables distributed transactions, not auto-tuning.
- ✗
Set-AzSqlServer with -AdministratorLogin
Why it's wrong here
This sets server admin, not auto-tuning.
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
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.