You are on page 1of 2

Which of the following occurs if an application ends abnormally during an active unit of work?

(Select the correct response)


A. Current unit of work is committed
B. Current unit of work is rolled back
C. Current unit of work remains active
D. Current unit of work moves to pending state
Which of the following describes why savepoints are NOT allowed inside an atomic unit of work?
(Select the correct response)
A. Atomic units of work span multiple databases, but savepoints are limited to units of work which operate on a single
database.
B. A savepoint implies that a subset of the work may be allowed to succeed, while atomic operations must succeed or fail
as a unit.
C. A savepoint requires an explicit commit to be released, and commit statements are not allowed in atomic operations
such as compound SQL.
D. A savepoint cannot be created without an active connection to a database, but atomic operations can contain a
CONNECT as a sub-statement.
Given an application bound with cursor stability which will be updating rows in a table and obtaining row locks, which of
the following table locks will DB2 acquire for the application first?
(Select the correct response)
A. U - update
B. X - exclusive
C. IU - intent update
D. IX - intent exclusive
For which of the following database objects can locks be obtained?
(Select the correct response)
A. View
B. Table
C. Trigger
D. Buffer Pool
Which of the following types of DB2 locks allows for the most concurrency within a table?
(Select the correct response)
A. A row lock
B. A page lock
C. A field lock
D. A column lock
Which of the following DB2 UDB isolation levels will NOT lock any rows during read processing?
(Select the correct response)
A. Read Stability
B. Repeatable Read
C. Uncommited Read
D. Cursor Stability
Which of the following processing can occur for a unit of work using an isolation level of Read Stability and scanning
through the table more than once within the unit of work?
(Select the correct response)
A. Access uncommitted changes made by other processes
B. Update uncommitted changes made by other processes
C. Rows added to a result set by other processes from one scan to the next
D. Rows changed in a result set by other processes from one scan to the next
Given the following: A table containing a list of all seats on an airplane. A seat consists of a seat number and whether or
not it is assigned. An airline agent lists all the unassigned seats on the plane. When the agent refreshes the list from the
table, the list should not change. Which of the following isolation levels should be used for this application? (Select the
correct response)

A. Read stability
B. Repeatable read
C. Cursor stability
D. Uncommitted read

Given the following:


A table containing a list of all seats on an airplane. A seat consists of a seat number and whether or not it is assigned. An
airline agent lists all the unassigned seats on the plane. When the agent refreshes the list from the table, it should only
change if another agent unassigns a currently assigned seat.
Which of the following isolation levels should be used for this application?
(Select the correct response)

A. Read stability
B. Repeatable read
C. Cursor stability
D. Uncommitted read
Which of the following processing can occur for a unit of work using an isolation level of Cursor Stability and allows
scanning through the table more than once within the unit of work?
(Select the correct response)

A. Access uncommitted changes made by other processes


B. Update uncommitted changes made by other processes
C. Have updated result set rows changed by other processes from one scan to the next
D. Have accessed result set rows changed by other processes from one scan to the next
Which of the following isolation levels will lock only the rows returned in the result set?
(Select the correct response)

A. Read Stability
B. Repeatable Read
C. Cursor Stability
D. Uncommitted Read
For which of the following can locks be obtained?
(Select the correct response)

A. A trigger
B. A table view
C. A table column
D. A database buffer
E. A row referenced by an index key
Which two of the following modes can be used on the lock table statement?
(Select all that apply)

A. SHARE MODE
B. EXCLUSIVE MODE
C. REPEATABLE READ MODE
D. UNCOMMITTED READ MODE
E. INTENT EXCLUSIVE MODE

You might also like