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 databases
  1. Cache hit

  2. Cache miss

  3. Cache init

  4. Cache success

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

A cache hit occurs when requested data is found in the database buffer cache, eliminating the need to read from disk. This is much faster than a cache miss, which requires reading from data files on disk. The buffer cache is part of the SGA and stores frequently accessed data blocks to improve performance.

Multiple choice technology databases
  1. free buffers

  2. dirty buffers

  3. pinned buffers

  4. access buffers

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

The database buffer cache internally manages three types of buffers: free buffers (available for use), dirty buffers (modified but not yet written to disk), and pinned buffers (currently being read or modified). Access buffers is not a standard buffer cache type. The buffer cache uses these states to manage data blocks efficiently and maintain data consistency.

Multiple choice technology databases
  1. Specifying size of memory for each server process

  2. Specifying size of total memory for all server process

  3. No way to define

  4. Specifying size of seperate memory and total memory for all server processes

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

PGA memory is configured using the PGA_AGGREGATE_TARGET parameter, which specifies the total memory for all server processes combined. You cannot specify memory per individual server process. Oracle dynamically allocates PGA memory from this aggregate target to individual processes as needed, optimizing overall memory usage.

Multiple choice technology databases
  1. True

  2. False

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

The redo log buffer is a volatile memory area in the SGA that holds redo entries temporarily before they are written to disk. On instance failure, the contents of the redo log buffer are lost. Recovery uses the online redo log FILES (on disk) and archived redo logs, not the buffer contents. The buffer is just a staging area, not a recovery source.

Multiple choice technology databases
  1. DBWR

  2. LGWR

  3. CKPT

  4. ARCH

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

LGWR (Log Writer) is the Oracle background process responsible for writing redo entries from the redo log buffer in the SGA to the online redo log files on disk. DBWR writes data blocks, CKPT is the checkpoint process, and ARCH archives redo logs. LGWR is the only process that writes redo log buffer to redo log files.

Multiple choice technology databases
  1. Library Cache

  2. Data Buffer Cache

  3. Data Dictonary Cache

  4. SQL buffer cache

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

The Shared Pool in the SGA contains the Library Cache (which stores parsed SQL and PL/SQL) and the Data Dictionary Cache (which caches data dictionary information). The Data Buffer Cache is a separate SGA component for caching data blocks. SQL buffer cache is not a standard Oracle term - the Library Cache handles SQL caching.

Multiple choice technology databases
  1. Shared Pool

  2. Java Pool

  3. Large Pool

  4. Redo log buffer

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

The Large Pool is an optional area of the SGA used for RMAN backups, Recovery Manager operations, and shared server connections. The Shared Pool, Redo Log Buffer, and (in most configurations) Java Pool are mandatory components required for basic database operation. Large Pool can be configured but is not required.

Multiple choice technology databases
  1. SMON

  2. PMON

  3. IMON

  4. INSTMON

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

SMON (System Monitor) is the Oracle background process responsible for instance recovery. It performs recovery at startup by rolling forward changes from redo logs and rolling back uncommitted transactions. PMON monitors and recovers user processes, while IMON and INSTMON are not standard Oracle processes.

Multiple choice technology databases
  1. Cursor and SQL area

  2. Private SQL area

  3. Data Dictonary Cache

  4. Data Buffer Cache

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

Cursor bind information and private runtime values are stored in the Private SQL Area within the PGA (Process Global Area). Each user session has its own Private SQL Area containing bind variable values, execution state, and other session-specific SQL information. The Cursor and SQL area terminology is less precise.

Multiple choice technology databases
  1. Shared Pool

  2. Data Dictionary Cache

  3. Data Buffer Cache

  4. Library Cache

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

When a SQL query is parsed, Oracle first checks the Data Dictionary Cache to verify that referenced tables, columns, and other objects exist and the user has proper privileges. The Library Cache stores parsed SQL, but object definitions come from the Data Dictionary Cache. The buffer cache stores data blocks, not metadata.

Multiple choice technology databases
  1. Designer

  2. Manager

  3. Editor

  4. You cant delete a DB

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

In Lotus Notes, only the Manager access level grants permission to delete databases entirely. Designers can modify design elements but cannot delete the database itself. Editors and Authors have document-level permissions only. The Manager role is the only one with full administrative control including database deletion.

Multiple choice technology databases
  1. Manager

  2. Designer

  3. Editor

  4. None of the above

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

In Lotus Notes, the Manager access level has full administrative rights including the ability to encrypt databases. Manager access can modify ACL settings, delete databases, and perform encryption operations. Designer and Editor have more limited permissions and cannot encrypt databases.

Multiple choice technology databases
  1. Replication is the process of not synchronizing the contents of one database replica with another database replica

  2. Replication is the process of re synchronizing the contents of one database replica with another database replica

  3. Replication is a process in which an entity does not make a copy of itself.

  4. Replication is a part of replica ID.

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

Replication is the process of synchronizing (or re-synchronizing) the contents of one database replica with another, ensuring data consistency across sites. The other options mistakenly describe replication as preventing synchronization or copying.