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. 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_optimizer_info dynamic management view

  4. Use the sys.dm_exec_query_stats dynamic management view

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

The sys.dm_exec_query_stats Dynamic Management View returns performance statistics for cached query plans. It includes the plan_generation_num column, which increments each time a query is recompiled, allowing you to identify top recompiled queries. Other views like sys.dm_exec_requests monitor active sessions.

Multiple choice technology databases
  1. Temporary Storage Table (TST)

  2. Program Processing Table (PPT)

  3. Program Control Table (PCT)

  4. File Control Table (FCT)

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

In IBM CICS, the Program Control Table (PCT) contains definitions of all transaction identifiers and maps them to their respective initial application programs. The PPT lists programs and their locations, the TST defines temporary storage queues, and the FCT defines files and their access characteristics.

Multiple choice technology databases
  1. Temporary Storage Table (TST)

  2. Program Processing Table (PPT)

  3. Resource Control Table (RCT)

  4. File Control Table (FCT)

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

The Resource Control Table (RCT) in CICS contains DB2 interface information including transaction-to-plan bindings and security parameters. RCT defines which CICS transactions can access which DB2 plans and resources. TST manages temporary storage queues, PPT contains program and mapset definitions, and FCT controls file access for VSAM files.

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.