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. (a) Model database

  2. (b) Master Database

  3. (c) msdb

  4. (d) Temporary database

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

SQL Server 2005 has four system databases that are essential for server operation. Master is the core database with system metadata, Model serves as a template for new databases, msdb stores SQL Agent jobs and SSIS packages, and tempdb is for temporary objects. The option 'Temporary database' is misleading - the actual name is 'tempdb'.

Multiple choice technology databases
  1. (a) Desktop Applications

  2. (b) Encrypted Stored procedures

  3. (c) Stored procedures

  4. (d) Trace files

  5. (e) Triggers

Reveal answer Fill a bubble to check yourself
C,D,E Correct answer
Explanation

Upgrade Advisor analyzes SQL Server 2000 objects to identify potential issues before upgrading to 2005. It can examine Stored procedures, DDL triggers, and Trace files for deprecated features or breaking changes. It cannot analyze desktop applications or encrypted stored procedures (encryption prevents analysis).

Multiple choice technology databases
  1. (a) Distributed Queries

  2. (b) OPENROWSET function

  3. (c) Remote Stored Procedures

  4. (d) Execute Statement

  5. (e) All of the above

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

SQL Server 2005 provides three main methods to access a Linked Server: Distributed Queries using four-part naming convention (LinkedServer.Database.Schema.Table), Remote Stored Procedures that execute directly on the linked server, and the EXECUTE statement with the AT Linked Server clause for pass-through queries. OPENROWSET is an ad-hoc method that doesn't require a predefined linked server, making it distinct from these linked server-specific access methods.

Multiple choice technology databases
  1. (a) Allows fast and flexible indexing for keyword based query

  2. (b) Provides a message based communication platform

  3. (c) Supports sending Email from the database

  4. (d) None of the above

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

Full-Text Search in SQL Server 2005 provides specialized indexing for fast keyword-based queries on text data. Unlike standard SELECT with LIKE patterns which scan entire tables, Full-Text Search builds inverted indexes allowing efficient searches for words, phrases (even with proximity), and inflectional forms. Option B incorrectly describes Service Broker (message-based communication), and Option C describes Database Mail, both unrelated to Full-Text Search.

Multiple choice technology databases
  1. (a) Add SQL 2 as linked server to SQL 1

  2. (b) Add SQL 2 as remote Server to SQL 1

  3. (c) Reference SQL 2 by an alias

  4. (d) None of the above

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

The OPENQUERY function requires a linked server to be configured first. The error occurs because SQL 1 doesn't have SQL 2 registered as a linked server. Adding SQL 2 as a linked server (option A) creates the necessary connection object that OPENQUERY can then reference. A remote server (option B) is an older SQL Server concept mainly for remote stored procedures, not for OPENQUERY queries. Aliases (option C) are for local naming, not for cross-server connections.

Multiple choice technology databases
  1. (a) Add SQL 2 as linked server to SQL 1

  2. (b) Add SQL 2 as remote Server to SQL 1

  3. (c) Reference SQL 2 by an alias

  4. (d) None of the above

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

This is an exact duplicate of question 143704. The OPENQUERY function requires a linked server to be configured first. The error occurs because SQL 1 doesn't have SQL 2 registered as a linked server. Adding SQL 2 as a linked server (option A) creates the necessary connection object that OPENQUERY can then reference. A remote server (option B) is an older SQL Server concept mainly for remote stored procedures, not for OPENQUERY queries. Aliases (option C) are for local naming, not for cross-server connections.

Multiple choice technology databases
  1. (a) In the Bulk-Logged recovery model, all transactions are logged

  2. (b) In the Simple recovery model, all transactions are logged.

  3. (c) In the Full recovery model, most transactions are minimally logged

  4. (d) In the Simple recovery model, most transactions are minimally logged

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

SQL Server recovery models control logging behavior. In Simple recovery, bulk operations like BULK INSERT are minimally logged for performance - only page allocations are logged, not individual row changes. Full recovery logs all operations completely. Bulk-Logged recovery minimally logs bulk operations but fully logs other transactions. Option D is correct because Simple recovery specifically uses minimal logging for bulk operations to reduce log space and improve performance.

Multiple choice technology databases
  1. (a) It defines the database catalog

  2. (b) It defines the table catalog

  3. (c) It groups database objects

  4. (d) It groups databases

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

A database schema functions as a logical namespace to group related database objects (such as tables, views, and indexes) under a common owner or organization. It does not group separate databases or define catalogs.

Multiple choice technology databases
  1. (a) SQL Server error log

  2. (b) msdb.dbo.sysbackuphistory table

  3. (c) Windows Application Event Log

  4. (d) msdb.dbo.backupset table

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

When determining which backups to use for restoration, SQL Server error log (A) contains backup and restore operation messages. The Windows Application Event Log (C) also records SQL Server backup events. The msdb.dbo.backupset table (D) stores complete backup history including timestamps, LSNs, and file paths. The msdb.dbo.sysbackuphistory table (B) doesn't exist - it's actually msdb.dbo.backupset and msdb.dbo.backupfile that contain this information.

Multiple choice technology databases
  1. (a) Detach / attach

  2. (b) SMO

  3. (c) Backup/restore

  4. (d) All

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

When moving a database between servers while keeping reports functional, Backup/Restore (C) preserves all database objects, permissions, and metadata without users needing to modify anything. SMO (B) can also transfer databases with full metadata preservation. Detach/Attach (A) can work but is more disruptive and may require fixing orphaned users. Option D 'All' is incorrect because not all methods are equally suitable - Detach/Attach has significant limitations for this use case.

Multiple choice technology databases
  1. TIMESTAMP

  2. INTERVAL MONTH TO DAY

  3. TIMESTAMP WITH DATABASE TIMEZONE

  4. INTERVAL YEAR TO MONTH

  5. INTERVAL DAY TO SECOND

Reveal answer Fill a bubble to check yourself
A,D,E Correct answer
Explanation

Oracle's DATETIME data types include TIMESTAMP (stores date and time), INTERVAL YEAR TO MONTH (for periods of years and months), and INTERVAL DAY TO SECOND (for periods of days, hours, minutes, seconds). Option B 'INTERVAL MONTH TO DAY' is not a valid interval type - intervals go from larger to smaller units. Option C 'TIMESTAMP WITH DATABASE TIMEZONE' is incorrect - the correct syntax is TIMESTAMP WITH DATABASE TIMEZONE or TIMESTAMP WITH TIMEZONE.

Multiple choice technology testing
  1. Resume the status of a transaction instance

  2. Resumes collecting transaction data for performance analysis

  3. Resumes collecting transaction instance data for performance analysis.

  4. None of the above

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

The function lr_resume_transaction_instance resumes the collection of transaction instance data for performance analysis after it has been paused. This is typically used in application performance monitoring tools to control when transaction data is being gathered. Option A incorrectly suggests resuming transaction status rather than data collection, while option B omits the word 'instance'.

Multiple choice technology programming languages
  1. ATTLIST

  2. DOCTYPE

  3. ELEMENTS

  4. ENTITIES

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

In XML DTD, ENTITIES are used to define storage units and reusable content. Entities allow you to define shortcuts for repeated text, special characters, or external content. ATTLIST defines attributes, ELEMENTS defines element structures, and DOCTYPE declares the DTD itself.

Multiple choice technology
  1. True

  2. False

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

Drill-through reports in Cognos allow users to navigate from a summary report to a detailed report by clicking on data points, such as values in a chart. This is the primary purpose of drill-through functionality.

Multiple choice technology testing
  1. Oracle 10g platform

  2. Oracle 9i Platform

  3. Oracle 8g platform

  4. Oracle 11i Platform

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

Rogers' Customer Profile Database (CPD2), which supports caller identification and business routing rules for their national IVR system, was historically developed and deployed on the Oracle 10g database engine to handle high-concurrency queries and ensure platform reliability.