Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-300 Exam - Topic 1 Question 127 Discussion

Posted by Rodolfo on Apr 11, 2026 at 10:48 AM

SIMULATION

Task 8

You plan to perform performance testing of db1.

You need prevent db1 from reverting to the last known good query plan.

Suggested Answer: A

To prevent db1 from reverting to the last known good query plan, you need to disable the automatic plan correction feature for the database.This feature is enabled by default and allows the Query Store to detect and fix plan performance regressions by forcing the last good plan1.However, if you want to test the performance of different plans without interference from the Query Store, you can turn off this feature by using the ALTER DATABASE SCOPED CONFIGURATION statement2.

Here are the steps to disable the automatic plan correction feature for db1:

Connect to db1 using SQL Server Management Studio, Azure Data Studio, or any other tool that supports Transact-SQL statements.

Open a new query window and run the following command:ALTER DATABASE SCOPED CONFIGURATION SET AUTOMATIC_TUNING (FORCE_LAST_GOOD_PLAN = OFF); GO

This command will disable the automatic plan correction feature for db1 and allow the Query Optimizer to choose the best plan based on the current statistics and parameters3.

To verify that the automatic plan correction feature is disabled for db1, you can query the sys.database_scoped_configurations catalog view. The value of the force_last_good_plan column should be 0 for db1.

These are the steps to disable the automatic plan correction feature for db1.


Get Premium DP-300 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
22 comments · newest first
RE
Rex 1 month ago
I hope I remember the details during the exam.
GA
Gabriele 1 month ago
Agreed, stability is key for performance.
VE
Vernell 2 months ago
I feel like it’s a common issue in testing.
KI
Kirby 2 months ago
It prevents reverting to old plans.
VI
Virgina 2 months ago
Why do you say that?
KI
Kirby 2 months ago
I think option A is the best choice.
RE
Rex 2 months ago
This question is tricky.
CO
Corrinne 3 months ago
I feel like it’s about stability.
TA
Tammara 3 months ago
It prevents reverting to old plans.
SH
Shelia 3 months ago
Why do you think that?
TA
Tammara 3 months ago
I think option A is the best choice.
KE
Keneth 3 months ago
Agreed, it’s confusing.
SH
Shay 3 months ago
This question is tricky.
AN
Annmarie 4 months ago
This is a common practice, nothing surprising here!
NU
Nu 4 months ago
I heard this can lead to performance issues if not monitored.
DO
Dorathy 4 months ago
Wait, are we sure this won't mess up other queries?
AN
Annmarie 5 months ago
Totally agree, that's the way to go!
JU
Julene 6 months ago
Just set the plan stability option to prevent reversion.
JO
Johana 6 months ago
I feel like there was a specific command we discussed that prevents the plan from being cached, but I can't remember the details right now.
SH
Shawnna 6 months ago
This question seems similar to one we practiced on query optimization; I think we might have to change the database settings.
MI
Ming 6 months ago
I remember something about using `sp_recompile` to force a recompilation, but I can't recall if that's the right approach here.
EL
Elouise 7 months ago
I think we need to use the `OPTION (RECOMPILE)` hint to avoid reverting to the last good plan, but I'm not entirely sure.
0/2000 characters

Save Cancel