01. Users of an order-entry application report that certain updates intermittently hang for several seconds before completing. A DBA suspects lock contention. Using the monitoring interface, which information most directly confirms that applications are being delayed by lock waits and helps identify the blocking situation?
a) The accumulated lock-wait time and lock-wait counts per application, plus which application holds the lock others wait on.
b) The buffer pool hit ratio measured for the system temporary table space during the reporting interval.
c) The total number of rows read across the entire database since activation, regardless of which application performed each read.
d) The number of sort operations that overflowed to disk during the current reporting period across all connected applications.
02. After an unexpected power loss, a Db2 instance is restarted and the database automatically replays committed work and backs out uncommitted work from its logs, returning to a transactionally consistent state without any DBA-issued restore. A DBA is classifying which type of recovery just occurred, as distinct from version recovery and rollforward recovery. Which classification is correct?
a) This is version recovery, because the database was returned to a previously backed-up version of itself that was restored from a stored backup image.
b) This is crash recovery, the automatic process at activation that uses the logs to redo committed and undo uncommitted transactions after an abnormal termination.
c) This is rollforward recovery, because retained archived log records were deliberately applied by the DBA to move the restored database forward to a chosen point in time.
d) This is disaster recovery, because the outage was caused by an external hardware power event rather than by any kind of internal software or transaction fault.
03. Before promoting changes from a development Db2 LUW database to a new test database, a DBA needs to reproduce the definitions of tables, indexes, views, and other objects, and optionally capture the statistics so the test optimizer behaves like development. The DBA does not need to copy the actual row data with this step. Which utility is designed for this purpose?
a) db2move, which is specifically designed to extract object DDL and statistics without moving any data.
b) EXPORT, which is the standard way to reproduce object DDL and statistics in another database.
c) LOAD, which recreates table and index definitions in the target database from a control file.
d) db2look, which extracts object DDL and can also generate statements to reproduce statistics.
04. While reviewing runtime resource usage, a DBA notes that some queries spill large sorts and hash joins to disk. The DBA wants to confirm which kind of temporary table space the database engine itself uses to hold these transient internal results during such operations. Which statement correctly distinguishes the temporary table space types?
a) System temporary table spaces store permanent catalog data, while user temporary table spaces hold the engine's internal sort overflow
b) System temporary table spaces hold transient data for sorts and joins, while user temporary table spaces hold declared or created temporary tables
c) User temporary table spaces hold the engine's internal sort and join overflow, while system temporary table spaces hold user-declared temporary tables
d) Both the engine's sort overflow and declared temporary tables are stored only in regular, non-temporary table spaces alongside persistent data
05. Working in the Db2 command line processor, a DBA needs to run an instance-level administrative task that operates on the database manager rather than on the data inside any one database. A colleague suggests issuing CONNECT first. What is the correct distinction between ATTACH and CONNECT, and which is needed here?
a) ATTACH establishes a context to an instance for instance-level operations, while CONNECT targets a database for its data; this task needs ATTACH
b) ATTACH and CONNECT are effectively interchangeable, so either command establishes the instance-manager context this administrative task requires
c) ATTACH connects to a database for running SQL statements, while CONNECT targets the operating system host; this task needs CONNECT
d) CONNECT establishes the instance-manager context and ATTACH establishes the database context; this task therefore needs CONNECT
06. The primary server of an HADR pair has failed and is unreachable. The standby is healthy and the business needs it to begin serving applications immediately, accepting that the most recent transactions not yet received by the standby may be lost. Which action fits this situation, and what is its consequence?
a) Deactivate the standby and restore the latest full backup image onto it instead, on the basis that any kind of takeover simply cannot be used while the primary is unreachable.
b) Perform a planned (non-forced) takeover from the standby, which cleanly switches roles with the still-running primary and is claimed to guarantee that absolutely no transaction loss can occur.
c) Wait until the old primary is fully repaired and back online, then perform a planned takeover, on the basis that a forced takeover is never permitted at any time while the old primary is down.
d) Perform a takeover by force on the standby, which promotes it to primary without coordinating with the unreachable old primary, risking loss of transactions the standby had not yet received.
07. A government agency classifies data with hierarchical sensitivity levels (for example, public, confidential, secret) and needs to compare each user's security clearance against a security label attached to individual rows so that access is permitted only when the user's label dominates the row's label. Which Db2 LUW capability is specifically built around security labels and label components for this kind of multi-level classification?
a) SERVER_ENCRYPT authentication, which is said to classify each user by their clearance level during the login handshake.
b) The audit facility, which records every access attempt to a trail so that any classification violations can be reviewed afterward.
c) Label-Based Access Control (LBAC), which compares a user's security label with the label protecting the data.
d) Standard table privileges granted to a database role that has been created to represent each separate clearance level.
08. In an OLTP database, a frequently run read query intermittently stalls because the rows it needs are being modified by long write transactions. The DBA wants readers to obtain a consistent committed value without being blocked by the writers and without resorting to reading uncommitted data. Which Db2 LUW capability is designed to provide exactly this behavior?
a) Currently committed semantics, which let a reader use the last committed version of a row instead of waiting for a writer
b) The LOCKTIMEOUT setting, which cancels the reader's lock request after a delay so that it can retry the query later
c) Lock escalation, which converts many small row locks into fewer larger table locks so that readers can run faster
d) Uncommitted Read isolation, which lets the reader immediately see the writer's pending, not-yet-committed changes
09. On a live, actively used database a DBA must add a new nullable column to a busy table during business hours. The team is concerned about how much disruption the ALTER TABLE will cause to concurrent applications. Which operational consideration is the most accurate for planning this change?
a) Adding the column never interacts with locking at all and is guaranteed to complete instantly regardless of any concurrent activity
b) Adding the column automatically forces off every connected application beforehand so that the change is always able to complete
c) Adding the column will briefly need an exclusive lock on the table, so it can be blocked by, or block, concurrent transactions
d) Adding the column requires taking the entire database offline first, because all DDL needs exclusive access to the whole instance
10. Following a compliance finding, a DBA must produce a durable, tamper-resistant trail of security-relevant events such as authorization checks, grant and revoke operations, and successful and failed connection attempts, so that auditors can later review who attempted which actions. Which Db2 LUW facility is intended to capture this kind of activity?
a) The db2diag log, which records diagnostic messages about internal engine errors, warnings, and other events.
b) Transaction logs, which record committed and uncommitted data changes so the database can be recovered.
c) Snapshot and event monitors, which capture performance and operational metrics used for database tuning.
d) The Db2 audit facility (db2audit), which records security-relevant events to an audit trail.