nerdexam
Microsoft

70-451 · Question #133

You are a database developer. You plan to design a database solution by using SQL Server 2008. The database contains a large table that has 20 million rows. The table contains the following columns…

The correct answer is C. - Drop the indexes on CustomerNumber and ContactFirstName. See the full explanation below for the reasoning.

Question

You are a database developer. You plan to design a database solution by using SQL Server 2008. The database contains a large table that has 20 million rows. The table contains the following columns:

  • CustomerNumber
  • CompanyName
  • ContactFirstName
  • ContactLastName

The table currently has single-column nonclustered indexes on the CustomerNumber, CompanyName, and ContactFirstName columns. An application uses data from this table. The user interface of the application allows the usage of any one filter from the following list of filters:

  • CustomerNumber and CompanyName
  • CompanyName
  • ContactLastName
  • ContactLastName and ContactFirstName

In all cases, the listed order of the columns is the order in which they will appear in the WHERE clause that is generated. You need to design an indexing strategy for this table, so that the query optimizer can quickly perform an index seek when searching through the table data. What should you recommend?

Options

  • A
    • Drop all existing indexes.
  • B
    • Drop all existing indexes.
  • C
    • Drop the indexes on CustomerNumber and ContactFirstName.
  • D
    • Drop all existing indexes.

How the community answered

(45 responses)
  • A
    2% (1)
  • B
    11% (5)
  • C
    80% (36)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 70-451 Practice