exam questions

Exam 70-462 All Questions

View all questions & answers for the 70-462 exam

Exam 70-462 topic 2 question 193 discussion

Actual exam question from Microsoft's 70-462
Question #: 193
Topic #: 2
[All 70-462 Questions]

You administer a Microsoft Azure SQL Database database named Orders.
Users report that a query that filters on OrderDate is taking an exceptionally long time. You discover that an index named IX_OrderDate on the CustomerOrder table is disabled.
You need to ensure that the query can use the IX_OrderDate index.
Which Transact-SQL command should you use?

  • A. ALTER INDEX IX_OrderDate ON CustomerOrder DISABLE
  • B. ALTER INDEX IX_OrderDate ON CustomerOrder ENABLE
  • C. ALTER INDEX IX_OrderDate ON CustomerOrder REORGANIZE
  • D. ALTER INDEX IX_OrderDate ON CustomerOrder REBUILD
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Enable a disabled index by using the Transact-SQL ALTER INDEX REBUILD command.
Incorrect Answers:
B: There is no ALTER INDEX ..ENABLE subcommand.
References:
https://docs.microsoft.com/en-us/sql/relational-databases/indexes/enable-indexes-and-constraints https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-index-transact-sql

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
Varad
5 years, 9 months ago
D. ALTER INDEX IX_OrderDate ON CustomerOrder REBUILD
upvoted 4 times
mr_corte
5 years, 7 months ago
reference :https://docs.microsoft.com/en-us/sql/relational-databases/indexes/enable-indexes-and-constraints?view=sql-server-ver15
upvoted 4 times
...
fira
5 years, 5 months ago
I agree with you its D
upvoted 2 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 ...