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
-
MERGE
-
COPY
-
REORG
-
RUNSTATS
D
Correct answer
Explanation
RUNSTATS is the DB2 utility that collects statistical information about table and index data, then updates the system catalog. MERGE is for merging data, COPY is for backup, and REORG is for reorganizing data.
-
Simple Tablespace
-
Partitioned Tablespace
-
Complex Tablespace
-
Segmented Tablespace
D
Correct answer
Explanation
Segmented tablespaces organize space into segments that can be efficiently reused when tables are dropped, requiring minimal reorganization. Simple, Partitioned, and Complex tablespaces do not offer this same level of space reclamation efficiency.
B
Correct answer
Explanation
In DB2, partitioned tablespaces allow database administrators to perform utility operations, such as recoveries and reorganizations, independently on individual partitions. This improves performance and availability, meaning they do not need to process the entire tablespace at once, making the statement false.
-
Data Definition Language
-
Data Manipulation Language
-
Data Confusion Language
-
Data Control Language
D
Correct answer
Explanation
DB2 uses Data Control Language (DCL) commands like GRANT and REVOKE to manage security internally. DDL is for schema definitions, DML is for data manipulation, and Data Confusion Language is not a real SQL language category.
C
Correct answer
Explanation
JDBC (Java Database Connectivity) is the standard Java API for connecting to relational databases. It provides methods to execute SQL queries, retrieve results, and manage database transactions. JMS is for messaging, Java IDL for CORBA connectivity, and JAF (JavaBeans Activation Framework) for handling MIME data types.
B
Correct answer
Explanation
J2EE products from different vendors can support different databases. For example, one application server might support Oracle, DB2, and SQL Server, while another might support MySQL and PostgreSQL. The J2EE specification does not mandate specific database support, leaving it to vendor implementation.
A
Correct answer
Explanation
JTA (Java Transaction API) is the standard Java EE API for managing transactions across multiple resources. It provides interfaces for demarcating transaction boundaries (beginning, committing, or rolling back transactions). The other options are not standard transaction APIs in the Java ecosystem.
-
Stored Procedures
-
Business Service
-
DTS
-
VB.net
-
Database Triggers
A
Correct answer
Explanation
In AXA Partners legacy system architecture (primarily built on Siebel or SQL Server-based integrations), Producer IDs are generated at the database level using Stored Procedures to ensure unique sequential key assignment. Other options like Business Service, DTS, or VB.net do not handle this specific database sequence generation.
A
Correct answer
Explanation
The Data Access Object (DAO) pattern abstracts database operations behind an interface. It provides a clean API for CRUD operations, hiding implementation details like SQL, connection management, and data source specifics. This reduces coupling between application components and the database, making the codebase more maintainable and testable.
-
Business Delegate
-
Data Access Object
-
Factory
-
Builder
B
Correct answer
Explanation
The Data Access Object pattern is ideal when accessing multiple heterogeneous data sources. Each data source type (relational database, LDAP, flat files) gets its own DAO implementation exposing a common interface. The application code works with the DAO interface, remaining unaware of underlying storage differences. Business Delegate reduces coupling, Factory creates objects, and Builder constructs complex objects; none address multi-source data access.
-
Cloudscape
-
Oracle
-
Informix
-
Microsoft SQL (MSSQL) Server
A,B,C,D
Correct answer
Explanation
WebLogic JMS with JDBC persistence supports multiple databases including Cloudscape, Oracle, Informix, and Microsoft SQL Server for persistent message storage. The JDBC store allows JMS to use any database with a compliant JDBC driver, providing flexibility in choosing the persistence backend.
-
Waiters high
-
Waiters
-
Connections high
-
Wait seconds high
B
Correct answer
Explanation
The 'Waiters' attribute in the JDBC connection pool monitoring shows the current number of clients waiting for a connection. 'Waiters high' is the peak value reached, not the current count. 'Connections high' tracks maximum connections used, and 'Wait seconds high' tracks maximum wait time.
A
Correct answer
Explanation
Bank serves as the master database in the AXA system architecture. It contains the primary customer and account records. Other applications like ULIS (life insurance), IARD (non-life insurance), and CIF (customer information interface) derive or reference data from the Bank master.
-
Back end application
-
Front End application
-
Interface
-
Database
B
Correct answer
Explanation
CIF is a Front End application. It provides the user interface for viewing and managing customer information, accessible to both internal and external users. It is not a backend application (processing logic), not an interface between systems, and not the database itself (though it accesses database data).
-
Producer
-
Collaborator
-
Staff member
-
None of the above
B
Correct answer
Explanation
The basic associate principle dictates that a physical person or legal entity should only be stored once. The Collaborator role violates this database normalization rule by storing duplicate records or multiple distinct entries for the same entity under different contexts.