Courseiva

DP-300 Practice Question: Monitor, configure, and optimize database resources

You manage an Azure SQL Database that runs a reporting workload. Users report that queries are slow only when they filter on a specific customer region, and the slowness began after a large data load. You run Query Store and identify a plan that regressed. You want the database engine to automatically detect and revert to the last known good plan for that query. What should you configure?

⚠ Common exam trap

Test-takers frequently confuse automatic tuning features that create objects (like indexes) with those that correct existing plan regressions.

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

✓

Enable automatic tuning with the FORCE_LAST_GOOD_PLAN option.

Automatic tuning with FORCE_LAST_GOOD_PLAN is the correct choice because it directly addresses plan regression by automatically reverting to a previously good plan when performance degrades. The other options either collect data without acting, create indexes, or change compatibility levels, none of which provide the automatic regression correction required.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Enable automatic tuning with the CREATE_INDEX option.

    Why it's wrong here

    CREATE_INDEX automatically creates missing indexes based on workload analysis; it does not detect plan regressions or revert to previous plans. While it can improve performance, it addresses a different root cause (missing indexes) rather than a regression caused by a plan change.

  • ✗

    Set the database compatibility level to the latest version.

    Why it's wrong here

    Changing the compatibility level affects query optimizer behaviors and may introduce plan changes, but it does not automatically detect or revert plan regressions. It is a manual, broad change that could worsen performance if the regression was caused by the new compatibility level.

  • ✓

    Enable automatic tuning with the FORCE_LAST_GOOD_PLAN option.

    Why this is correct

    FORCE_LAST_GOOD_PLAN is an automatic tuning feature in Azure SQL Database that monitors for plan regressions and automatically forces the last known good plan when a regression is detected. It is specifically designed for the scenario where a query becomes slower due to a plan change, which matches the reported symptom.

  • ✗

    Configure Query Store to use AUTO plan capture mode.

    Why it's wrong here

    AUTO plan capture mode in Query Store records plans automatically, but it only collects diagnostic data; it does not take corrective action such as forcing a previous plan. It is a monitoring setting, not an automatic tuning feature.

Go deeper

Related to this question

About these practice questions

One of 574 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 →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Microsoft exam blueprint

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.