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
-
doest not allow database migration
-
allow programmers to store objects directly into databse
-
does not require build time processing such as byte code manipulation
-
has a built in support of transaction management
-
ETL tool
-
Reporting tool
-
Debugging tool
-
db tool
A
Correct answer
Explanation
Informatica PowerCenter is an ETL (Extract, Transform, Load) tool. It is specifically designed for data integration - extracting data from various sources, transforming it according to business rules, and loading it into target systems. It is not a reporting tool, debugging tool, or database tool - its primary purpose is ETL and data integration.
-
Surrogate Key
-
Primary Key
-
Composite Key
-
Foreign key
A
Correct answer
Explanation
A surrogate key is a system-generated unique identifier that exists independently of any source or natural key. Unlike natural keys which may be composite, change over time, or have business meaning, surrogate keys provide consistent, immutable identification for each dimension table row regardless of the data source.
-
TYPE 3
-
TYPE 2
-
TYPE 1
-
None of the above
B
Correct answer
Explanation
SCD Type 2 preserves complete history by creating a new dimension record for each change, maintaining both current and historical data with effective date columns. Type 1 overwrites old values (no history), Type 3 tracks limited history in separate columns, and Type 0 makes no changes at all.
-
Database
-
Functional
-
Attribute
-
Descriptive
B
Correct answer
Explanation
Functional fields in Synon are calculated at runtime based on defined formulas or expressions. Unlike database fields which store persistent data, functional fields derive their values dynamically when accessed. This makes them ideal for computed values that shouldn't be stored permanently. Database, Attribute, and Descriptive fields all store static data rather than calculating values at runtime.
D
Correct answer
Explanation
ATR (Attribute) is indeed a database field type in Synon that represents physical attributes stored in the database. Attribute fields define the structure and properties of database entities. PRC (Processing), DRV (Derived), and DTE (Date) are other field types, but ATR is the one specifically designed for database attribute definitions. Understanding field type taxonomy is fundamental in Synon development.
-
stack variables and other info
-
session's variables and arrays
-
session info stored in PGA
-
binding variables and runtime buffers
B
Correct answer
Explanation
The stack space in a PGA (Program Global Area) holds the session's variables and arrays that are local to the session. This memory area is allocated per session and maintains session-specific data structures and runtime information. Option A is too vague, Option C is circular, and Option D describes the cursor area (UGA) which holds bind variables and runtime buffers, not the stack space specifically.
-
Task Center
-
Command Editor
-
Design Advisor
-
Command Line Processor
B
Correct answer
Explanation
DB2's Command Editor provides the capability to execute SQL statements and view graphical representations of access plans (also called explain plans or visual explain). This feature helps developers and DBAs understand how DB2 will execute their queries, including index usage and join methods. Task Center is for scheduling tasks, Design Advisor suggests optimizations, and CLP is command-line only.
-
DB2 Express Edition
-
DB2 Personal Edition
-
DB2 Workgroup Server Edition
-
DB2 Enterprise Server Edition
C
Correct answer
Explanation
For AIX servers in the DB2 product family, Workgroup Server Edition is positioned as the lowest-cost legally installable option. Express Edition is typically for smaller deployments or different platforms, Personal Edition is for single-user desktop scenarios, and Enterprise Server Edition includes premium features at higher cost. Workgroup Server Edition provides the minimal server-grade licensing for AIX.
-
SERVER
-
SERVER_ENCRYPT
-
CLIENT
-
DCS
D
Correct answer
Explanation
DB2 9 supports multiple authentication methods including SERVER (plaintext passwords), SERVER_ENCRYPT (encrypted passwords), and CLIENT (client-side authentication). DCS (Database Connection Services) is not an authentication method - it's a DRDA connectivity feature for connecting to other DRDA-compliant databases. Therefore, DCS is the correct answer as it's NOT a valid authentication type.
-
Sequence
-
View
-
Trigger
-
Schema
B
Correct answer
Explanation
In DB2, an alias is an alternate name that can be defined for a table or a view, allowing users to reference them without schema qualifiers. It cannot be created for triggers or schemas. Although sequences can have aliases in some versions, view is the primary standard option among the choices.
-
Routine
-
Function
-
Procedure
-
Trigger
D
Correct answer
Explanation
DB2 distinguishes between executable objects and event-driven objects. Routines, functions, and procedures are all executable using SQL statements like CALL or SELECT. However, triggers are not directly executed - they are defined to fire automatically when specific events (INSERT, UPDATE, DELETE) occur on a table. You cannot explicitly invoke a trigger with a SQL statement; it responds to data modification events. This is a fundamental architectural difference in how these objects operate.
C
Correct answer
Explanation
DB2 supports various built-in data types for different data storage needs. NUM is indeed a valid DB2 data type and serves as a synonym for NUMERIC, which stores exact numeric values with specified precision and scale. The other options are incorrect: NUMBER is an Oracle data type not used in DB2, INTERVAL is used for datetime arithmetic rather than being a standalone column type, and BYTE is not a standard DB2 data type. Understanding valid data types is crucial for proper database schema design.
-
SMALLINT
-
INTEGER
-
DOUBLE
-
NUMERIC
C
Correct answer
Explanation
Identity columns in DB2 automatically generate unique numeric values, typically used as primary keys. They require data types that guarantee consistent, predictable sequential values. SMALLINT, INTEGER, and NUMERIC are all exact numeric types suitable for identity columns. However, DOUBLE is a floating-point type that cannot guarantee precise sequential values due to rounding errors inherent in floating-point arithmetic. DB2 explicitly prohibits using approximate numeric types like DOUBLE, REAL, or FLOAT for identity columns to maintain data integrity and ensure reliable unique value generation.
-
Explain
-
Xpeditor
-
Alchemist
-
Abendaid
A
Correct answer
Explanation
The EXPLAIN statement or utility is used to capture and analyze the access paths chosen by the DB2 optimizer for executing SQL queries, which is vital for performance tuning. Other options like Xpediter, Alchemist, and Abend-AID are debugging, configuration management, or dump analysis tools instead.