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. Key based

  2. Freelist

  3. Hash

  4. Index

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

Hash partitioning is a standard table partitioning method where data is distributed across partitions using a hash function on partition key values. Key-based is not a standard partitioning method name. Freelist relates to space management within segments, not partitioning. Index is a separate access structure, not a partitioning method. Common partitioning methods include range, list, hash, and composite.

Multiple choice technology databases
  1. DB_CREATE_FILE_DEST

  2. DB_CREATE_ONLINE_LOG_n

  3. USER_DUMP_DEST

  4. LOG_ARCHIVE_DEST

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

DB_CREATE_FILE_DEST is the primary parameter used to enable Oracle Managed Files (OMF) by specifying the default directory for datafiles. Other parameters like USER_DUMP_DEST and LOG_ARCHIVE_DEST serve administrative purposes and do not initialize OMF for database files.

Multiple choice technology databases
  1. You need to have the same hardware.

  2. The database you mirror to will be in an unused standby state.

  3. You cannot have automatic failover.

  4. You need to have at minimum three servers.

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

In database mirroring, the mirror database remains in a restoring/standby state and cannot be directly read or written to by users, representing idle capacity. Identical hardware is not strictly mandatory, automatic failover is supported, and a witness server is optional.

Multiple choice technology databases
  1. Database Engine Tuning Advisor

  2. SQL Server Configuration Manager

  3. Database Maintenance Plan Wizard

  4. Database Maintenance design surface

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

The Database Maintenance Plan Wizard is specifically designed to help DBAs create comprehensive maintenance plans including backup strategies. Database Engine Tuning Advisor is for performance tuning, SQL Server Configuration Manager is for server configuration, and the design surface requires more advanced knowledge.

Multiple choice technology databases
  1. Read Committed

  2. Read Uncommitted

  3. Repeatable Read

  4. Serializable

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

The Read Uncommitted isolation level allows dirty reads because it doesn't lock shared data and can read uncommitted modifications from other transactions. Since the requirement is to avoid dirty reads while accepting reduced accuracy, Read Uncommitted is the isolation level to avoid.

Multiple choice technology databases
  1. The user had to have knowledge of the table and index structures.

  2. Navigational data access was far slower than declarative access.

  3. Navigational access languages required the coder to embed their queries inside a procedural language shell.

  4. Navigational languages were far slower then SQL

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

Navigational database languages require programmers to write code that manually navigates data relationships, which demands precise knowledge of physical tables and index paths. In contrast, declarative languages like SQL let users specify what data they want without knowing the underlying structure.

Multiple choice technology databases
  1. Use the sys.dm_exec_requests dynamic management view.

  2. Use the sys.dm_exec_sessions dynamic management view.

  3. Use the sys.dm_exec_query_stats dynamic management view.

  4. Use the sys.dm_exec_query_optimizer_info dynamic management view.

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

The sys.dm_exec_query_stats DMV returns performance statistics for cached query plans, including a 'compilation_count' column that tracks how many times each query has been compiled. This allows identifying queries with the highest recompilation counts. The other DMVs focus on current requests, active sessions, and optimizer information respectively.

Multiple choice technology databases
  1. Can be updated by end users.

  2. Contains numerous naming conventions and formats.

  3. Organized around important subject areas.

  4. Contains only current data.

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

Data warehouses are designed around major subject areas (like customers, sales, products) rather than business applications. They contain historical data in a consistent format and are read-optimized for analysis. They are not updated by end users, use consistent naming conventions, and contain historical data rather than just current data.

Multiple choice technology databases
  1. A system that is used to run the business in real time and is based on historical data.

  2. A system that is used to run the business in real time and is based on current data.

  3. A system that is used to support decision making and is based on current data.

  4. A system that is used to support decision making and is based on historical data.

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

Operational systems support day-to-day business operations in real time using current data. They capture and process transactions as they occur. Decision support systems (analytical systems) use historical data for analysis. The key distinction is operational = real-time current data, analytical = historical data for decision making.

Multiple choice technology databases
  1. At the beginning

  2. At the end

  3. Where they are programmed

  4. After each READ FOR UPDATE command

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

Sync points (syncpoints) in CICS transactions occur at programmer-defined locations using commands like SYNCPOINT. They allow explicit control over transaction boundaries rather than being fixed at the beginning or end. They don't automatically occur after each READ FOR UPDATE.

Multiple choice technology databases
  1. Transactional replication

  2. Peer-to-peer replication

  3. Merge replication

  4. Snapshot replication

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

Snapshot replication is ideal for this scenario because it distributes a complete copy of the publication at scheduled intervals (daily 5 a.m.). The publication is not large, and while there are many changes during the day, snapshot replication completely refreshes subscriber data each time. Transactional and merge replication are more complex and unnecessary for this daily refresh requirement.

Multiple choice technology databases
  1. BULK insert

  2. BCP

  3. DTS

  4. All the above

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

SQL Server provides multiple tools for data import and export: BULK INSERT is a T-SQL command for bulk data loading, BCP (Bulk Copy Program) is a command-line utility, and DTS (Data Transformation Services) is a graphical tool for data transfer and transformation. All three are valid options.

Multiple choice technology databases
  1. At least one data mart

  2. Data that can extracted from numerous internal and external sources

  3. Near real-time updates

  4. All of the above.

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

The generic two-level data warehouse architecture consists of a central data warehouse that extracts and consolidates data from multiple internal and external sources. Data marts (A) are derived from the warehouse, not part of the core architecture definition, and near real-time updates (C) are not a required feature of the basic architecture.

Multiple choice technology databases
  1. System tablespace

  2. Users tablespace

  3. Default tablespace for the user

  4. Default tablespace for system

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

When a user creates an object in Oracle without specifying a TABLESPACE clause, Oracle stores the segment in that user's default tablespace. This is a user-specific default, not the system tablespace. Each user can be assigned a specific default tablespace for their objects.

Multiple choice technology databases
  1. DBA_SYS_PRIVS

  2. DBA_COL_PRIVS

  3. DBA_OBJ_PRIVS

  4. DBA_TAB_PRIVS

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

DBA_SYS_PRIVS provides information about all system privileges granted in the database. The other options are more specific: DBA_COL_PRIVS for column-level privileges, DBA_OBJ_PRIVS for object privileges, and DBA_TAB_PRIVS for table privileges. System privileges are the broadest category of grants.