C192 Transaction Management

Beschreibung

C192 Practice Test
Craig Willey
Quiz von Craig Willey, aktualisiert more than 1 year ago
Craig Willey
Erstellt von Craig Willey vor mehr als 4 Jahre
402
0

Zusammenfassung der Ressource

Frage 1

Frage
All transaction properties must display ____
Antworten
  • atomicity, serializability, and durability
  • durability and isolation
  • serializability, durability, and isolation
  • atomicity, durability, serializability, and isolation

Frage 2

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

Frage 3

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

Frage 4

Frage
A ____ lock locks the entire diskpage.
Antworten
  • transaction-level
  • table-level
  • page-level
  • row-level

Frage 5

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

Frage 6

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

Frage 7

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

Frage 8

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

Frage 9

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

Frage 10

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

Frage 11

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

Frage 12

Frage
____ control is the management of concurrent transaction execution.
Antworten
  • Concurrency
  • Lock
  • Transaction
  • Database

Frage 13

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

Frage 14

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

Frage 15

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

Frage 16

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

Frage 17

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

Frage 18

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

Frage 19

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

Frage 20

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

Frage 21

Frage
Lock ____ indicates the level of lock use.
Antworten
  • granularity
  • shrinking
  • growing
  • serializability

Frage 22

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

Frage 23

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

Frage 24

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

Frage 25

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

Frage 26

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

Frage 27

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

Frage 28

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

Frage 29

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

Frage 30

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

Frage 31

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

Frage 32

Frage
What is a consistent database?
Antworten
  • 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

Frage 33

Frage
A transaction acquires a ____ prior to data access.
Antworten
  • grain
  • timestamp
  • lock
  • key

Frage 34

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

Frage 35

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

Frage 36

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

Frage 37

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

Frage 38

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

Frage 39

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

Frage 40

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

Frage 41

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

Frage 42

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

Frage 43

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

Frage 44

Frage
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.
Antworten
  • shared
  • common
  • unrelated
  • locked

Frage 45

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

Frage 46

Frage
What is the most restrictive lock granularity?
Antworten
  • Database
  • Table
  • Page
  • Row

Frage 47

Frage
Which lock granularity has the highest overhead?
Antworten
  • Database
  • Table
  • Row
  • Field

Frage 48

Frage
A ____ lock has only two states.
Antworten
  • shared
  • binary
  • database
  • row-level
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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