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. SqlSessionFactoryBuilder

  2. SqlBuilder

  3. SqlFactoryBuilder

  4. SqlSessionBuilder

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

SqlSessionFactory is created using SqlSessionFactoryBuilder in iBATIS/MyBatis. This builder pattern reads configuration and builds the factory. Other options like SqlBuilder or SqlSessionBuilder are incorrect or don't exist.

Multiple choice technology databases
  1. True

  2. False

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

The statement claims iBATIS discourages SQL use, but this is false - iBATIS is designed to leverage SQL's power. It allows developers to write raw SQL queries while simplifying database access, preserving all SQL benefits. Therefore the correct answer is False.

Multiple choice technology databases
  1. you will not be able to connect locally ,but you can be able to connect to DB from remote

  2. you cannot be able to connect to DB either from remote or from local

  3. you cane to connect to DB either from remote or from local

  4. you will not be able to connect remotely ,but you can be able to connect to DB locally

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

In Oracle, when the listener is down but the instance is up, local connections using IPC/bequeath protocol still work. Remote connections require the listener to establish the initial connection.

Multiple choice technology databases
  1. IO-PCD

  2. DBD

  3. IO-AREA

  4. SSA

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

The physical nature of an IMS database is defined by the DBD (Database Description). The DBD describes the physical structure of the database including segment layout, field definitions, and indexing information. IO-PCB and IO-AREA are runtime structures used during program execution, while SSA is a navigation parameter.

Multiple choice technology databases
  1. ADDM

  2. AWR

  3. Data dictionary views

  4. Dynamic performance views

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

The Automatic Workload Repository (AWR) is the Oracle component that stores statistics collected by the MMON (Manageability Monitor) process. AWR serves as the foundation for performance diagnostics and contains detailed performance statistics. ADDM uses AWR data for its analysis but is the diagnostic tool itself, not the storage mechanism. Data dictionary views and dynamic performance views are different database structures.

Multiple choice technology databases
  1. SQL Tuning Advisor

  2. SQL Access Advisor

  3. Both A and B

  4. Neither A or B

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

When a SQL statement causes I/O issues, both SQL Tuning Advisor and SQL Access Advisor are relevant. SQL Tuning Advisor optimizes the SQL statement itself (indexes, statistics, SQL structure), while SQL Access Advisor focuses on access paths and materialized views. Using both provides comprehensive troubleshooting for I/O problems caused by SQL statements.

Multiple choice technology databases
  1. Limited

  2. Restricted

  3. Comprehensive

  4. Thorough

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

When submitting advisor analysis jobs, the 'Limited' scope adds the least overhead because it performs minimal analysis. 'Restricted' is not a valid job scope option in this context. 'Comprehensive' and 'Thorough' (though 'Thorough' is not standard Oracle terminology) would involve deeper analysis with more system overhead. Limited scope is the lightweight option for minimal system impact.

Multiple choice technology databases
  1. DBA_ADVISOR_FINDINGS

  2. DBA_ADVISOR_OBJECTS

  3. DBA_ADVISOR_RECOMMENDATIONS

  4. DBA_ADVISOR_RATIONALE

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

DBA_ADVISOR_RATIONALE is the view that contains the reasoning and justification behind ADDM recommendations. It explains WHY specific recommendations were made. DBA_ADVISOR_FINDINGS shows what problems were discovered, DBA_ADVISOR_OBJECTS lists affected objects, and DBA_ADVISOR_RECOMMENDATIONS contains the suggested solutions - but RATIONALE provides the explanatory reasoning.

Multiple choice technology databases
  1. SQL Tuning Advisor

  2. SGA Tuning Advisor

  3. Memory Advisor

  4. Pool Advisor

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

The Memory Advisor in Oracle determines if allocated memory for Shared Pool, Large Pool, and Buffer Cache is adequate. It analyzes memory usage patterns and provides recommendations for SGA component sizing. SQL Tuning Advisor focuses on SQL optimization, not memory allocation. SGA Tuning Advisor and Pool Advisor are not standard Oracle advisor names.

Multiple choice technology databases
  1. Undo Management Advisor

  2. SQL Access Advisor

  3. SQL Tuning Advisor

  4. MTTR Advisor

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

The MTTR (Mean Time To Recover) Advisor evaluates if the estimated instance recovery duration meets service-level agreement requirements. It analyzes Redo log file sizing and configuration to optimize recovery time. Undo Management Advisor focuses on undo tablespace management, while SQL Access and Tuning Advisors deal with SQL optimization - not recovery time estimation.

Multiple choice technology databases
  1. Run the SQL Tuning Advisor.

  2. Run the SQL Access Advisor.

  3. Check the EM Database Control main screen for alerts.

  4. Click the Alert Log Content link in the EM Database Control main screen.

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

The SQL Tuning Advisor is the appropriate first tool for analyzing and improving performance of a specific SQL statement showing high disk I/O. The SQL Access Advisor is for overall schema design (indexes/materialized views), not individual statement tuning. The main screen and alert log are for monitoring, not targeted SQL optimization.

Multiple choice technology databases
  1. Main screen

  2. Performance screen

  3. Administration screen

  4. Maintenance screen

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

The Performance screen in EM Database Control is the primary location to investigate sudden performance degradation, as it provides detailed metrics on wait events, throughput, and resource utilization. The Administration and Maintenance screens are for configuration and maintenance tasks, not performance diagnostics. The main screen only shows high-level alerts.

Multiple choice technology databases
  1. Host

  2. Session

  3. Instance

  4. Network

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

The three primary sources of performance metrics in the EM Performance screen are Host (operating system metrics), Session (user session activity), and Instance (database instance statistics). Network metrics are not one of the three primary sources - they may be available but are not fundamental to the Performance screen's three-tier view.

Multiple choice technology databases
  1. The PFILE/SPFILE parameter GATHER_STATS=FALSE.

  2. Only databases created using Database Configuration Assistant have automatic statistics

  3. The SYSMAN user who owns the AWR is not logged in.

  4. The operating system does not support automatic statistics collection.

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

Only databases created using the Database Configuration Assistant (DBCA) automatically have the statistics collection job configured. When you create databases manually with scripts, the automatic statistics collection procedure is not set up by default. This is a documented behavior, not a parameter or login issue.