Week 3 - ACID Properties Flashcards

1
Q

What is a transaction?

A

It is basically user programs that either read or write data to the database system

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

Can you have multiple transaction running at the same time?

A

Yes

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

How to obtain Concurrency with transactions

A

Using interleaves to execute the transaction but leave the database in a consistent state

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

Atomicity

A

All or nothing

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

Consistency

A

no violations of integrity constraints

think foreign keys, primary keys..etc, data replication etc

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

Isolation

A

concurrent changes invisible => serializable

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

Durability

A

committed updates persist

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

Which of the following describes the atomicity principle of database transactions?

1) A database can only serve one user at a time.
2) All of the components of a transaction run in their entirety, or none of them run at all.
3) A database can only process one query at a time.
4) A database can only process one transaction at a time.

A

2) All of the components of a transaction run in their entirety, or none of them run at all.

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

Which of the following describes the isolation principle of database transactions?

1) All of the components of a database transaction run in their entirety, or none of them run at all.
2) A database management system can only process on query at a time.
3) A database management system can process multiple transactions simultaneously.
4) Each transaction runs as if there is no other transaction running

A

4) Each transaction runs as if there is no other transaction running

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

What is a sequence of reads and writes from/to a database called?

1) Process
2) Program
3) Transaction
4) Information

A

3) Transaction

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

How does a database achieve concurrency?

1) By processing transactions as they come in.
2) By interleaving transactions.
3) By processing transactions at the same time.
4) By putting transactions in a queue.

A

2) By interleaving transactions.

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

What are the four principles of database transactions?

1) Atomicity, Concurrency, Isolation, Durability
2) Atomicity, Consistency, Isolation, Durability
3) Atomicity, Consistency, Integrity, Durability

A

2) Atomicity, Consistency, Isolation, Durability

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

Which of the following describes the atomicity principle of database transactions?

1) All of the components of a transaction run in their entirety, or none of them run at all.
2) A database can only process one transaction at a time.
3) A database can only process one query at a time.
4) A database can only serve one user at a time.

A

1) All of the components of a transaction run in their entirety, or none of them run at all.

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