Scaling Data Storage Flashcards

(10 cards)

1
Q

Define database partitioning.

A

The process of dividing a database into smaller, more manageable pieces called partitions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is hashing in databases?

A

A technique to convert data into a fixed-size string of characters, which is typically a hash code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or false: Consistent hashing allows for dynamic addition of nodes without rehashing all data.

A

TRUE

Consistent hashing minimizes data movement when nodes are added or removed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fill in the blank: Replication involves _______ data across multiple servers.

A

copying

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the main goal of database replication?

A

To ensure data availability and reliability by duplicating data across multiple locations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define sharding.

A

A type of database partitioning that separates data into smaller, more manageable pieces called shards.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of a hash function?

A

To map data of arbitrary size to fixed-size values, ensuring uniform distribution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True or false: Replication can improve read performance.

A

TRUE

Multiple replicas can handle read requests simultaneously.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fill in the blank: Consistent hashing uses a _______ to distribute keys across nodes.

A

ring structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a partition key?

A

A specific attribute used to determine how data is distributed across partitions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly