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. Develop and debug an SQL stored procedure

  2. Develop and debug a user-defined data type

  3. Develop and debug a user-defined function

  4. Develop and run XML queries

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

The Developer Workbench supports developing, debugging, and deploying stored procedures, user-defined functions (UDFs), and XML queries. However, it does not support the development or debugging of user-defined data types (UDTs), which are typically managed via command-line DDL statements.

Multiple choice technology databases
  1. Historical information about tasks, database changes, messages, and notifications

  2. Information about licenses associated with each DB2 9 product installed on a particular system

  3. Graphical representations of data access plans chosen for SQL statements

  4. Warning and alarm thresholds for database indicators

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

The DB2 Journal provides a comprehensive historical log of administrative activities, tracking task executions, database modifications, system messages, and notification events. This allows administrators to review past operations and diagnose issues. License information is viewed through the License Center, graphical access plans through Visual Explain, and warning thresholds through the Health Monitor.

Multiple choice technology databases
  1. Granular transactions

  2. Current data

  3. Optimized for queries

  4. Frequent updates

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

To solve this question, the user needs to have an understanding of OLTP (Online Transaction Processing) databases and their characteristics.

Now, let's go through each option and explain why it is right or wrong:

A. Granular transactions: This is a characteristic of OLTP databases. OLTP databases are designed to handle small, granular transactions that involve the insertion, deletion, or modification of individual records in real-time.

B. Current data: This is also a characteristic of OLTP databases. OLTP databases are optimized for real-time data processing and are designed to handle the most up-to-date information.

C. Optimized for queries: This is NOT a characteristic of OLTP databases. OLTP databases are optimized for transaction processing, not for complex queries or data analysis.

D. Frequent updates: This is a characteristic of OLTP databases. OLTP databases are designed to handle frequent updates to individual records in real-time.

Therefore, the correct answer is:

The Answer is: C

Multiple choice technology databases
  1. Summarized queries that perform aggregations and joins

  2. Heterogeneous data sources

  3. Voluminous historical data

  4. Sub-second response time

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

Sub-second response times are characteristic of Online Transaction Processing (OLTP) systems rather than data warehouses. Data warehouses focus on complex analytical queries (OLAP) involving heavy aggregations and joins over massive volumes of historical, heterogeneous data, which typically require more processing time.

Multiple choice technology databases
  1. DB2 AVI Extender

  2. DB2 Text Extender

  3. DB2 XML Extender

  4. DB2 Spatial Extender

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

The DB2 XML Extender provides capabilities to store, retrieve, and shred XML documents in DB2 databases, enabling integration of XML data with traditional relational data structures. Shredding means decomposing XML documents into relational table columns. The AVI Extender handles multimedia files, Text Extender manages text search, and Spatial Extender processes geospatial data.

Multiple choice technology databases
  1. The DB2 Spatial Extender uses a latitude-longitude coordinate system; the DB2 Geodetic Extender uses a planar, x- and y-coordinate system

  2. The DB2 Geodetic Extender is used to describe points, lines, and polygons; the DB2 Spatial Extender is used to find area, endpoints, and intersects

  3. The DB2 Spatial Extender treats the world as a flat map; the DB2 Geodetic Extender treats the world as a round globe

  4. The DB2 Geodetic Extender can be used to manage information like the locations of office buildings or the size of a flood zone; the DB2 Spatial Extender can be used for calculations and visualizations in disciplines like military command/control and asset

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

The DB2 Spatial Extender uses a planar coordinate system treating the earth as a flat map with x-y coordinates, suitable for small-scale applications. The DB2 Geodetic Extender uses a spherical coordinate system treating the earth as a round globe with latitude-longitude, essential for accurate long-distance and global calculations. Option A reverses this distinction, while options B and D describe overlapping capabilities of both extenders.

Multiple choice technology databases
  1. A. Relational data is self-describing; XML data is not

  2. B. Relational data has inherent ordering; XML data does not

  3. C. Relational data must be tabular; XML data does not have to be tabular

  4. D. Relational data is comprised of entities; XML data is comprised of numbers, characters, and dates

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

Relational data MUST be organized in tabular format with rows and columns, adhering to a predefined schema. XML data is hierarchical and flexible, representing data as nested elements and attributes without requiring tabular structure. XML is actually MORE self-describing than relational data (A is wrong), XML preserves document order (B is wrong), and both can represent similar data types (D is not the major difference).

Multiple choice technology databases
  1. A. Relational data is self-describing; XML data is not

  2. B. Relational data has inherent ordering; XML data does not

  3. C. Relational data must be tabular; XML data does not have to be tabular

  4. D. Relational data is comprised of entities; XML data is comprised of numbers, characters, and dates

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

Relational databases strictly store data in a flat tabular format consisting of rows and columns. In contrast, XML data is hierarchical and semi-structured, which does not require a tabular layout. Distractors are incorrect because XML data is self-describing, while relational data is not.

Multiple choice technology databases
  1. DB2 Personal Edition

  2. DB2 Workgroup Server Edition

  3. DB2 Enterprise Server Edition

  4. DB2 Data Warehouse Edition

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

DB2 Workgroup Server Edition is designed for workgroup environments where it can initiate connections to other DB2 servers while having certain restrictions on accepting remote client requests compared to Enterprise Edition. Personal Edition is local-only with no remote capabilities, while Enterprise and Data Warehouse Editions have full client/server capabilities without such restrictions. Workgroup balances client connectivity with server accessibility limitations.

Multiple choice technology databases
  1. DB2 Enterprise Server Edition

  2. DB2 Personal Developer's Edition

  3. DB2 Universal Developer's Edition

  4. DB2 Universal Database Enterprise Edition and DB2 Connect Enterprise Edition

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

DB2 Universal Developer's Edition includes the tools and libraries needed to build applications that will access DB2 for z/OS databases. This edition provides the development SDK with connectivity support for mainframe databases.

Multiple choice technology databases
  1. Visual Explain

  2. Alert Center

  3. Journal

  4. Configuration Assistant

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

Visual Explain is the DB2 tool specifically designed to analyze and help optimize database access plans. While it primarily shows execution plans, it can also be used to catalog databases as part of the database setup and optimization workflow. The other options (Alert Center, Journal, Configuration Assistant) serve different purposes.

Multiple choice technology databases
  1. SQL Assist

  2. Control Center

  3. Command Editor

  4. Developer Workbench

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

Developer Workbench is the integrated development environment specifically designed for creating, debugging, and deploying DB2 routines including user-defined functions. It provides the debugging interface and development tools not available in Control Center, Command Editor, or SQL Assist.

Multiple choice technology databases
  1. Task Center

  2. Command Editor

  3. Developer Workbench

  4. Command Line Processor

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

Command Editor allows users to execute SQL statements and view the access plan through its visual explain feature. This combines SQL execution with graphical access plan representation in a single interface. Task Center manages scheduled tasks, Developer Workbench is for code development, and CLP is command-line only without graphical plans.

Multiple choice technology databases
  1. Backup and Recovery

  2. Transactions

  3. Security

  4. Queries

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

Data warehouses are optimized primarily for query performance and analytics, not transaction processing. They support complex read-heavy queries for reporting and decision-making. Backup/recovery, security, and transactions are OLTP concerns.