
Ultimate access to all questions.
In a scenario where you have a dataset of user activities on a social media platform, which includes columns like user_id, activity_type, timestamp, and location. Explain how you would decide on the appropriate partitioning strategy for this dataset to optimize query performance. Consider the frequency of queries and the nature of the data.
A
Partition by user_id, as it is likely that queries will often filter by individual users._
B
Partition by activity_type, as it is likely that queries will often filter by the type of activity._
C
Partition by timestamp, as it is likely that queries will often filter by time ranges.
D
Partition by location, as it is likely that queries will often filter by geographical data.