Review Questions Flashcards

(31 cards)

1
Q

Is this schedule
w1(x) r1(x) w3(z) cl r2(x) r2() r4(E) c4 c2 r3(x) w3 (V) c3
strict?
(NOTE: Schedule in which a Transaction can neither read or write an item X until the last Transaction that wrote X has Committed.)

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
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
3
Q

A ______ statement temporarily saves data read and written by a transaction

A

SAVEPOINT

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

The transaction is always durable

A

False

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

AHow many SQL statements must be in one transaction?

A

At least one

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

Which of the following is NOT true of the two phase locking protocol

A

It eliminates the problem of deadlock

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

Would T2 get a shared lock

A

Yes

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

Select Transaction 5 Isolation level

A

READ UNCOMMITTED

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

Select the correct option for the following:
Transaction 1

A

SERIALIZABLE

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

The _____ Schedule has a different result than schedule

A

Conflicting

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

Which two phase locking technique has, in effect, just one phase?

A

Rigorous

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

SERIALIZABLE transaction can run concurrently with a READ COMMITTED transaction

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
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
14
Q

Consider the following sequence of actions, listed in the order they are submitted to the DBMS: w1(x) r2(x) w2(v) w2(x) w3(z) r3(v) w3(v) wl(z) abortl
Does deadlock exists?

A

Yes

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

A transaction updates an account with a foreign key. The FK does not match any values of the corresponding PK and is not null

A

Consistent

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

Trans A writes data and rolls back before transaction B reads data

17
Q

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

18
Q

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

19
Q

Several transactions can hold concurrent exclusive locks on the same row

20
Q

In recovery techniques, ______ requires that the effects of a committed transaction be permenant so they must survive a loss of main memory, loss of disk storage etc

21
Q

Grant _____ ON DEPTINFOR To assistant

22
Q

During the undo phase, the recovery system reads the log in reverse and stops at

A

The start record for the last transaction in the active transaction list

23
Q

After a rollback the database restarts a transaction

24
Q

Select Transaction 5 transaction boundry

A

Start and End

25
A document that sequentially writes all the database operations known as an
Recovery Log
26
In which isolation level can dirty reads occur
Read Uncommitted
27
When using the MySQL Workbench the _________ ison will execute an SQL statement
Lightning Bolt
28
Which MySQL component retains data blocks from storage in main memory for possible resuse
Buffer Manager
29
In the recovery log below line 6 is an
Compensation Record
30
A transaction ________ indicates the staring and ending statement of a DB transaction
Boundry
31
Which isolation level prevents dirty non repeatable and phantom reads
Serializable