nerdexam
Microsoft

70-457 · Question #19

You use a Microsoft SQL Server 2012 database that contains two tables named SalesOrderHeader and SalesOrderDetail. The indexes on the tables are as shown in the exhibit. (Click the Exhibit button.)…

Sign in or unlock 70-457 to reveal the answer and full explanation for question #19. The question stem and answer options stay visible for context.

Question

You use a Microsoft SQL Server 2012 database that contains two tables named SalesOrderHeader and SalesOrderDetail. The indexes on the tables are as shown in the exhibit. (Click the Exhibit button.) You write the following Transact-SQL query:

You discover that the performance of the query is slow. Analysis of the query plan shows table scans where the estimated rows do not match the actual rows for SalesOrderHeader by using an unexpected index on SalesOrderDetail. You need to improve the performance of the query. What should you do?

Exhibits

70-457 question #19 exhibit 1
70-457 question #19 exhibit 2

Options

  • AUse a FORCESCAN hint in the query.
  • BAdd a clustered index on SalesOrderId in SalesOrderHeader.
  • CUse a FORCESEEK hint in the query.
  • DUpdate statistics on SalesOrderId on both tables.

Unlock 70-457 to see the answer

You've previewed enough free 70-457 questions. Unlock 70-457 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-457 Practice