Databases — Transactional Good Practice Flashcards

(6 cards)

1
Q

Explain

What is the ACID acronym for?

A

Ensuring reliable and consistent database operations (transations).

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

Recall

What does ACID stand for?

A

A: Atomicity
C: Consistency
I: Integrity
D: Durability

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

Define

Transactional Atomicity

A

Ensuring that everything within a transation is committed, or nothing at all.

(e.g. if a transaction is tasked with updating A and B, and it updates A successfully and not B, revert A’s update.)

(everything is committed or nothing is committed at all.)

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

Define

Transactional Isolation

A

Concurrent transactions do not interfere with each other.

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

Define

Transactional Consistency

A

Every transaction must move the database from one valid state to another.

(i.e. a transaction must adhere to the databases’s rules and constraints)

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

Define

Transactional Durability

A

Once a transaction is committed, its changes are persisted and can survive various system events.

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