Craig Willey
Quiz von , erstellt am more than 1 year ago

C192 Practice Test

397
0
0
Craig Willey
Erstellt von Craig Willey vor etwa 4 Jahre
Schließen

C192 Transaction Management

Frage 1 von 48

1

All transaction properties must display ____

Wähle eine der folgenden:

  • atomicity, serializability, and durability

  • durability and isolation

  • serializability, durability, and isolation

  • atomicity, durability, serializability, and isolation

Erklärung

Frage 2 von 48

1

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

Wähle eine der folgenden:

  • database-level

  • table-level

  • page-level

  • row-level

Erklärung

Frage 3 von 48

1

A ____ lock locks the entire table preventing access to any row by a transaction while another transaction is using the table.

Wähle eine der folgenden:

  • database-level

  • table-level

  • page-level

  • row-level

Erklärung

Frage 4 von 48

1

A ____ lock locks the entire diskpage.

Wähle eine der folgenden:

  • transaction-level

  • table-level

  • page-level

  • row-level

Erklärung

Frage 5 von 48

1

A ____ lock allows concurrent transactions to access different rows of the same table.

Wähle eine der folgenden:

  • database-level

  • table-level

  • page-level

  • row-level

Erklärung

Frage 6 von 48

1

A(n) ____ lock has only two stages (0 & 1).

Wähle eine der folgenden:

  • shared

  • exclusive

  • binary

  • two-phase

Erklärung

Frage 7 von 48

1

A(n) ____ specifically reserves access to the transaction that locked the object.

Wähle eine der folgenden:

  • shared lock

  • exclusive lock

  • binary lock

  • deadlock

Erklärung

Frage 8 von 48

1

A(n) ____ lock exists when concurrent transactions are granted read access on the basis of a common lock.

Wähle eine der folgenden:

  • shared

  • exclusive

  • binary

  • two-phase

Erklärung

Frage 9 von 48

1

A(n) ____ lock defines how transactions acquire and relinquish locks.

Wähle eine der folgenden:

  • shared

  • exclusive

  • binary

  • two-phase

Erklärung

Frage 10 von 48

1

A(n) ____ condition occurs when two transactions wait for each other to unlock data.

Wähle eine der folgenden:

  • deadlock

  • exclusive lock

  • binary lock

  • two-phase lock

Erklärung

Frage 11 von 48

1

Which of the following rules applies to the two-phase locking protocol?

Wähle eine der folgenden:

  • Two transactions cannot have conflicting locks.

  • No unlock operation can precede a lock operation in a different transaction.

  • No data is affected until all locks are released.

  • No data is affected until the transaction is in its locked position.

Erklärung

Frage 12 von 48

1

____ control is the management of concurrent transaction execution.

Wähle eine der folgenden:

  • Concurrency

  • Lock

  • Transaction

  • Database

Erklärung

Frage 13 von 48

1

The most common algorithms for concurrency control are locks, ____ stamping, and optimistic methods.

Wähle eine der folgenden:

  • date

  • time

  • hour

  • minute

Erklärung

Frage 14 von 48

1

____ requires that all operations of a transaction be completed.

Wähle eine der folgenden:

  • Specificity

  • Atomicity

  • Durability

  • Time stamping

Erklärung

Frage 15 von 48

1

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

Wähle eine der folgenden:

  • Serializability

  • Atomicity

  • Isolation

  • Time stamping

Erklärung

Frage 16 von 48

1

When you read from and/or write to a database, you have created a(n) ____.

Wähle eine der folgenden:

  • transaction

  • back up

  • update

  • queue

Erklärung

Frage 17 von 48

1

A transaction is a ____ unit of work that must be either entirely completed or aborted.

Wähle eine der folgenden:

  • timed

  • practical

  • logical

  • physical

Erklärung

Frage 18 von 48

1

The ANSI has defined standards that govern SQL database transactions. Transaction support is provided by two SQL statements: ____ and ROLLBACK.

Wähle eine der folgenden:

  • RETRIEVE

  • ASSIGN

  • UPDATE

  • COMMIT

Erklärung

Frage 19 von 48

1

The ____ establishes the order in which the operations within concurrent transactions are executed.

Wähle eine der folgenden:

  • transaction log

  • timer

  • lock manager

  • scheduler

Erklärung

Frage 20 von 48

1

The ____ manager is responsible for assigning and policing the locks used by the transactions.

Wähle eine der folgenden:

  • transaction

  • database

  • lock

  • schedule

Erklärung

Frage 21 von 48

1

Lock ____ indicates the level of lock use.

Wähle eine der folgenden:

  • granularity

  • shrinking

  • growing

  • serializability

Erklärung

Frage 22 von 48

1

During the ____ phase, the transaction scans the database, executes the needed computations, and makes the updates to a private copy of the database values.

Wähle eine der folgenden:

  • read

  • validation

  • write

  • shared

Erklärung

Frage 23 von 48

1

During the ____ phase, the changes are permanently applied to the database.

Wähle eine der folgenden:

  • read

  • validation

  • write

  • shared

Erklärung

Frage 24 von 48

1

During the ____ phase, the changes are permanently applied to the database.

Wähle eine der folgenden:

  • read

  • validation

  • write

  • shared

Erklärung

Frage 25 von 48

1

A(n) ____ backup of the data is when only the last modifications done to the database are copied.

Wähle eine der folgenden:

  • differential

  • complete

  • partial

  • incomplete

Erklärung

Frage 26 von 48

1

A transaction that changes the contents of the database must alter the database from one ____ state to another.

Wähle eine der folgenden:

  • consistent

  • dependent

  • independent

  • inconsistent

Erklärung

Frage 27 von 48

1

When is the implicit beginning of a transaction?

Wähle eine der folgenden:

  • When the database is started

  • When a table is accessed for the first time

  • When the first SQL statement is encountered

  • When the COMMIT command is issued

Erklärung

Frage 28 von 48

1

A(n) ____ phase in a two-phase lock is when a transaction releases all locks and cannot obtain any new lock.

Wähle eine der folgenden:

  • growing

  • shrinking

  • locking

  • unlocking

Erklärung

Frage 29 von 48

1

The ____ approach is based on the assumption that the majority of the database operations do not conflict.

Wähle eine der folgenden:

  • default

  • basic

  • scheduled

  • optimistic

Erklärung

Frage 30 von 48

1

A diskpage, or page, is the equivalent of a ____.

Wähle eine der folgenden:

  • database table

  • disk sector

  • database schema

  • diskblock

Erklärung

Frage 31 von 48

1

The ____ is responsible for assigning and policing the locks used by the transactions.

Wähle eine der folgenden:

  • lock manager

  • scheduler

  • DBA

  • transaction log

Erklärung

Frage 32 von 48

1

What is a consistent database?

Wähle eine der folgenden:

  • One in which all tables have foreign keys

  • One in which all data integrity constraints are satisfied

  • One in which all tables are normalized

  • One in which all SQL statements only update one table at a time

Erklärung

Frage 33 von 48

1

A transaction acquires a ____ prior to data access.

Wähle eine der folgenden:

  • grain

  • timestamp

  • lock

  • key

Erklärung

Frage 34 von 48

1

Changes are permanently applied to the database during the ____ phase of a transaction.

Wähle eine der folgenden:

  • commit

  • write

  • input

  • output

Erklärung

Frage 35 von 48

1

The ____ approach to scheduling concurrent transactions assigns a global unique stamp to each transaction.

Wähle eine der folgenden:

  • scheduled

  • table-locking

  • unique

  • time-stamping

Erklärung

Frage 36 von 48

1

All transactions are controlled and executed by the ____ to guarantee database integrity.

Wähle eine der folgenden:

  • scheduler

  • DBMS

  • transaction log

  • DBA

Erklärung

Frage 37 von 48

1

You can define ____ to help the DBMS ensure that the database remains in a consistent state.

Wähle eine der folgenden:

  • integrity constraints

  • business rules

  • lock-level transactions

  • stored procedures

Erklärung

Frage 38 von 48

1

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

Wähle eine der folgenden:

  • serializability and durability

  • atomicity and isolation

  • serializability and isolation

  • atomicity and serializability

Erklärung

Frage 39 von 48

1

The information stored in the ____ is used by the DBMS for a recovery requirement triggered by a ROLLBACK statement, a program’s abnormal termination, or a system failure such as a network discrepancy or a disk crash.

Wähle eine der folgenden:

  • data dictionary

  • metadata

  • rollback manager

  • transaction log

Erklärung

Frage 40 von 48

1

Which of the following is NOT stored in the transaction log?

Wähle eine der folgenden:

  • The type of operation performed

  • A record for the beginning of a transaction

  • The name of the table

  • The number of affected records

Erklärung

Frage 41 von 48

1

What is one of the three most common data integrity and consistency problems?

Wähle eine der folgenden:

  • Lost updates

  • Disk failures

  • User errors

  • Deadlocks

Erklärung

Frage 42 von 48

1

The phenomenon of ____ occurs when two transactions, T1 and T2, are executed concurrently and the first transaction (T1) is rolled back after the second transaction (T2) has already accessed the uncommitted data—thus violating the isolation property of transactions.

Wähle eine der folgenden:

  • lost updates

  • uncommitted data

  • transaction failure

  • inconsistent retrieval

Erklärung

Frage 43 von 48

1

____ occur when a transaction calculates some summary (aggregate) functions over a set of data while other transactions are updating the data.

Wähle eine der folgenden:

  • Lost updates

  • Uncommitted data

  • Transaction failures

  • Inconsistent retrievals

Erklärung

Frage 44 von 48

1

As long as two transactions, T1 and T2, access ____ data, there is no conflict, and the order of execution is irrelevant to the final outcome.

Wähle eine der folgenden:

  • shared

  • common

  • unrelated

  • locked

Erklärung

Frage 45 von 48

1

The scheduler facilitates data ____ to ensure that two transactions do not update the same data element at the same time.

Wähle eine der folgenden:

  • durability

  • isolation

  • atomicity

  • serializability

Erklärung

Frage 46 von 48

1

What is the most restrictive lock granularity?

Wähle eine der folgenden:

  • Database

  • Table

  • Page

  • Row

Erklärung

Frage 47 von 48

1

Which lock granularity has the highest overhead?

Wähle eine der folgenden:

  • Database

  • Table

  • Row

  • Field

Erklärung

Frage 48 von 48

1

A ____ lock has only two states.

Wähle eine der folgenden:

  • shared

  • binary

  • database

  • row-level

Erklärung