question

Anette avatar image
Anette asked

You need to minimize the amount of time required for queries that use data from TBL1 and TBL2 to return data. What should you do?

You have a Microsoft SQL Server database named DB1 that contains the following tables:

TBL1

  • Column1 is configured as the primary key
  • The table will contain 20 million records
  • The table will contain historical data.
  • Most queries of TBL1 return a high percentage of rows from the table with aggregates.

TBL2

  • Column1 is configured as the primary key
  • The table will contain 25 million records
  • The frequency of updates and deleted to records in TBL2 is low.
  • Most queries of TBL2 return a high percentage of rows from the table with aggregates.

There are no foreign key relationships between TBL1 and TBL2.

You need to minimize the amount of time required for queries that use data from TBL1 and TBL2 to return data. What should you do?

A. Create clustered indexes on TBL1 and TBL2.

B. Create a clustered index on TBL1.Create a nonclustered index on TBL2 and add the most frequently queried column as included columns.

C. Create a nonclustered index on TBL2 only.

D. Create UNIQUE constraints on both TBL1 and TBL2. Create a partitioned view that combines columns from TBL1 and TBL2.

E. Drop existing indexes on TBL1 and then create a clustered columnstore index. Create a nonclustered columnstore index on TBL1.Create a nonclustered index on TBL2.

F. Drop existing indexes on TBL1 and then create a clustered columnstore index. Create a nonclustered columnstore index on TBL1.Make no changes to TBL2.

G. Create CHECK constraints on both TBL1 and TBL2. Create a partitioned view that combines columns from TBL1 and TBL2.

H. Create an indexed view that combines columns from TBL1 and TBL2.

sql-serverindexclustered-index
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

What do you think? What is your thought process?
This is clearly an exam question - so instead of just asking for the answer, tell us how you would approach this.

0 Likes 0 ·

1 Answer

·
Anette avatar image
Anette answered

I think its B but I am not sure that's why I as asking for help :)

Yes this was practice questions for 70 - 762 exam, and I passed it today :).

Thank you for answering.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.