Machine-translated by Google. Questions are authored in English.
Top

Managing Multiuser Databases Questions and Answers

41.

When two transactions are being processed against the database at the same time they are termed concurrent transactions.

Answer: A

Correct answer: True

Transactions are concurrent when their execution overlaps in time, whether or not they touch the same data. The whole apparatus of locking and isolation levels exists to make concurrent transactions behave as though they had run one after another, which is what serializability means.

Please log in or register to report this question.

42.

Which of the following occurs when one transaction reads a changed record that has not been committed to the database?

Answer: C

Correct answer: Dirty read

A dirty read is reading data that another transaction has changed but not yet committed. If that transaction subsequently rolls back, the value read never existed in the database at all, and any decision taken on it is unfounded. Only the read uncommitted isolation level permits it.

Please log in or register to report this question.

Answer: D

Correct answer: Both the first and third answers above are correct.

The two statements are the same responsibility described at two levels. The DBA facilitates the development and use of the database, and that facilitation covers the development, operation and maintenance of the database and its applications. Creating and populating tables is one task within that, not a statement of the overall responsibility.

Please log in or register to report this question.

44.

A transaction for which all committed changes are permanent is called:

Answer: D

Correct answer: durable

Durability means that once a transaction has committed, its changes are permanent and survive any subsequent failure. It is achieved by writing to a log on stable storage before the commit is acknowledged.

Please log in or register to report this question.

45.

A cursor type in which the application can only move forward through the recordset is called:

Answer: A

Correct answer: forward only.

A forward-only cursor can move through the recordset in one direction and cannot return to a row it has passed. It is the cheapest kind, since nothing needs to be retained behind the current position, and it is the right choice whenever the application simply processes each row once.

Please log in or register to report this question.

46.

A phantom read occurs when a transaction rereads data it has previously read and finds modifications or deletions caused by a committed transaction.

Answer: B

Correct answer: False

What is described is a nonrepeatable read: rows already seen have been modified or deleted by a committed transaction. A phantom read is the appearance of new rows that were not there before. The distinction decides which isolation level is needed, since repeatable read prevents the first but not the second.

Please log in or register to report this question.

47.

In this instance, dirty reads are disallowed, while nonrepeatable reads and phantom reads are allowed.

Answer: A

Correct answer: Read committed

Read committed guarantees only that data read has been committed by someone, so dirty reads are impossible. It takes no long-term read locks, so a row may change between two reads within the same transaction - a non-repeatable read - and new rows may appear, a phantom. It is the default level in most systems, as a compromise between correctness and concurrency.

Please log in or register to report this question.

48.

A transaction is a series of actions to be taken on the database so that either all of them are performed successfully or none of them are performed at all.

Answer: A

Correct answer: True

This is the definition of a transaction and it is the atomicity property stated in full. The series of actions is treated as a single indivisible unit, so a transfer between two accounts either debits one and credits the other or does neither - the database is never left with the money in neither place.

Please log in or register to report this question.

49.

The overall responsibility of the DBA is to facilitate the development and use of the database.

Answer: A

Correct answer: True

The DBA’s role is to facilitate the development and use of the database rather than to own the data or to write the applications. In practice that covers design support, security administration, backup and recovery, performance, configuration control and the arbitration of conflicting requirements between user groups.

Please log in or register to report this question.

50.

Which of the following locks the item from change but not from read?

Answer: D

Correct answer: Shared lock

A shared lock permits other transactions to read the item but not to change it, so any number of readers may hold one at once. An exclusive lock permits neither reading nor writing by anyone else. The pair is what allows concurrent reads to proceed freely while any write is serialised.

Please log in or register to report this question.

Loading…
Tags: Managing Multiuser Databases Questions and Answers || Managing Multiuser Databases MCQ Questions and Answers || Managing Multiuser Databases GK Questions and Answers || Managing Multiuser Databases GK MCQ Questions || Managing Multiuser Databases Multiple Choice Questions and Answers || Managing Multiuser Databases GK || GK on Managing Multiuser Databases || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database