nerdexam
Microsoft

70-433 · Question #51

70-433 Question #51: Real Exam Question with Answer & Explanation

The correct answer is D. CREATE NONCLUSTERED INDEX IX_Customer_AccountNumber ON dbo.Customer. See the full explanation below for the reasoning.

Question

You have a table named dbo.Customers. The table was created by using the following Transact-SQL statement: CREATE TABLE dbo.Customers ( CustomerID int IDENTITY(1,1) PRIMARY KEY CLUSTERED, AccountNumber nvarchar(25) NOT NULL, FirstName nvarchar(50) NOT NULL, LastName nvarchar(50) NOT NULL, AddressLine1 nvarchar(255) NOT NULL, AddressLine2 nvarchar(255) NOT NULL, City nvarchar(50) NOT NULL, StateProvince nvarchar(50) NOT NULL, Country nvarchar(50) NOT NULL, PostalCode nvarchar(50) NOT NULL, CreateDate datetime NOT NULL DEFAULT(GETDATE()), ModifiedDate datetime NOT NULL DEFAULT(GETDATE()) ) You create a stored procedure that includes the AccountNumber, Country, and StateProvince columns from the dbo.Customers table. The stored procedure accepts a parameter to filter the output on the AccountNumber column. You need to optimize the performance of the stored procedure. You must not change the existing structure of the table. Which Transact-SQL statement should you use?

Options

  • ACREATE STATISTICS ST_Customer_AccountNumber ON dbo.Customer (AccountNumber)
  • BCREATE CLUSTERED INDEX IX_Customer_AccountNumber ON dbo.Customer
  • CCREATE NONCLUSTERED INDEX IX_Customer_AccountNumber ON dbo.Customer
  • DCREATE NONCLUSTERED INDEX IX_Customer_AccountNumber ON dbo.Customer

Community Discussion

No community discussion yet for this question.

Full 70-433 Practice