Page 1 of 1

You have a fact table named PowerUsage that has 10 billion rows. PowerUsage contains data about customer power usage dur

Posted: Wed Aug 17, 2022 7:02 am
by answerhappygod
You have a fact table named PowerUsage that has 10 billion rows. PowerUsage contains data about customer power usage during the last 12 months. The usage data is collected every minute. PowerUsage contains the columns configured as shown in the following table.LocationNumber has a default value of 1. The MinuteOfMonth column contains the relative minute within each month. The value resets at the beginning of each month.A sample of the fact table data is shown in the following table.There is a related table named Customer that joins to the PowerUsage table on the CustomerId column. Sixty percent of the rows in PowerUsage are associated to less than 10 percent of the rows in Customer. Most queries do not require the use of the Customer table. Many queries select on a specific month.You need to minimize how long it takes to find the records for a specific month.What should you do?
You Have A Fact 1
You Have A Fact 1 (27.62 KiB) Viewed 74 times
You Have A Fact 2
You Have A Fact 2 (33.8 KiB) Viewed 74 times
A. Implement partitioning by using the MonthKey column. Implement hash distribution by using the CustomerId column.
B. Implement partitioning by using the CustomerId column. Implement hash distribution by using the MonthKey column.
C. Implement partitioning by using the MinuteOfMonth column. Implement hash distribution by using the MeasurementId column.
D. Implement partitioning by using the MonthKey column. Implement hash distribution by using the MeasurementId column.