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
  1. ETL tool

  2. Reporting tool

  3. Debugging tool

  4. db tool

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Surrogate Key

  2. Primary Key

  3. Composite Key

  4. Foreign key

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. TYPE 3

  2. TYPE 2

  3. TYPE 1

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology mainframe
  1. Database

  2. Functional

  3. Attribute

  4. Descriptive

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology mainframe
  1. PRC

  2. DRV

  3. DTE

  4. ATR

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. stack variables and other info

  2. session's variables and arrays

  3. session info stored in PGA

  4. binding variables and runtime buffers

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. Task Center

  2. Command Editor

  3. Design Advisor

  4. Command Line Processor

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. DB2 Express Edition

  2. DB2 Personal Edition

  3. DB2 Workgroup Server Edition

  4. DB2 Enterprise Server Edition

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. SERVER

  2. SERVER_ENCRYPT

  3. CLIENT

  4. DCS

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. Sequence

  2. View

  3. Trigger

  4. Schema

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. Routine

  2. Function

  3. Procedure

  4. Trigger

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. NUMBER

  2. INTERVAL

  3. NUM

  4. BYTE

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. SMALLINT

  2. INTEGER

  3. DOUBLE

  4. NUMERIC

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology databases
  1. Explain

  2. Xpeditor

  3. Alchemist

  4. Abendaid

Reveal answer Fill a bubble to check yourself
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.