Computer Knowledge

Database Management Systems

5,543 Questions

Database Management Systems (DBMS) form the core framework for data storage, retrieval, and security in modern software applications. Concepts such as the E-R model, backup planning, SQL integration, and big data architecture are essential for computer knowledge sections. This hub offers a comprehensive set of practice questions to master DBMS fundamentals and advanced database operations.

E-R Model ConceptsBackup and RecoverySQL Server UpgradesJDBC and ODBCBig Data CharacteristicsData VirtualizationOracle Database

Database Management Systems Questions

Multiple choice technology databases
  1. The cursor is moved to another row

  2. The row the cursor is on is deleted by the application

  3. The row the cursor is on is deleted by another application

  4. The row the cursor is on needs to be updated by another application

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Under DB2's Cursor Stability isolation level, locks are held only on the row where the cursor is currently positioned. When the application deletes that row, the cursor no longer has a row to position on, so the lock is released. Moving the cursor to another row also releases the previous lock.

Multiple choice technology databases
  1. Uncommitted Read

  2. Cursor Stability

  3. Read Stability

  4. Repeatable Read

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Repeatable Read isolation level locks all rows that are scanned to build the result set, preventing phantom reads and ensuring that if the same query is executed again within the transaction, the same rows will be returned. Read Stability only locks individual rows as they are read, Cursor Stability locks only the current row position, and Uncommitted Read imposes minimal locking.

Multiple choice technology databases
  1. Backup purposes

  2. Storing intermediate results

  3. Staging area for load operations

  4. Sharing result data sets between applications

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Declared temporary tables (DGTTs) are private to a session and are primarily used to store intermediate query results during complex processing, automatically disappearing when the session terminates.

Multiple choice technology platforms and products
  1. COBOL Sources

  2. XML Sources

  3. Salesforce.com Sources

  4. Relational DB Sources

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Application Source Qualifier is specifically used with Salesforce.com sources in Informatica PowerCenter. For COBOL sources you use COBOL source definitions, for XML sources you use XML Source Qualifier, and for relational sources you use standard Source Qualifier.

Multiple choice technology platforms and products
  1. COBOL Sources

  2. XML Sources

  3. Salesforce.com Sources

  4. Relational DB Sources

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The Application Source Qualifier transformation is specifically used with external application sources like Salesforce.com to define the data extraction logic. It is not used for standard relational sources, COBOL sources, or XML sources which have their own appropriate qualifiers. Options A, B, and D use different source qualifier types specific to those source systems.

Multiple choice technology databases
  1. The cursor is moved to another row

  2. The row the cursor is on is deleted by the application

  3. The row the cursor is on is deleted by another application

  4. The row the cursor is on needs to be updated by another application

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Under Cursor Stability isolation level, a lock is held only while the cursor remains on the current row. When the application deletes that row, the lock must be released as the row no longer exists for the cursor to point to. Option A describes normal cursor movement, option C and D involve operations by other applications which would require different locking behaviors.

Multiple choice technology databases
  1. The cursor is moved to another row

  2. The row the cursor is on is deleted by the application

  3. The row the cursor is on is deleted by another application

  4. The row the cursor is on needs to be updated by another application

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Under the Cursor Stability (CS) isolation level, DB2 acquires a lock on the row currently positioned by the cursor. When the application deletes the row, the lock is held until a commit or rollback occurs to ensure transaction integrity.

Multiple choice technology databases
  1. Uncommitted Read

  2. Cursor Stability

  3. Read Stability

  4. Repeatable Read

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Repeatable Read (RR) isolation level locks all rows that are scanned to build the result set, preventing other transactions from modifying those rows. Uncommitted Read (UR) doesn't lock rows, Cursor Stability (CS) locks only the current row, and Read Stability (RS) locks only rows that are actually returned, not all scanned rows.

Multiple choice technology databases
  1. Uncommitted Read

  2. Cursor Stability

  3. Read Stability

  4. Repeatable Read

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Repeatable Read is the strictest standard isolation level that prevents phantom reads by locking all rows scanned during query execution. Unlike Read Stability (which locks only rows actually returned) or Cursor Stability (which locks only the current row), Repeatable Read locks the entire row set used to build the result. This ensures that if the same query is re-executed within the transaction, it returns identical results because no other transaction can modify, insert, or delete rows that would affect that result set.

Multiple choice technology databases
  1. Backup purposes

  2. Storing intermediate results

  3. Staging area for load operations

  4. Sharing result data sets between applications

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Declared temporary tables are specifically designed to store intermediate or transient results during complex processing operations. Unlike regular tables, they exist only for the duration of a session or transaction and are automatically dropped afterward. They are not meant for backup (use backup utilities), load staging (use external staging tables), or sharing between applications (use regular tables or shared schemas). Their purpose is to hold partial results during multi-step data transformations, complex calculations, or query processing.

Multiple choice technology platforms and products
  1. Staging tables

  2. Dimension Tables

  3. Fact Tables

  4. All of above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

OLAP (Online Analytical Processing) databases used for data warehousing contain multiple table types. Staging tables hold raw data before processing, Dimension tables store descriptive attributes (like time, geography, product), and Fact tables store quantitative metrics and foreign keys to dimensions. All three are fundamental components of a dimensional data warehouse. The star or snowflake schema architecture requires both fact and dimension tables, and staging tables are essential for the ETL loading process.

Multiple choice technology platforms and products
  1. Dimension is surrounded by Facts

  2. Fact is surrounded by Dimensions

  3. Dimension is surrounded by Dimensions

  4. All of above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A star schema is a dimensional database design where a central fact table (containing quantitative metrics and foreign keys) is directly connected to multiple dimension tables (containing descriptive attributes). The fact table is at the center 'surrounded by' dimension tables, creating a star-like pattern when visualized. Dimension tables are never at the center - they provide the context (who, what, where, when) for the metrics stored in the fact table. This design optimizes query performance for analytical queries.