Filters
Question type

Study Flashcards

Database transaction ____________________ restores a database from an inconsistent state to a previously consistent state.

Correct Answer

verifed

verified

ANSI defines four events that signal the end of a transaction. Of the following events, which is defined by ANSI as being equivalent to a COMMIT?


A) Five SQL statements are executed.
B) The end of a program is successfully reached.
C) The program is abnormally terminated.
D) The database is shut down for maintenance.

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

The ____________________ rule states that only one transaction at a time can own an exclusive lock on the same object.

Correct Answer

verifed

verified

Atomicity indicates the permanence of the database's consistent state.

A) True
B) False

Correct Answer

verifed

verified

____ are required to prevent another transaction from reading inconsistent data.


A) Locks
B) Schedules
C) Stamps
D) Logs

E) None of the above
F) B) and D)

Correct Answer

verifed

verified

How does a shared/exclusive lock schema increase the lock manager's overhead?

Correct Answer

verifed

verified

The type of lock held must be known befo...

View Answer

A single-user database system automatically ensures ____ of the database, because only one transaction is executed at a time.


A) serializability and durability
B) atomicity and isolation
C) serializability and isolation
D) atomicity and serializability

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

What are database checkpoints?

Correct Answer

verifed

verified

Database checkpoints are operations in w...

View Answer

What is a rule that applies to the two-phase locking protocol?


A) Two transactions cannot have conflicting locks.
B) No unlock operation can precede a lock operation in a different transaction.
C) No data is affected until all locks are released.
D) No data is affected until the transaction is in its locked position.

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

Although the DBMS is designed to recover a database to a previous consistent state when an interruption prevents the completion of a required set of transactions, the transactions themselves are defined by the end user or programmer and must be semantically correct.

A) True
B) False

Correct Answer

verifed

verified

Serializability means that data used during the execution of a transaction cannot be used by a second transaction until the first one is completed.

A) True
B) False

Correct Answer

verifed

verified

The last step in the write-through technique recovery procedure is to identify the last checkpoint in the transaction log.

A) True
B) False

Correct Answer

verifed

verified

____________________ control is important because the simultaneous execution of transactions over a shared database can create several data integrity and consistency problems.

Correct Answer

verifed

verified

Uniqueness ensures that no equal time stamp values can exist, and ____________________ ensures that time stamp values always increase.

Correct Answer

verifed

verified

____________________-level locks are less restrictive than database-level locks, but they create traffic jams when many transactions are waiting to access the same table.

Correct Answer

verifed

verified

A growing phase in a two-phase lock is when a transaction acquires all the required locks without locking any data.

A) True
B) False

Correct Answer

verifed

verified

If a(n) ____________________ is issued before the termination of a transaction, the DBMS will restore the database only for that particular transaction, rather than for all transactions, in order to maintain the durability of the previous transactions.

Correct Answer

verifed

verified

A consistent database state is ____.


A) one in which all tables have foreign keys
B) one in which all data integrity constraints are satisfied
C) one in which all tables are normalized
D) one in which all SQL statements only update one table at a time

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

A ____ lock prevents the use of any tables in the database from one transaction while another transaction is being processed.


A) database-level
B) table-level
C) page-level
D) row-level

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

What are the three basic techniques to control deadlocks?

Correct Answer

verifed

verified

Deadlock prevention. A transaction reque...

View Answer

Showing 21 - 40 of 70

Related Exams

Show Answer