More Review Flashcards

(22 cards)

1
Q

The concurrent transactions T1 and T2 can take a _____ lock on the same row

A

Shared

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

A schedule is serializable when ____

A

The graph is acyclic

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

After a rollback, the database restart a transaction

A

Sometimes

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

When a transaction deletes a table row, an ______ record is written in the log

A

update

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

Deadlock can be spotted by looking for which of the following in a wait-for graph?

A

A cycle

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

Would T2 get a shared lock?

A

YES

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

Each of the following is a well known concurrency control problem EXCEPT

A

The redundant data problem

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

During the undo phase, the recovery system writes compensation records for

A

Transactions that do not commit or roll back following the most recent checkpoint

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

CHECKPOINT statement syntax is specified in the SQL standard

A

False

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

In recovery techniques, _____ requires that the effects of a commited transaction be permenant so they must survive the loss of main memory loss of disk storage and failures during data transfers to disk

A

durability

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

When a deadlock occurs, a cycle of dependent transactions always exist

A

True

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

Transactions A and B are both serializable, and A always starts before B, the results may vary

A

False

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

After all updates have been reversed in a rollback, an _____ record is written in the log

A

transaction or rollback

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

After a transaction commits, the transaction can be rolled back

A

Never

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

A SERIALIZABLE transaction can run concurrently with READ COMMITTED transaction

A

True

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

Phases in recovery using the ARIES method includes all of the following except

17
Q

Select statements 4 transaction boundry

A

Start and end

18
Q

Several transactions can hold concurrent exclusive locks on the same row

19
Q

The privelage list of the SQL Grant statement may include all of the following except

20
Q

How many transaction rollbacks are needed to break the deadlock

21
Q

A database uses basic two phase locking. Transaction A takes a exclusive lock on X. Transaction B requests a shared lock on X. When is the shared lock granted

A

During the contract phase of A