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
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.
-
AMP bucket number
-
Primary Index
-
Primary Key
-
None of the above
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.
B
Correct answer
Explanation
The Parsing Engine (PE) handles session management, SQL parsing, and optimization. It's the entry point for client connections. AMPs manage data storage, BYNET handles communication, and Clique is a high-availability grouping of nodes.
-
Row hash
-
Row id
-
Hash map
-
Hash value
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.
-
It permits successful rollback to the last archive
-
After the transaction is committed, the Before Images are discarded
-
Transient Journal operation is automatic
-
Before Images are kept until manually purged
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.
B
Correct answer
Explanation
.NET Framework 2.0 did release with Visual Studio 2005 and SQL Server 2005, but there was no BizTalk 2005. The BizTalk Server versions were 2004 and 2006, making the statement false.
-
Fastload
-
Multiload
-
Tpump
-
Bteq
C
Correct answer
Explanation
Tpump is designed for real-time, continuous data updates with minimal impact on system performance. Fastload loads data into empty tables only, Multiload handles batch operations, and BTEQ is primarily a query utility.
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.
-
Creates an output map to aid in redistributing data
-
Data distribution is automatic
-
Creates a reconfig map to help the DBA repartition data
-
None of the above
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.
-
The uniqueness value is a component of the row hash value.
-
In a table that has a NUPI, all rows with the same NUPI value are distributed to the same AMP.
-
Two Primary Index values that hash to the same row hash value are called hash synonyms.
-
The output of the hashing algorithm is called the hash map
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.
A
Correct answer
Explanation
Each AMP is associated with exactly one VDisk, which provides the physical storage for that AMP's data portion. This one-to-one relationship is fundamental to Teradata architecture.
-
Fastload
-
Multiload
-
BTEQ
-
TPump
-
Teradata warehouse builder
B,C,E
Correct answer
Explanation
Multiload, BTEQ, and Teradata Warehouse Builder support both data export and import operations. Fastload is import-only for empty tables, and TPump is designed for continuous loading.
-
Can populate Single table
-
Can load populated tables
-
Tables with SI and referential integrity can be loaded
-
Very fast if target table is empty
-
Table loaded can be accesed while fastload runs.
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.
-
BTEQ
-
TPUMP
-
FASTEXPORT
-
MULTILOAD
B
Correct answer
Explanation
TPUMP (Teradata Parallel Data Pump) is designed for continuous, near-real-time updates and handles frequent, low-volume insert, update, and delete operations with minimal locking.
-
System tablespace
-
Users tablespace
-
Default tablespace for the user
-
Undefined
C
Correct answer
Explanation
If a user creates a database object (like a table) without specifying a TABLESPACE clause, Oracle automatically stores the segment in the default tablespace assigned to that user.