exam questions

Exam 70-762 All Questions

View all questions & answers for the 70-762 exam

Exam 70-762 topic 1 question 64 discussion

Actual exam question from Microsoft's 70-762
Question #: 64
Topic #: 1
[All 70-762 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
The Account table was created using the following Transact-SQL statement:


There are more than 1 billion records in the Account table. The Account Number column uniquely identifies each account. The ProductCode column has 100 different values. The values are evenly distributed in the table. Table statistics are refreshed and up to date.
You frequently run the following Transact-SQL SELECT statements:

You must avoid table scans when you run the queries.
You need to create one or more indexes for the table.
Solution: You run the following Transact-SQL statements:


Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Create a clustered index on theAccountNumber column as it is unique.
Create a nonclustered index that includes the ProductCode column.
References:
https://msdn.microsoft.com/en-us/library/ms190457.aspx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kiri2020
4 years, 7 months ago
62, 63, 64 all Yes , no table scan, but index seek, although like someone mentioned same IO cost
upvoted 2 times
eggzamtaker
4 years, 5 months ago
Precisely.
upvoted 1 times
...
NhiN
4 years, 5 months ago
TESTED on ~2 million rows table ! Q62 has 1 Index scan (PK_Account) on second query
upvoted 3 times
...
...
kiri2020
4 years, 7 months ago
It will meet the goal, except the first index is unnecessary, we don't have AccountNumber in WHERE clause
upvoted 4 times
...
Oooo
4 years, 8 months ago
Although a clustered index avoids table scan, it does a clustered index scan which in this case has same IO cost.
upvoted 1 times
databasejamdown
4 years, 8 months ago
Agreed
upvoted 1 times
...
eggzamtaker
4 years, 5 months ago
Irrelevant. Stop putting out information that's useless in so far as identifying the correct answer.
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...