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. Database Buffer Cache

  2. Redo Log Buffer

  3. Shared Pool

  4. PGA

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

The Shared Pool contains the data dictionary cache (row cache), which caches metadata information about tables, columns, and privileges. The Database Buffer Cache holds actual data blocks, the Redo Log Buffer caches transaction recovery info, and the PGA holds private session and SQL execution work areas.

Multiple choice technology databases
  1. To access the HR user account, the account should be unlocked first

  2. All accounts created by the Database Creation Assistant are locked

  3. The SYS and SYSTEM accounts use the same default password as in previous Oracle versions

  4. All accounts created by the Database Creation Assistant initially have expired passwords

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

When creating an Oracle database using the Database Creation Assistant, most default accounts are initially locked for security. The HR account (Human Resources schema) exists but must be explicitly unlocked before use. Option A correctly states this requirement. Option B is incorrect because not all accounts are locked (some like SYS/SYSTEM are accessible). Option C is incorrect because modern Oracle versions require password changes, not reusing old defaults. Option D is incorrect because accounts don't have expired passwords initially - they're locked.

Multiple choice technology databases
  1. The related columns of the tables are called the cluster key. The cluster key is indexed using a cluster index and its value is stored only once for multiple tables in the cluster.

  2. The related columns of the tables are called the cluster key. The cluster key is indexed using a b+ tree index and its value is stored only once for multiple tables in the cluster.

  3. The related columns of the tables are called the cluster key. The cluster key is indexed using a bitmap index and its value is stored only once for multiple tables in the cluster.

  4. The related columns of the tables are called the cluster key. The cluster key is indexed using a range index and its value is stored only once for multiple tables in the cluster.

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

In an Oracle table cluster, the cluster key consists of the related columns shared by the clustered tables. This key is indexed using a cluster index, allowing rows with the same key value to be stored together physically, reducing storage redundancy. B-tree, bitmap, or range indexes are not used for cluster keys.

Multiple choice technology databases
  1. Two-phase commit is mechanism that guarantees a distributed transaction that always commits on all involved nodes to maintain data consistency across the global distributed database.

  2. Two-phase commit is mechanism that guarantees a distributed transaction either commits on all involved nodes or rolls back on all involved nodes to maintain data consistency across the global distributed database. It has two phase, a Prepare Phase and a C

  3. Two-phase commit is mechanism that guarantees a distributed transaction that always rollback on all involved nodes to maintain data consistency across the global distributed database.

  4. Two-phase commit is mechanism that guarantees a distributed transaction that always commit on all involved nodes to maintain data consistency across the global heirarchical database.

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

Two-Phase Commit (2PC) ensures distributed transactions either commit on all nodes OR roll back on all nodes, maintaining consistency. It has two phases: Prepare Phase (all nodes verify they can commit) and Commit Phase (coordinator instructs all to commit). Option A incorrectly states it always commits, which would allow inconsistency. Option C incorrectly states it always rolls back. Option D mentions 'heirarchical database' (typo for hierarchical) and incorrectly states it always commits. Option B correctly describes the all-or-nothing guarantee with both phases.

Multiple choice technology databases
  1. Heterogeneous Services

  2. Oracle Connection Manager

  3. Dynamic Service Registration

  4. Oracle Names Server

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

When an instance is down, Oracle Net's Dynamic Service Registration enables automatic failover. With service registration, listeners track instance availability and can redirect connection requests to surviving instances without manual configuration. Heterogeneous Services (A) is for non-Oracle data sources. Oracle Connection Manager (B) provides connection pooling and firewall features, not failover. Oracle Names Server (D) is a deprecated naming/directory service.

Multiple choice technology databases
  1. It consists of Redo Log files that have archived before being reused.

  2. It consists of Redo Log files that have archived after being reused.

  3. It consists of Redo Log files that is archiving when currently being reused.

  4. It consists of Redo Log files that have archived not being reused.

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

Archived Redo Logs are copies of online redo log files that have been saved before being reused. When an online redo log fills, Oracle switches to a new log. Archiving (if enabled) copies the filled log to an archive location before it can be overwritten. Option A correctly states they are archived before reuse. Option B is incorrect because archiving happens before, not after, reuse. Option C incorrectly suggests archiving occurs during reuse. Option D is incorrectly phrased and unclear.

Multiple choice technology databases
  1. V$LOG
  2. V$THREAD
  3. V$DATAFILE
  4. All of the above

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

Dynamic performance views like V$LOG, V$THREAD, and V$DATAFILE obtain their structural database details directly from the control file. Since all these views rely on the database's physical layout and current states registered in the control file, 'All of the above' is the correct answer.

Multiple choice technology databases
  1. The MAXLOGFILES are set too low

  2. The CONTROLFILE REUSE clause is omitted

  3. The online redo log files cannot be reused

  4. The data file belonging to the SYSTEM tablespace cannot be reused

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

The CREATE DATABASE statement fails because CONTROLFILE REUSE clause is missing. When reusing existing database files (specified by REUSE for datafiles and logs), you must explicitly include CONTROLFILE REUSE to allow Oracle to reuse the existing control file. Without this clause, Oracle attempts to create a new control file, causing conflict. Option A is incorrect because MAXLOGFILES=5 is reasonable. Option C is incorrect because online redo logs CAN be reused (the REUSE clause explicitly allows this). Option D is incorrect because the SYSTEM tablespace datafile can be reused with REUSE.

Multiple choice technology platforms and products
  1. Data Load Performance

  2. Batch Calculation Performance

  3. Retrieval Performance

  4. None of the above

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

Attribute dimensions in Essbase are sparse dimensions used primarily for reporting and analysis. When attribute dimensions are used extensively, they can slow down data retrieval operations because the system needs to perform additional lookups and calculations to associate attribute values with the base data. This doesn't significantly affect data load or batch calculation performance.

Multiple choice technology databases
  1. The number of CPUs on the server

  2. The degree of parallelism on the tables

  3. The use of bitmap indexes

  4. The quality of the SQL optimization

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

SQL statement tuning focuses primarily on improving the execution plan generated by the optimizer. While hardware resources like CPU count, index choices, and parallelism influence execution environment decisions, the fundamental component of statement tuning is the quality of the SQL optimizer's decisions and execution plans.

Multiple choice technology web technology
  1. SQL Data Source

  2. XML Data Source

  3. Object.

  4. ODBC

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

ASP.NET 2.0 introduced SqlDataSource, XmlDataSource, and ObjectDataSource controls to simplify data binding. These were new declarative data source controls that eliminated much of the code required in previous versions. ODBC data sources existed prior to 2.0.

Multiple choice technology web technology
  1. Columns of defined Datatype

  2. Tables schema information within them.

  3. All of the above

  4. None of the above

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

Strongly typed datasets encapsulate both table definitions and column data types within their schema, providing compile-time type safety. Unlike untyped datasets, they know the structure and data types at design time.

Multiple choice technology architecture
  1. Model View Controller

  2. Composite Entity

  3. Fast Lane Reader

  4. View Helper

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

Fast Lane Reader is specifically designed to improve read performance for tabular data by bypassing complex EJB (Enterprise JavaBean) overhead. It directly accesses data using simpler mechanisms like JDBC, providing faster reads for simple queries. This pattern is ideal when you need quick, read-only access to tabular data without full transactional overhead.

Multiple choice technology databases
  1. True

  2. False

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

Row migration occurs when a row grows too large to fit in its original data block due to insufficient PCTFREE space. PCTFREE reserves space in each block for future updates to existing rows. If set too low and rows expand, they must migrate to new blocks, leaving a forwarding pointer. This degrades performance due to additional I/O.

Multiple choice technology databases
  1. To get automatic values

  2. For esay access

  3. For fast access

  4. All of the above

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

The CACHE option in Oracle sequences pre-allocates sequence values and keeps them in memory for faster access. This minimizes disk I/O when generating values. While the sequence generates automatic values, CACHE specifically optimizes speed.