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 databases
  1. True

  2. False

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

DB2 stored procedures can be debugged using the DB2 Debug Tool or similar debugging utilities. This allows developers to set breakpoints, step through code, inspect variables, and trace execution flow within stored procedures, making it easier to identify and fix logic errors.

Multiple choice technology databases
  1. AMP bucket number

  2. Primary Index

  3. Primary Key

  4. None of the above

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

Teradata uses the Primary Index (PI) to distribute data across AMPs. The PI value is hashed to determine which AMP will store each row. The Primary Key is a logical concept for uniqueness, while the PI is the physical distribution mechanism.

Multiple choice technology databases
  1. Row hash

  2. Row id

  3. Hash map

  4. Hash value

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

Each row is identified by its Row ID (RID), which uniquely combines the row hash, AMP number, and uniqueness value. While row hash is part of the ID, the complete identifier is called Row ID. Hash value alone isn't sufficient - multiple rows can have the same hash.

Multiple choice technology databases
  1. It permits successful rollback to the last archive

  2. After the transaction is committed, the Before Images are discarded

  3. Transient Journal operation is automatic

  4. Before Images are kept until manually purged

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

The Transient Journal in Teradata maintains before-images of rows during transactions. After commit, these before-images are automatically discarded (B is true). The journal operation itself is automatic and requires no manual intervention (C is true). A is false because rollback uses the transient journal, not archives. D is false because before-images are discarded automatically after commit.

Multiple choice technology databases
  1. AMP

  2. BYNET

  3. PE

  4. VDISK

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

In database architectures like Teradata, intermediate query results and spool files are typically stored in virtual disks, or VDISK. AMPs process the data, BYNET transports messages, and PEs parse queries, but VDISKs handle the temporary storage.

Multiple choice technology databases
  1. Creates an output map to aid in redistributing data

  2. Data distribution is automatic

  3. Creates a reconfig map to help the DBA repartition data

  4. None of the above

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

During system reconfiguration (adding/removing AMPs), Teradata creates a reconfiguration map that guides data redistribution. This map helps DBAs understand how data moves between AMPs.

Multiple choice technology databases
  1. The uniqueness value is a component of the row hash value.

  2. In a table that has a NUPI, all rows with the same NUPI value are distributed to the same AMP.

  3. Two Primary Index values that hash to the same row hash value are called hash synonyms.

  4. The output of the hashing algorithm is called the hash map

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

In Teradata, rows with the same Non-Unique Primary Index (NUPI) value generate the same row hash and are sent to the same AMP. Different values hashing to the same row hash are called hash synonyms.

Multiple choice technology databases
  1. Can populate Single table

  2. Can load populated tables

  3. Tables with SI and referential integrity can be loaded

  4. Very fast if target table is empty

  5. Table loaded can be accesed while fastload runs.

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

Teradata FastLoad is optimized to load large volumes of data into a single, empty target table. It cannot load populated tables or tables with secondary indexes (SI) or referential integrity.