nerdexam
Microsoft

70-433 · Question #51

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…

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

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

Unlock 70-433 to see the answer

You've previewed enough free 70-433 questions. Unlock 70-433 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-433 Practice