Database Sharding Strategies and Consistent Hashing
Test your knowledge on horizontal partitioning, shard keys, and the mathematical principles of consistent hashing in distributed database systems.
Sample Questions
What is the primary definition of database sharding?
- A technique to replicate data across multiple data centers for backup.
- A horizontal partitioning scheme that splits a large dataset into smaller, independent parts called shards.
- A vertical partitioning method where specific columns are moved to different tables.
- The process of indexing a database to improve search query performance.
In horizontal partitioning, what does each 'shard' contain?
- All columns but only a subset of rows.
- A subset of columns for all rows.
- The entire database schema and all its records.
- Only the metadata and index structures of the database.
Which of these is a major disadvantage of range-based sharding?
- It is difficult to implement.
- It cannot handle large datasets.
- It can lead to 'hotspots' if data is not uniformly distributed over the ranges.
- It requires a central lookup table for every single query.