exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 4 question 7 discussion

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

You have an Azure SQL database named DB1. You run a query while connected to DB1.
You review the actual execution plan for the query, and you add an index to a table referenced by the query.
You need to compare the previous actual execution plan for the query to the Live Query Statistics.
What should you do first in Microsoft SQL Server Management Studio (SSMS)?

  • A. For DB1, set QUERY_CAPTURE_MODE of Query Store to All.
  • B. Run the SET SHOWPLAN_ALL Transact-SQL statement.
  • C. Save the actual execution plan.
  • D. Enable Query Store for DB1.
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
examtry
Highly Voted 3 years, 10 months ago
C: is correct.
upvoted 13 times
...
voodoo_sh
Most Recent 3 months, 1 week ago
Selected Answer: C
Azure SQL DB - Query Store is enabled by default, so no need for D. Just save the actual execution plan as .sqlplan, then right click plan in Live Query Statistics -> Compare Showplan, select the saved plan, and SSMS will compare the plans.
upvoted 1 times
...
Vitos25
6 months, 4 weeks ago
Selected Answer: C
Query Store is enabled by default in Azure SQL Database. so C is the correct answer.
upvoted 2 times
...
dorwai
8 months ago
Selected Answer: C
I take my last answer (D) back - C is correct
upvoted 1 times
...
dorwai
8 months ago
Selected Answer: D
By enabling Query Store, you can retain historical query performance data, including execution plans, which allows you to compare different execution plans over time, including after schema changes like adding an index.
upvoted 1 times
...
Ben999
1 year, 1 month ago
Answer should be D. C does not allow comparing a Live query statistics, only 2 save query plans. D allows you to compare a previous query plan against a plan of a running query. https://learn.microsoft.com/en-us/sql/relational-databases/performance/query-store-usage-scenarios?view=sql-server-ver16
upvoted 2 times
sca88
1 year ago
On Azure SQL Database The Query Store is enabled by default, so D can't be the correct answer. C is the right one.
upvoted 1 times
...
...
Pranava_GCP
2 years ago
Selected Answer: C
If before adding the index, you have saved the plan, then C is correct answer for sure. But if you didn't save it then need to get it from Query Store. From the context of the question itself, seem to be C is the nearest answer.
upvoted 3 times
...
dryd
2 years, 1 month ago
Selected Answer: C
C is correct: https://learn.microsoft.com/en-us/sql/relational-databases/performance/compare-execution-plans?view=sql-server-ver16
upvoted 1 times
...
KIET2131
2 years, 1 month ago
Selected Answer: D
D. Enable Query Store for DB1. By enabling Query Store for the database, you can compare the previous execution plan to the new one. This feature allows you to view query performance over time, identify regressions, and diagnose issues caused by changes in the execution plan. The Query Store saves the history of queries, execution plans, and runtime statistics, making it easy to compare the actual execution plan before and after the index addition.
upvoted 2 times
sca88
1 year ago
On Azure SQL Database The Query Store is enabled by default, so D can't be the correct answer. C is the right one.
upvoted 1 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