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

Multiple choice technology platforms and products
  1. a. Partition by Key

  2. b. Partition by Round Robin

  3. c. Partition by Expression

  4. d. Partition by Range

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

Partition by Round Robin distributes records evenly across partitions by cycling through partitions sequentially - first record to partition 1, second to partition 2, and so on, then back to partition 1. This ensures balanced distribution regardless of data characteristics. Key partitioning causes skew if keys aren't uniformly distributed, Expression partitioning depends on the expression logic, and Range partitioning creates ordered but potentially uneven partitions.

Multiple choice technology databases
    1. Insert into
    1. Create mining structure
    1. Browse data
    1. Select from
    1. Browse mining model
Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

DMX (Data Mining Extensions) uses SELECT FROM syntax for browsing and prediction queries against mining models. This allows you to retrieve patterns and make predictions from trained models. The other options like INSERT INTO, CREATE MINING STRUCTURE are for different operations (training, creation).

Multiple choice technology databases
    1. Many dimensions, large dense datasets
    1. Few dimensions, small dense datasets
    1. Few dimensions, small sparse datasets
    1. Many dimensions, small sparse datasets
    1. Many dimensions, large sparse datasets
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Relational OLAP (ROLAP) stores data in relational databases and is most suitable when you have few dimensions and small dense datasets. ROLAP avoids the preprocessing overhead of MOLAP and works well when data doesn't have significant sparsity. For many dimensions or large datasets, MOLAP or HOLAP would be more appropriate.

Multiple choice technology databases
    1. Comprehensive data on operations from all departments
    1. A subset of a data warehouse
    1. Individual invoices
    1. Accounting profit and loss reports
    1. Data managed by a particular department of the company
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A dependent data mart is derived from and dependent on the enterprise data warehouse. It contains a subset of the data warehouse focused on a specific business unit or function. Independent data marts pull directly from source systems, but dependent ones are subsets of the centralized warehouse.

Multiple choice technology databases
    1. Data fields that reference numeric data should be indexed.
    1. Only data fields that change over time should be indexed.
    1. Data fields that are referenced by queries should be indexed.
    1. All data fields should be indexed.
    1. Data fields that reference text and large object data should be indexed.
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In a data warehouse, indexing should be applied to columns and data fields that are frequently referenced by queries to speed up data retrieval performance. Indexing every field or only fields changing over time would be inefficient and impractical.

Multiple choice technology databases
    1. Data about an organization's staff
    1. Data about accounting entries
    1. Data about an organization's structure
    1. Data about an organization's products
    1. Data about transaction activity
Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Transaction activity records individual business events continuously in real-time, making it the most dynamic and frequently changing type of data. Product catalogs, organizational staff, and structural data are structural and change much less frequently.

Multiple choice technology databases
    1. Database backups
    1. Time an uncommon query will take
    1. People entering data into the source database
    1. Number of tables in the data mart, so they do not exceed six tables
    1. Requirements of the department that will use the data mart
Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Data mart design must begin with understanding the business requirements of the department that will use it. This determines what data to include, how to structure it, what metrics to calculate, and how to present the information. Database backups, query performance, data entry processes, and table counts are implementation or operational details that come after defining requirements.

Multiple choice technology databases
  1. It loads the Java code into the database.

  2. It publishes Java methods in CardValidation.java

  3. It loads the metadata related to the Java class file into the database.

  4. It loads the Java class file into the Java pool in the database instance.

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

The loadjava utility loads Java source code, class files, and resources into an Oracle database. When given a .java file, it compiles and loads the Java code into the database schema. It does not publish methods (that requires separate publication) nor does it specifically load metadata only into Java pool.

Multiple choice technology databases
  1. Query results are bigger than the available space in the result cache are not cached

  2. Query results are stored even when you explicitly use the /*+ no_result_cache */ hint in query.

  3. All query results are stored in the result cache if possible.

  4. Query results are stored only when you explicitly use the /*+ result_cache */ hint in your query

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

RESULT_CACHE_MODE=FORCE forces all query results to be cached if possible, ignoring the /*+ no_result_cache */ hint. The FORCE setting means caching happens regardless of explicit hints. Results are cached when they fit in available cache space, but hints that disable caching are overridden.

Multiple choice technology databases
  1. They can be used as attributes of a user-defined data type.

  2. They cannot use redo logging.

  3. They cannot be passed as parameters to PL/SQL subprograms.

  4. They can be stored in a tablespace that is different from the tablespace that stores the table containing the LOB column

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

Internal LOBs can be used as attributes within user-defined data types (object types), allowing structured data with large object components. They also support separate tablespace storage from their parent table for better management. They DO use redo logging (contrary to option B) and CAN be passed as parameters to PL/SQL subprograms (contrary to option C).

Multiple choice technology databases
  1. DDL report for all objects dependent on a table

  2. DDL report for all the invalidated objects in a schema

  3. data definition language (DDL) report for all the tables in a schema

  4. DDL report for all the objects stored in a tablespace

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

DBMS_METADATA package provides GET_DEPENDENT_DDL to retrieve DDL for all objects that depend on a specified object (like a table). GET_DDL can fetch DDL for objects of a specific type within a schema, such as all tables. It doesn't directly track object invalidation status (B is false) or provide tablespace-level object listings (D is false).

Multiple choice technology platforms and products
  1. True

  2. False

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

When an Application Engine program is loaded into memory in PeopleSoft, the physical tables that the program will operate on are locked to prevent concurrent modifications. This ensures data integrity during program execution and prevents conflicts from other processes.