nerdexam
Microsoft

70-457 · Question #64

You are developing a database application by using Microsoft SQL Server 2012. An application that uses a database begins to run slowly. Your investigation shows the root cause is a query against a…

The correct answer is F. Add a columnstore index to cover the query. See the full explanation below for the reasoning.

Question

You are developing a database application by using Microsoft SQL Server 2012. An application that uses a database begins to run slowly. Your investigation shows the root cause is a query against a read-only table that has a clustered index. The query returns the following six columns:

  • One column in its WHERE clause contained in a non-clustered index
  • Four additional columns
  • One COUNT (*) column based on a grouping of the four additional

columns You need to optimize the statement. What should you do?

Options

  • AAdd a HASH hint to the query.
  • BAdd a LOOP hint to the query.
  • CAdd a FORCESEEK hint to the query.
  • DAdd an INCLUDE clause to the index.
  • EAdd a FORCESCAN hint to the Attach query.
  • FAdd a columnstore index to cover the query.
  • GEnable the optimize for ad hoc workloads option.
  • HCover the unique clustered index with a columnstore index.
  • JInclude a SET STATISTICS PROFILE ON statement before you run the query.

How the community answered

(39 responses)
  • A
    3% (1)
  • C
    8% (3)
  • F
    85% (33)
  • G
    3% (1)
  • J
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice