Craig Willey
Quiz por , criado more than 1 year ago

C192 Practice Test

397
0
0
Craig Willey
Criado por Craig Willey aproximadamente 4 anos atrás
Fechar

C192 Transaction Management

Questão 1 de 48

1

All transaction properties must display ____

Selecione uma das seguintes:

  • atomicity, serializability, and durability

  • durability and isolation

  • serializability, durability, and isolation

  • atomicity, durability, serializability, and isolation

Explicação

Questão 2 de 48

1

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

Selecione uma das seguintes:

  • database-level

  • table-level

  • page-level

  • row-level

Explicação

Questão 3 de 48

1

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

Selecione uma das seguintes:

  • database-level

  • table-level

  • page-level

  • row-level

Explicação

Questão 4 de 48

1

A ____ lock locks the entire diskpage.

Selecione uma das seguintes:

  • transaction-level

  • table-level

  • page-level

  • row-level

Explicação

Questão 5 de 48

1

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

Selecione uma das seguintes:

  • database-level

  • table-level

  • page-level

  • row-level

Explicação

Questão 6 de 48

1

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

Selecione uma das seguintes:

  • shared

  • exclusive

  • binary

  • two-phase

Explicação

Questão 7 de 48

1

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

Selecione uma das seguintes:

  • shared lock

  • exclusive lock

  • binary lock

  • deadlock

Explicação

Questão 8 de 48

1

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

Selecione uma das seguintes:

  • shared

  • exclusive

  • binary

  • two-phase

Explicação

Questão 9 de 48

1

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

Selecione uma das seguintes:

  • shared

  • exclusive

  • binary

  • two-phase

Explicação

Questão 10 de 48

1

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

Selecione uma das seguintes:

  • deadlock

  • exclusive lock

  • binary lock

  • two-phase lock

Explicação

Questão 11 de 48

1

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

Selecione uma das seguintes:

  • 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.

Explicação

Questão 12 de 48

1

____ control is the management of concurrent transaction execution.

Selecione uma das seguintes:

  • Concurrency

  • Lock

  • Transaction

  • Database

Explicação

Questão 13 de 48

1

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

Selecione uma das seguintes:

  • date

  • time

  • hour

  • minute

Explicação

Questão 14 de 48

1

____ requires that all operations of a transaction be completed.

Selecione uma das seguintes:

  • Specificity

  • Atomicity

  • Durability

  • Time stamping

Explicação

Questão 15 de 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.

Selecione uma das seguintes:

  • Serializability

  • Atomicity

  • Isolation

  • Time stamping

Explicação

Questão 16 de 48

1

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

Selecione uma das seguintes:

  • transaction

  • back up

  • update

  • queue

Explicação

Questão 17 de 48

1

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

Selecione uma das seguintes:

  • timed

  • practical

  • logical

  • physical

Explicação

Questão 18 de 48

1

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

Selecione uma das seguintes:

  • RETRIEVE

  • ASSIGN

  • UPDATE

  • COMMIT

Explicação

Questão 19 de 48

1

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

Selecione uma das seguintes:

  • transaction log

  • timer

  • lock manager

  • scheduler

Explicação

Questão 20 de 48

1

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

Selecione uma das seguintes:

  • transaction

  • database

  • lock

  • schedule

Explicação

Questão 21 de 48

1

Lock ____ indicates the level of lock use.

Selecione uma das seguintes:

  • granularity

  • shrinking

  • growing

  • serializability

Explicação

Questão 22 de 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.

Selecione uma das seguintes:

  • read

  • validation

  • write

  • shared

Explicação

Questão 23 de 48

1

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

Selecione uma das seguintes:

  • read

  • validation

  • write

  • shared

Explicação

Questão 24 de 48

1

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

Selecione uma das seguintes:

  • read

  • validation

  • write

  • shared

Explicação

Questão 25 de 48

1

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

Selecione uma das seguintes:

  • differential

  • complete

  • partial

  • incomplete

Explicação

Questão 26 de 48

1

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

Selecione uma das seguintes:

  • consistent

  • dependent

  • independent

  • inconsistent

Explicação

Questão 27 de 48

1

When is the implicit beginning of a transaction?

Selecione uma das seguintes:

  • 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

Explicação

Questão 28 de 48

1

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

Selecione uma das seguintes:

  • growing

  • shrinking

  • locking

  • unlocking

Explicação

Questão 29 de 48

1

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

Selecione uma das seguintes:

  • default

  • basic

  • scheduled

  • optimistic

Explicação

Questão 30 de 48

1

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

Selecione uma das seguintes:

  • database table

  • disk sector

  • database schema

  • diskblock

Explicação

Questão 31 de 48

1

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

Selecione uma das seguintes:

  • lock manager

  • scheduler

  • DBA

  • transaction log

Explicação

Questão 32 de 48

1

What is a consistent database?

Selecione uma das seguintes:

  • 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

Explicação

Questão 33 de 48

1

A transaction acquires a ____ prior to data access.

Selecione uma das seguintes:

  • grain

  • timestamp

  • lock

  • key

Explicação

Questão 34 de 48

1

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

Selecione uma das seguintes:

  • commit

  • write

  • input

  • output

Explicação

Questão 35 de 48

1

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

Selecione uma das seguintes:

  • scheduled

  • table-locking

  • unique

  • time-stamping

Explicação

Questão 36 de 48

1

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

Selecione uma das seguintes:

  • scheduler

  • DBMS

  • transaction log

  • DBA

Explicação

Questão 37 de 48

1

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

Selecione uma das seguintes:

  • integrity constraints

  • business rules

  • lock-level transactions

  • stored procedures

Explicação

Questão 38 de 48

1

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

Selecione uma das seguintes:

  • serializability and durability

  • atomicity and isolation

  • serializability and isolation

  • atomicity and serializability

Explicação

Questão 39 de 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.

Selecione uma das seguintes:

  • data dictionary

  • metadata

  • rollback manager

  • transaction log

Explicação

Questão 40 de 48

1

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

Selecione uma das seguintes:

  • The type of operation performed

  • A record for the beginning of a transaction

  • The name of the table

  • The number of affected records

Explicação

Questão 41 de 48

1

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

Selecione uma das seguintes:

  • Lost updates

  • Disk failures

  • User errors

  • Deadlocks

Explicação

Questão 42 de 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.

Selecione uma das seguintes:

  • lost updates

  • uncommitted data

  • transaction failure

  • inconsistent retrieval

Explicação

Questão 43 de 48

1

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

Selecione uma das seguintes:

  • Lost updates

  • Uncommitted data

  • Transaction failures

  • Inconsistent retrievals

Explicação

Questão 44 de 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.

Selecione uma das seguintes:

  • shared

  • common

  • unrelated

  • locked

Explicação

Questão 45 de 48

1

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

Selecione uma das seguintes:

  • durability

  • isolation

  • atomicity

  • serializability

Explicação

Questão 46 de 48

1

What is the most restrictive lock granularity?

Selecione uma das seguintes:

  • Database

  • Table

  • Page

  • Row

Explicação

Questão 47 de 48

1

Which lock granularity has the highest overhead?

Selecione uma das seguintes:

  • Database

  • Table

  • Row

  • Field

Explicação

Questão 48 de 48

1

A ____ lock has only two states.

Selecione uma das seguintes:

  • shared

  • binary

  • database

  • row-level

Explicação