Distributed Systems Flashcards

1
Q

What CAP from the CAP Theorems stands for?

A

C - consistency
A - Availability
P - Partition tolerance

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

What does Consistency mean in the CAP Theorem?

A

Consistency property guarantees that every Read request receives the most recent write or an error

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

What does Availability mean in the CAP Theorem?

A

Availability property guarantees that every request receives a non-error response, but without the guarantee that it contains the most recent write

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

What does Partition Tolerance mean in the CAP Theorem?

A

Partition Tolerance property guarantees that the system continues to operate despite an arbitrary number of messages being dropped or delayed by the network between nodes

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

What is ACID for RDBMS?

A

ACID stands for Atomicity, Consistency, Isolation, and Durability. These 4 properties of DB transactions are intended to guarantee validity even in the event of errors, power failures, etc.

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

What is Atomicity property in the ACID?

A

Atomicity requires that a transaction which consists of several statements either complete or rollback completely, thus making the multiple statements succeed or fail as an atomic unit. A failure of a single statement should cause the entire transaction to fail. Partially finished transactions should never be visible, since a statement could subsequently fail, thus causing the entire transaction to rollback.

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

What is Consistency property in the ACID?

A

Consistency requires that a transaction bring the database from one valid state to another that adheres to all constraints. For example, RDBMS’s require that a foreign key either point to an existing parent or be NULL. So if a transaction tries to insert a child that points to a parent, such as “Brad Vander Zanden”, then “Brad Vander Zanden” must be verified to exist and must continue to exist until the transaction has been completed.

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

What is Isolation property in the ACID?

A

Isolation requires that transactions should not interfere with each other. The system should guarantee the same results if the transactions are executed in parallel or sequentially. In practice most RDBMS products allow modes that trade off isolation against performance.

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

What is Durability property in the ACID?

A

Durability requires that once a transaction has been committed, it will remain committed even in the case of a system failure (e.g., power outage or crash). This usually means that completed transactions are recorded in non-volatile memory, such as on a disk or solid-state memory.

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