CSCI 475 Ch. 10 Flashcards

1
Q

ACID stands for

A

atomicity, consistency, isolation, durability

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

atomicity means that

A

all operations of a transaction must be completed

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

consistency refers to the

A

permanence of database’s consistent state

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

isolation means

A

data used during a transaction cannot be used by a second transaction until the first is completed

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

durability ensures that

A

once transactions are committed, they cannot be undone or lost

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

transaction format when updating

A

BEGIN;

UPDATE [table]
SET [whatever]
WHERE [whatever];

COMMIT;

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

transaction format when inserting and updating

A

BEGIN;

INSERT INTO [table] VALUES (whatever);

UPDATE [table]
SET [whatever]
WHERE [whatever];

COMMIT;

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

lost update occurs when

A

both transactions write but one write is lost (both read and operate on the original value)

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

uncommitted data occurs when

A

a second transaction reads what a first has written before the first decides to rollback (ex: T1 updates quantity from 5 to 10, T2 reads the written value of 10 (no T1 commit) and proceeds, T1 rollback, T2 commit)

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

inconsistent retrieval occurs when

A

data is read at different points during another transaction (ex: T1 updates three values by adding 5 - T2 reads value A after 5 has been added, but reads values B and C before 5 has been added)

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