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. 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. 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. 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.

Multiple choice technology mainframe
  1. created by the DB2 precompiler and used in the bind process

  2. created by the cobol pre compiler and used in the bind process

  3. created by the cobol compiler and used in the bind process

  4. created by the DB2 compiler and used in the bind process

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

A DBRM (Database Request Module) is created by the DB2 precompiler when it processes embedded SQL statements in application programs. The DBRM contains extracted SQL statements and is used in the bind process to create application plans. COBOL compilers don't create DBRMs - they compile the program logic.

Multiple choice technology web technology
  1. Data links

  2. Connection objects

  3. Both A) and B)

  4. None of the Above

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

In JDBC architecture, Connection objects represent the gateway to the database. They establish the communication channel and create Statement objects for executing queries. Data links (Option A) typically refers to specific linking mechanisms, not the general database gateway concept.

Multiple choice technology databases
  1. Simplifies code reuse, code standardization and code maintenance

  2. Controlled access to other database objects

  3. Improving application performance

  4. DB2 Stored Procedures can be written only in SQL.

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

Stored procedures simplify code management, provide controlled access to database objects, and improve performance by reducing network traffic. However, DB2 stored procedures can be written in multiple languages (SQL, Java, C, etc.), not just SQL - making statement D false.

Multiple choice technology databases
  1. Is used to obtain info about the previous executed sql statement

  2. Analyze the db2diag error messages

  3. Returns the user ID calling the stored proc

  4. Gives the access plan of the packages

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

GET DIAGNOSTICS is a SQL statement used to retrieve diagnostic information about the most recently executed SQL statement, including error codes, warnings, and exception conditions. It does not analyze db2diag logs, return user IDs, or provide access plans.