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. Is an executable module containing access path logic provided by the DB2 optimiser

  2. In an non executable module containing access path logic provide by the DB2 optimiser

  3. Is just a module containing access path to DB2 optimiser

  4. Is a module containing access path

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

A Plan in DB2 is an executable module containing the access path logic determined by the DB2 optimizer. When you bind a plan, DB2 generates optimized access paths for SQL statements, which are stored in the plan and executed at runtime.

Multiple choice technology databases
  1. SQL Communications Area

  2. SQL Control Area

  3. SQL Connection Area

  4. SQL Control Access

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

SQLCA (SQL Communications Area) is a data structure in DB2 that holds status information from SQL execution, including error codes, warnings, and flags. It's automatically populated after each SQL statement runs.

Multiple choice technology platforms and products
  1. Writes the job’s OSH script to the job log

  2. Automatically sets all environmental variables

  3. Graceful shutdown of datastage engine

  4. Provides a snapshot of a job’s performance

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

The DataStage JobMon daemon collects and provides real-time monitoring and performance snapshots of running jobs.

Multiple choice technology mainframe
  1. simple, hard, partitioned, unpartitioned

  2. partitioned, simple, lob, unpartitioned

  3. simple, lob, partitioned, segmented

  4. segmented, lob, hard, simple

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

DB2 supports simple, segmented, partitioned, and LOB (Large Object) tablespaces, making this combination the correct classification.

Multiple choice technology mainframe
  1. It contains only numeric data

  2. It contains only character data

  3. It contains data like image, voice and doc’s.

  4. None of these

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

Auxiliary tables store large object (LOB) data types - images, audio, video, and documents - separately from the main table. The main table contains pointers/locators to the auxiliary table which holds the actual binary data.

Multiple choice technology mainframe
  1. Precompile

  2. Package

  3. Bind

  4. Plan

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

The BIND step analyzes static SQL statements, determines the most efficient access paths to the data, and stores this information in a plan or package. Precompile simply converts SQL to calls, while plan and package are the outputs of bind. BIND is the optimization phase.

Multiple choice technology mainframe
  1. Can contain only one table but rows from different tables are mixed

  2. Can contain only one table but rows from different tables are not mixed

  3. Can contain more than one table but rows from different tables are mixed

  4. None of these

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

In segmented table spaces, each segment contains pages from ONLY ONE table, and rows from different tables are NOT mixed within a segment. Segments are dedicated to single tables for better performance and organization. Options A and B incorrectly describe the mixing behavior, while C incorrectly claims multiple tables per segment.

Multiple choice technology mainframe
  1. DCLGEN

  2. SQLCA

  3. SQLSTATE

  4. SQLCODE

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

DCLGEN (Declaration Generator) is the DB2 utility that generates COBOL data structure declarations for database tables, enabling COBOL programs to interface with DB2 tables. SQLCA, SQLSTATE, and SQLCODE are communication areas and status codes used after SQL execution, not declaration utilities.

Multiple choice technology databases
  1. WORK TABLE

  2. LOG TABLE

  3. UV TABLE

  4. ERROR TABLE

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

During load processing in ETL tools (particularly Teradata utilities), checkpoint information is stored in log tables to track progress and enable restartability. Log tables record successful checkpoint markers, while error tables capture failed records and work tables store intermediate data.

Multiple choice technology databases
  1. True

  2. False

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

In a PPI (Partitioned Primary Index) table, data distribution across AMPs is determined by the primary index hash value, not by partition definitions. Partitions control how data is physically stored within each AMP and affect query elimination, but distribution uses the standard primary index mechanism.