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. More entities are needed

  2. The model should be denormolized

  3. The tables are not properly indexed

  4. The model cannot be implemented physically

  5. More attributes are needed

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

A mandatory one-to-one relationship where every instance of Entity A must relate to exactly one instance of Entity B (and vice versa) often suggests insufficient attributes to justify separate entities. Such tight coupling indicates they should either be merged into a single entity or one should be modeled as an attribute of the other. The question tests recognizing when 1:1 relationships signal design issues.

Multiple choice technology programming languages
  1. Transparent

  2. View

  3. Cluster

  4. Pooled

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

Transparent tables have a 1:1 relationship with the database table - one ABAP dictionary table maps to exactly one physical database table with the same name and structure. Views are virtual tables derived from other tables. Cluster tables store multiple tables in a single database table. Pooled tables store several tables in a table pool.

Multiple choice technology programming languages
  1. Enqueue/Dequeue

  2. Spool

  3. Update

  4. Dialog

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

The Enqueue/Dequeue service handles locking in SAP to ensure data integrity - Enqueue sets locks and Dequeue releases them. Spool manages print jobs. Update handles asynchronous database updates. Dialog manages user interactions. Locking prevents concurrent modifications that could corrupt data.

Multiple choice technology architecture
  1. OS & HW

  2. Database

  3. Program

  4. Design

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

Performance bottlenecks typically manifest in the application code through inefficient algorithms, poor resource management, or suboptimal logic design. While OS, hardware, and database layers can contribute, the program layer is where most performance issues originate as it directly controls how resources are utilized.

Multiple choice technology architecture
  1. Change the application code

  2. Do nothing

  3. Run every query twice

  4. Increase cache size significantly

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

A 10% cache hit ratio means 90% of data requests are cache misses, causing expensive disk I/O. Increasing cache size significantly allows more data to remain in memory, reducing disk accesses and improving performance. Changing application code or running queries twice would not address the fundamental cache sizing issue.

Multiple choice technology architecture
  1. A mainframe

  2. A Unix workstation

  3. A personal computer

  4. A massively parallel supercomputer

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

A personal contacts database typically has modest scale and single-user access patterns, making a personal computer the most appropriate and cost-effective platform. Mainframes are for enterprise-scale transaction processing, Unix workstations for technical computing, and massively parallel supercomputers for high-performance scientific computing - all overkill for personal contacts.

Multiple choice technology architecture
  1. Bad index management

  2. Network delay

  3. Use of SQL Server 6.5 instead of 7.0

  4. Limitations of Microsoft technology

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

A 24x performance gap (3 days to 3 hours) strongly suggests missing or poorly designed indexes causing full table scans. Without proper indexes, SQL Server must read every row for each query, turning efficient lookups into massive sequential operations. Network delays or version differences wouldn't cause such extreme slowdowns.

Multiple choice technology architecture
  1. applications are stable and relatively unchanging over time

  2. define the major kinds of application system necessary to process the data and support the business

  3. Involves applications systems design

  4. The applications are logical groups of capabilities that manage the data objects in the Data Architecture and support the business functions in the Business Architecture

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

The question asks for the FALSE statement. In TOGAF and enterprise architecture frameworks, Application Architecture focuses on defining what applications are needed and how they relate to business functions and data. It does NOT involve detailed systems design - that belongs to later implementation phases. Options A, B, and D describe valid aspects of Application Architecture.

Multiple choice technology
  1. One Table

  2. Two Tables

  3. Three Tables

  4. Four Tables

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

SAP uses three database tables to archive IDoc data: EDIDC for control records, EDID4 for segment data, and EDIDS for status records. This three-table structure separates metadata, content, and processing status for efficient archiving and retrieval.

Multiple choice technology architecture
  1. Modifying a persistent object results in the instance update of the database

  2. Only one persistent object can refer to an instance of a class at any given time

  3. The transactional state of an object decides the response to an operation

  4. None of the above

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

The State Pattern allows an object to alter its behavior when its internal state changes, appearing as if the object changes its class. The object delegates state-specific behavior to different state objects, and the current state determines how the object responds to operations. Option C correctly identifies that an object's state determines its response to operations, which is the essence of the State Pattern. Options A and B discuss persistence concerns unrelated to the State Pattern.

Multiple choice technology architecture
  1. Provides a uniform interface to the subsystem

  2. Defines a table for each persistent object class

  3. Assigns an object identifier for each record

  4. Makes a class resonsible for materialization

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

The Representing Objects as Tables persistence pattern maps each persistent object class to a corresponding database table, with object attributes mapping to table columns. This direct mapping enables straightforward persistence of object-oriented data to relational databases. Option B correctly states the pattern defines a table for each persistent object class. Option A describes the PersistenceFacade pattern. Option C refers to identity mapping, which is a related but distinct concept. Option D describes materialization, another related pattern.

Multiple choice technology architecture
  1. Provides a uniform interface to the subsystem

  2. Assigns the responsibility for creating new class instance or object

  3. Makes a class responsible for materialization

  4. Makes the database mappers responsible for maintaining cache

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

The PersistenceFacade pattern provides a simplified, unified interface to a complex persistence subsystem, hiding the complexity of various persistence mechanisms behind a single API. Clients interact with the facade rather than directly with individual persistence components. Option A correctly identifies the facade's purpose of providing a uniform interface. Option B describes the Factory pattern or creation responsibilities. Option C refers to materialization patterns. Option D describes caching responsibilities, which are not the facade's primary role.

Multiple choice technology databases
  1. Hierarchical

  2. Relational

  3. Network

  4. Other

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

IDMS is a network model database, not hierarchical (A), relational (B), or a catch-all other category. The network model allows many-to-many relationships through sets, unlike the hierarchical model's tree structure.

Multiple choice technology databases
  1. Area

  2. Set Type

  3. Record Type

  4. Relation

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

In network database models (CODASYL), a set type explicitly defines the relationship between two or more record types, establishing an owner-member relationship. This is different from relational databases where foreign keys define relationships, or hierarchical databases with parent-child structures. Area (A) is unrelated to record relationships, Record Type (C) refers to individual record structures, and Relation (D) is the general concept but not the specific defining mechanism.