C192 Transaction Management

Description

C192 Practice Test
Craig Willey
Quiz by Craig Willey, updated more than 1 year ago
Craig Willey
Created by Craig Willey over 4 years ago
403
0

Resource summary

Question 1

Question
All transaction properties must display ____
Answer
  • atomicity, serializability, and durability
  • durability and isolation
  • serializability, durability, and isolation
  • atomicity, durability, serializability, and isolation

Question 2

Question
A ____ lock prevents the use of any tables in the database from one transaction while another transaction is being processed
Answer
  • database-level
  • table-level
  • page-level
  • row-level

Question 3

Question
A ____ lock locks the entire table preventing access to any row by a transaction while another transaction is using the table.
Answer
  • database-level
  • table-level
  • page-level
  • row-level

Question 4

Question
A ____ lock locks the entire diskpage.
Answer
  • transaction-level
  • table-level
  • page-level
  • row-level

Question 5

Question
A ____ lock allows concurrent transactions to access different rows of the same table.
Answer
  • database-level
  • table-level
  • page-level
  • row-level

Question 6

Question
A(n) ____ lock has only two stages (0 & 1).
Answer
  • shared
  • exclusive
  • binary
  • two-phase

Question 7

Question
A(n) ____ specifically reserves access to the transaction that locked the object.
Answer
  • shared lock
  • exclusive lock
  • binary lock
  • deadlock

Question 8

Question
A(n) ____ lock exists when concurrent transactions are granted read access on the basis of a common lock.
Answer
  • shared
  • exclusive
  • binary
  • two-phase

Question 9

Question
A(n) ____ lock defines how transactions acquire and relinquish locks.
Answer
  • shared
  • exclusive
  • binary
  • two-phase

Question 10

Question
A(n) ____ condition occurs when two transactions wait for each other to unlock data.
Answer
  • deadlock
  • exclusive lock
  • binary lock
  • two-phase lock

Question 11

Question
Which of the following rules applies to the two-phase locking protocol?
Answer
  • 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.

Question 12

Question
____ control is the management of concurrent transaction execution.
Answer
  • Concurrency
  • Lock
  • Transaction
  • Database

Question 13

Question
The most common algorithms for concurrency control are locks, ____ stamping, and optimistic methods.
Answer
  • date
  • time
  • hour
  • minute

Question 14

Question
____ requires that all operations of a transaction be completed.
Answer
  • Specificity
  • Atomicity
  • Durability
  • Time stamping

Question 15

Question
____ means that data used during the execution of a transaction cannot be used by a second transaction until the first one is completed.
Answer
  • Serializability
  • Atomicity
  • Isolation
  • Time stamping

Question 16

Question
When you read from and/or write to a database, you have created a(n) ____.
Answer
  • transaction
  • back up
  • update
  • queue

Question 17

Question
A transaction is a ____ unit of work that must be either entirely completed or aborted.
Answer
  • timed
  • practical
  • logical
  • physical

Question 18

Question
The ANSI has defined standards that govern SQL database transactions. Transaction support is provided by two SQL statements: ____ and ROLLBACK.
Answer
  • RETRIEVE
  • ASSIGN
  • UPDATE
  • COMMIT

Question 19

Question
The ____ establishes the order in which the operations within concurrent transactions are executed.
Answer
  • transaction log
  • timer
  • lock manager
  • scheduler

Question 20

Question
The ____ manager is responsible for assigning and policing the locks used by the transactions.
Answer
  • transaction
  • database
  • lock
  • schedule

Question 21

Question
Lock ____ indicates the level of lock use.
Answer
  • granularity
  • shrinking
  • growing
  • serializability

Question 22

Question
During the ____ phase, the transaction scans the database, executes the needed computations, and makes the updates to a private copy of the database values.
Answer
  • read
  • validation
  • write
  • shared

Question 23

Question
During the ____ phase, the changes are permanently applied to the database.
Answer
  • read
  • validation
  • write
  • shared

Question 24

Question
During the ____ phase, the changes are permanently applied to the database.
Answer
  • read
  • validation
  • write
  • shared

Question 25

Question
A(n) ____ backup of the data is when only the last modifications done to the database are copied.
Answer
  • differential
  • complete
  • partial
  • incomplete

Question 26

Question
A transaction that changes the contents of the database must alter the database from one ____ state to another.
Answer
  • consistent
  • dependent
  • independent
  • inconsistent

Question 27

Question
When is the implicit beginning of a transaction?
Answer
  • 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

Question 28

Question
A(n) ____ phase in a two-phase lock is when a transaction releases all locks and cannot obtain any new lock.
Answer
  • growing
  • shrinking
  • locking
  • unlocking

Question 29

Question
The ____ approach is based on the assumption that the majority of the database operations do not conflict.
Answer
  • default
  • basic
  • scheduled
  • optimistic

Question 30

Question
A diskpage, or page, is the equivalent of a ____.
Answer
  • database table
  • disk sector
  • database schema
  • diskblock

Question 31

Question
The ____ is responsible for assigning and policing the locks used by the transactions.
Answer
  • lock manager
  • scheduler
  • DBA
  • transaction log

Question 32

Question
What is a consistent database?
Answer
  • 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

Question 33

Question
A transaction acquires a ____ prior to data access.
Answer
  • grain
  • timestamp
  • lock
  • key

Question 34

Question
Changes are permanently applied to the database during the ____ phase of a transaction.
Answer
  • commit
  • write
  • input
  • output

Question 35

Question
The ____ approach to scheduling concurrent transactions assigns a global unique stamp to each transaction.
Answer
  • scheduled
  • table-locking
  • unique
  • time-stamping

Question 36

Question
All transactions are controlled and executed by the ____ to guarantee database integrity.
Answer
  • scheduler
  • DBMS
  • transaction log
  • DBA

Question 37

Question
You can define ____ to help the DBMS ensure that the database remains in a consistent state.
Answer
  • integrity constraints
  • business rules
  • lock-level transactions
  • stored procedures

Question 38

Question
By its nature, a single-user database system automatically ensures ____ of the database, because only one transaction is executed at a time.
Answer
  • serializability and durability
  • atomicity and isolation
  • serializability and isolation
  • atomicity and serializability

Question 39

Question
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.
Answer
  • data dictionary
  • metadata
  • rollback manager
  • transaction log

Question 40

Question
Which of the following is NOT stored in the transaction log?
Answer
  • The type of operation performed
  • A record for the beginning of a transaction
  • The name of the table
  • The number of affected records

Question 41

Question
What is one of the three most common data integrity and consistency problems?
Answer
  • Lost updates
  • Disk failures
  • User errors
  • Deadlocks

Question 42

Question
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.
Answer
  • lost updates
  • uncommitted data
  • transaction failure
  • inconsistent retrieval

Question 43

Question
____ occur when a transaction calculates some summary (aggregate) functions over a set of data while other transactions are updating the data.
Answer
  • Lost updates
  • Uncommitted data
  • Transaction failures
  • Inconsistent retrievals

Question 44

Question
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.
Answer
  • shared
  • common
  • unrelated
  • locked

Question 45

Question
The scheduler facilitates data ____ to ensure that two transactions do not update the same data element at the same time.
Answer
  • durability
  • isolation
  • atomicity
  • serializability

Question 46

Question
What is the most restrictive lock granularity?
Answer
  • Database
  • Table
  • Page
  • Row

Question 47

Question
Which lock granularity has the highest overhead?
Answer
  • Database
  • Table
  • Row
  • Field

Question 48

Question
A ____ lock has only two states.
Answer
  • shared
  • binary
  • database
  • row-level
Show full summary Hide full summary

Similar

Data Types
Jacob Sedore
Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr