SkillSprout
Chapter 2

Data and Storage

Databases, indexes, replication, partitioning, consistency, unique IDs and object storage.

1Relational Databases and ACID
Beginner
10 min
2NoSQL Families
Beginner
8 min
3Indexing: B-Trees, LSM Trees and Secondary Indexes
Intermediate
9 min
4Replication: Leaders, Followers and Lag
Intermediate
9 min
5Partitioning, Sharding and Consistent Hashing
Intermediate
9 min
6Consistency, the CAP Theorem and Quorums
Intermediate
9 min
7Unique ID Generation: UUIDs, Counters and Snowflake
Intermediate
9 min
8Blob and Object Storage
Intermediate
10 min

Chapter quiz

Data and Storage · 6 questions

  1. 1.Two users try to buy the last item at the same time. Which approach prevents overselling?

  2. 2.A chat app needs the 50 newest messages of a conversation at 10,000 writes per second. Which store fits best?

  3. 3.Which statement about adding database indexes is correct?

  4. 4.With asynchronous replication, a user posts a comment and immediately sees it missing after a reload. What is the best fix?

  5. 5.A cluster uses hash(key) mod N and grows from 4 to 5 nodes. What happens, and what is the better design?

  6. 6.N = 3 replicas, W = 2, R = 2. Which statement is true?

0 of 6 answered