exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 3 question 37 discussion

Actual exam question from Microsoft's DP-300
Question #: 37
Topic #: 3
[All DP-300 Questions]

You have an Azure SQL managed instance named MI1.

You need to implement automatic tuning for the databases of MI1.

What should you do?

  • A. Use The REST API to call the patch operation and modify the AutomaticTuningServerMode property.
  • B. From the Azure portal, configure automatic tuning.
  • C. Use Transact-SQL to enable the FORCE_LAST_GOOD_PLAN option.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
KingChuang
Highly Voted 1 year, 8 months ago
Selected Answer: B
You can enable auto tuning by Azure Portal and T-SQL. To enable automatic tuning on a single database via T-SQL, connect to the database and execute the following query: ALTER DATABASE current SET AUTOMATIC_TUNING = AUTO | INHERIT | CUSTOM So, option C is wrong.Answer is B:Azure Portal configuration auto tuning. Ref: https://learn.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-enable?view=azuresql#t-sql
upvoted 6 times
KingChuang
1 year, 8 months ago
Correct the answer to C For Azure SQL Managed Instance, the supported option FORCE_LAST_GOOD_PLAN can only be configured through T-SQL. The Azure portal based configuration and automatic index tuning options described in this article do not apply to Azure SQL Managed Instance. Ref: https://learn.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-enable?view=azuresql
upvoted 5 times
...
...
voodoo_sh
Most Recent 3 months, 2 weeks ago
Selected Answer: C
Checking the Azure portal settings for SQL MI and its databases, I did not find a section for automatic tuning (like Azure SQL DB has). Hence, answer is C: Use the T-SQL
upvoted 1 times
...
sca88
6 months, 1 week ago
Selected Answer: C
For Azure SQL Managed Instance, the supported option FORCE_LAST_GOOD_PLAN can only be configured through T-SQL. The Azure portal based configuration and automatic index tuning options described in this article do not apply to Azure SQL Managed Instance. https://learn.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-enable?view=azuresql-mi
upvoted 1 times
...
bsk1983
1 year, 1 month ago
Selected Answer: C
C is the correct answer, force_last_good_plan for SQL managed instance. For Azure SQL Managed Instance, the supported option FORCE_LAST_GOOD_PLAN can only be configured through T-SQL. The Azure portal based configuration and automatic index tuning options described in this article do not apply to Azure SQL Managed Instance. https://learn.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-enable?view=azuresql#enable-automatic-tuning-on-an-individual-database
upvoted 4 times
...
testdumps2017
1 year, 1 month ago
https://learn.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-overview?view=azuresql "Enable automatic tuning Azure SQL Database: Enable automatic tuning in the Azure portal or by using the ALTER DATABASE T-SQL statement. Azure SQL Managed Instance: Enable automatic tuning by using the ALTER DATABASE T-SQL statement." So FORCE_LAST_GOOD_PLAN is the correct answer, as it is provided by MS itself.
upvoted 3 times
...
Hgreg
1 year, 2 months ago
Selected Answer: C
https://learn.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-overview?view=azuresql#enable-automatic-tuning - This states that enabling via portal is only available for Azure DB not MI
upvoted 2 times
...
geggio
1 year, 4 months ago
https://learn.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-enable?view=azuresql For Azure SQL Managed Instance, the supported option FORCE_LAST_GOOD_PLAN can only be configured through T-SQL. The Azure portal based configuration and automatic index tuning options described in this article do not apply to Azure SQL Managed Instance.
upvoted 1 times
...
kev22
1 year, 6 months ago
Selected Answer: B
C is missing the create_index and drop_index options, so answer is B, use the Azure Portal to enable AT although it could be done using T-SQL as well.
upvoted 2 times
...
U_C
1 year, 6 months ago
The correct answer is B To implement automatic tuning for the databases of an Azure SQL managed instance, you can configure automatic tuning from the Azure portal. In the Azure portal, navigate to your managed instance and select “Automatic tuning” from the menu. From there, you can enable or disable automatic tuning options such as “Force plan” and “Create index”. Therefore, the correct answer is B. From the Azure portal, configure automatic tuning. Option C is also incorrect because enabling the FORCE_LAST_GOOD_PLAN option is not related to automatic tuning. FORCE_LAST_GOOD_PLAN is a query hint that forces a query to use the last known good query plan in the plan cache instead of generating a new one.
upvoted 2 times
U_C
1 year, 6 months ago
Sorry, I am wrong. C is correct.
upvoted 3 times
...
...
cccwww
1 year, 7 months ago
Selected Answer: C
https://learn.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-enable?view=azuresql - read first highlighted area
upvoted 4 times
U_C
1 year, 6 months ago
Here you are: For Azure SQL Managed Instance, the supported option FORCE_LAST_GOOD_PLAN can only be configured through T-SQL. The Azure portal based configuration and automatic index tuning options described in this article do not apply to Azure SQL Managed Instance.
upvoted 1 times
...
...
KingChuang
1 year, 8 months ago
Selected Answer: C
For Azure SQL Managed Instance, the supported option FORCE_LAST_GOOD_PLAN can only be configured through T-SQL. The Azure portal based configuration and automatic index tuning options described in this article do not apply to Azure SQL Managed Instance. Ref: https://learn.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-enable?view=azuresql
upvoted 4 times
...
Manuuzzz
1 year, 9 months ago
Correct, managed instance is via alter database: <automatic_tuning_option> ::= { AUTOMATIC_TUNING ( FORCE_LAST_GOOD_PLAN = { DEFAULT | ON | OFF } ) } azure sql database can also be done via the portal
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago