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 programming languages
  1. SGA

  2. SQL Area

  3. Library Cache

  4. PGA

  5. Shared Pool

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

PGA (Program Global Area) contains session-specific memory like variables and arrays when NOT running in MTS (Multi-Threaded Server) mode. In dedicated server mode (non-MTS), each session gets its own PGA. SGA is shared instance memory, SQL Area and Library Cache are components of Shared Pool within SGA - all are shared, not per-session.

Multiple choice technology programming languages
  1. audit

  2. quota

  3. limit

  4. profile

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

Oracle profiles are used to enforce resource limits including idle time. A profile can set IDLE_TIME to limit minutes of inactivity before a session is terminated. Audit tracks actions, quota limits tablespace usage, and 'limit' is not a valid Oracle resource command.

Multiple choice technology programming languages
  1. Defers writes for I/O optimization

  2. Uses a LRU algorithm to keep most recently used blocks in memory

  3. Writes to database redo log files as people COMMIT data

  4. Writes all changed (i.e. dirty) buffers to datafiles

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

DBWR does NOT write to redo log files - that's LGWR's job. DBWR writes dirty buffers from the buffer cache to datafiles. Option A describes correct DBWR behavior (defers writes for batching). Option B describes DBWR's LRU algorithm for cache management. Option D is DBWR's primary function. Writing to redo logs is exclusively LGWR's responsibility.

Multiple choice technology programming languages
  1. There is only one redo log writer per instance

  2. A commit confirmation may be issued before a transaction has been recorded in the redo log file

  3. During long transactions Oracle can flush data to the redo logs before it is committed

  4. An Oracle instance cannot survive without a redo log writer

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

Option B is false: Oracle guarantees commit confirmation ONLY after the transaction is written to the redo log file. This is fundamental to ACID durability. Options A, C, D are true: one LGWR per instance, long transactions can flush pre-commit (still written), and LGWR is essential for instance survival.

Multiple choice technology databases
  1. infodb

  2. ckpdb

  3. jnl

  4. accessdb

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

The infodb utility in Ingres is used to check database consistency and integrity. It validates the database structure and reports any inconsistencies or corruption in the database files, making it essential for maintenance and troubleshooting.

Multiple choice technology databases
  1. accessdb

  2. rollforwarddb

  3. restoredb

  4. dbrestore

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

The rollforwarddb command in Ingres is used to restore a database by applying journal files after a restore, bringing it to a consistent state. This command rolls forward the database transactions to make it valid and current. The accessdb utility is for database access management, not restoration.

Multiple choice technology databases
  1. accessdb

  2. infodb

  3. tempdb

  4. userdb

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

The accessdb utility in Ingres is used for database user management, including creating users, granting permissions, and managing access controls. It allows administrators to define who can access the database and what operations they can perform. The other options are not standard Ingres utilities for user management.

Multiple choice technology databases
  1. unloaddb

  2. downloaddb

  3. copydb

  4. movedb

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

The unloaddb utility in Ingres is used for data migration by extracting data from database tables into flat files, which can then be loaded into another database. This is the standard utility for data export and migration between Ingres databases. The other options are not valid Ingres migration utilities.

Multiple choice technology databases
  1. Vertica

  2. Sybase IQ

  3. ParAccel

  4. SAND

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

Sybase IQ was the first column-oriented database management system to reach the data warehousing market, launching in the mid-1990s. Its columnar storage architecture was revolutionary for analytical queries and data warehousing workloads. Vertica and ParAccel came later, building on the columnar concept.

Multiple choice technology databases
  1. Petadata

  2. Exadata

  3. Megadb

  4. OracleMPP

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

Oracle Exadata is the data warehouse database platform developed in cooperation with HP, combining Oracle database software with HP hardware in an engineered system. Exadata uses smart storage scans and columnar compression for high performance. It was introduced as a game-changing data warehouse appliance.

Multiple choice technology databases
  1. Teradata

  2. Netezza

  3. DATAllegro

  4. Sybase IQ

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

Teradata, Netezza, and DATAllegro are all MPP (Massively Parallel Processing) database systems that distribute data and processing across multiple nodes for scalability. Teradata pioneered MPP architecture, Netezza used it in their appliance, and DATAllegro built an MPP data warehouse platform. Sybase IQ uses a columnar architecture but is not typically classified as MPP.

Multiple choice technology mainframe
  1. Yes

  2. No

  3. Only for uncataloged datasets

  4. Only for cataloged datasets

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

VOL=SER specifications are required for tape datasets only when they are not cataloged in the system catalog. For cataloged tape datasets, the system can locate the volume through the catalog entry. For uncataloged datasets, you must explicitly specify the volume serial. This is similar to disk datasets - cataloged ones don't need VOL=SER, but uncataloged ones do.

Multiple choice technology mainframe
  1. Type of users with access

  2. Navigational vs. non navigational

  3. Concurrent vs. non concurrent multiple program access

  4. Support for single vs. multiple application languages

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

Hierarchical DBMS require navigating through parent-child relationships to access data, while relational DBMS allow non-navigational access using SQL queries that reference data values directly. Both support concurrent access and multiple languages. User access control is not the defining difference.