Computer Knowledge

Database Management Systems

5,344 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
  1. System Concatenate Data

  2. System Combined Data

  3. Slowly Changing Dimension

  4. None of the above

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

SCD stands for Slowly Changing Dimension - a dimension in a data warehouse that evolves over time but not with every transaction. Common examples include customer address changes, product price updates, or employee role changes. Different SCD types (1-6) handle these changes differently: Type 1 overwrites old values, Type 2 maintains history with effective dates, Type 3 adds new columns for previous values, and so on.

Multiple choice technology
  1. Same

  2. Entire

  3. Hash By Key

  4. DB2

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

Same partitioning means data maintains its existing partition arrangement from the input link - no repartitioning occurs. This is efficient when data is already properly distributed. Entire would broadcast to all nodes, Hash uses key-based distribution, and DB2 uses DB2's algorithm.

Multiple choice technology
  1. Same

  2. Entire

  3. Hash By Key

  4. DB2

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

Entire partitioning sends every row to every partition/node. This is used when all nodes need complete data, such as creating reference lookup files or when every row must be processed everywhere. Same keeps existing partitions, Hash distributes by key, DB2 uses database partitioning.

Multiple choice technology
  1. Same

  2. Entire

  3. Hash By Key

  4. DB2

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

DB2 partitioning uses the same partitioning algorithm as IBM DB2 database, allowing DataStage to align with DB2's data distribution. This is useful when data comes from or goes to DB2 tables. Same maintains partitions, Entire broadcasts all rows, Hash uses hash function.

Multiple choice technology
  1. True

  2. False

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

Database stages (Oracle, DB2, etc.) in DataStage are used for reading from or writing to database tables as sources or targets. They are not used as intermediate stages for data passing within a job. For intermediate data processing, use transformer stages, aggregators, or other processing stages.

Multiple choice technology
  1. Join stage

  2. Merge stage

  3. Look up stage

  4. None of the above

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

The Lookup stage can combine data from heterogeneous sources including databases like DB2 or Oracle with sequential files. It performs reference lookups by matching key fields between the main input stream and reference data sources. Join stages require homogeneous inputs, and Merge stages only combine sorted datasets.

Multiple choice technology databases
  1. Read Uncommitted

  2. Read Committed

  3. Repeatable Read

  4. Snapshot

  5. Serializable

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

The Read Uncommitted isolation level does not issue shared locks and does not honor exclusive locks, allowing transactions to read data that has been modified by other transactions but not yet committed (dirty reads).

Multiple choice technology databases
  1. True

  2. False

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

DBCC CHECKDB is a comprehensive command that performs database validation including checks done by DBCC CHECKALLOC (allocation structure validation), CHECKTABLE, and CHECKCATALOG. Running CHECKDB already includes allocation checks, so running CHECKALLOC separately is redundant. CHECKDB is the all-in-one integrity check command for production databases.

Multiple choice technology databases
  1. 1 GB

  2. 1024 KB

  3. 2 GB

  4. 500 MB

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

The XML data type in SQL Server 2005 can store up to 2 GB per instance, matching the maximum size for LOB types (varchar(max), nvarchar(max), varbinary(max)). This 2 GB limit applies to the XML document stored in the column. XML data is stored in an internal binary representation that preserves Unicode fidelity.

Multiple choice technology databases
  1. sp_who

  2. sys.dm_tran_locks

  3. @@lock_timeout

  4. sp_lock

  5. None of the above

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

sp_lock is a legacy system stored procedure that returns information about locks. However, it has been deprecated since SQL Server 2005, and the recommended approach is to use the sys.dm_tran_locks DMV, which provides more detailed and current lock information.

Multiple choice technology architecture
  1. Complex Java coding

  2. Avoid SQL query

  3. Both of the above

  4. None of the above

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

Hibernate eliminates the need for complex JDBC code and direct SQL queries by providing object-oriented querying mechanisms like HQL and Criteria API. This simplifies data access and reduces boilerplate code while maintaining database independence.