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
-
- Data about an organization's staff
-
- Data about accounting entries
-
- Data about an organization's structure
-
- Data about an organization's products
-
- Data about transaction activity
E
Correct answer
Explanation
Transaction activity records individual business events continuously in real-time, making it the most dynamic and frequently changing type of data. Product catalogs, organizational staff, and structural data are structural and change much less frequently.
-
- Capture and store data rules.
-
- Generate programs to extract data from a source system.
-
- Store data warehouse database designs.
-
- Store the layout or design of the load files.
-
- Generate programs to transform data.
-
- Database backups
-
- Time an uncommon query will take
-
- People entering data into the source database
-
- Number of tables in the data mart, so they do not exceed six tables
-
- Requirements of the department that will use the data mart
E
Correct answer
Explanation
Data mart design must begin with understanding the business requirements of the department that will use it. This determines what data to include, how to structure it, what metrics to calculate, and how to present the information. Database backups, query performance, data entry processes, and table counts are implementation or operational details that come after defining requirements.
-
Save Post Change
-
Post Build
-
Save Pre Change
-
Workflow
A
Correct answer
Explanation
Save Post Change is the PeopleTools event that fires after all database updates have been successfully completed. This event is part of the save processing cycle and occurs after Save Pre Change (which fires before updates) and the actual database commit, making it ideal for post-save processing and validation.
-
Temp Table
-
SQL Table
-
Query Table
-
Dynamic View
A
Correct answer
Explanation
Meta-SQL statements in PeopleTools are stored in Temp Tables within the PeopleSoft database. These temporary tables hold the dynamic SQL fragments and meta-SQL constructs that are resolved and assembled at runtime into executable SQL statements, providing flexibility and reusability in SQL generation.
-
Query results are bigger than the available space in the result cache are not cached
-
Query results are stored even when you explicitly use the /*+ no_result_cache */ hint in query.
-
All query results are stored in the result cache if possible.
-
Query results are stored only when you explicitly use the /*+ result_cache */ hint in your query
C
Correct answer
Explanation
RESULT_CACHE_MODE=FORCE forces all query results to be cached if possible, ignoring the /*+ no_result_cache */ hint. The FORCE setting means caching happens regardless of explicit hints. Results are cached when they fit in available cache space, but hints that disable caching are overridden.
-
They can be used as attributes of a user-defined data type.
-
They cannot use redo logging.
-
They cannot be passed as parameters to PL/SQL subprograms.
-
They can be stored in a tablespace that is different from the tablespace that stores the table containing the LOB column
A,D
Correct answer
Explanation
Internal LOBs can be used as attributes within user-defined data types (object types), allowing structured data with large object components. They also support separate tablespace storage from their parent table for better management. They DO use redo logging (contrary to option B) and CAN be passed as parameters to PL/SQL subprograms (contrary to option C).
-
SecureFiles storage can be used for internal and external LOBs
-
ASSM must be enabled for a tablespace to store SecureFile LOBs
-
SecureFile is the default storeage paradigm for all LOBs
-
SecureFile options enabled for a LOB column can be overridden on a per-LOB basis wihtin the LOB column
-
DDL report for all objects dependent on a table
-
DDL report for all the invalidated objects in a schema
-
data definition language (DDL) report for all the tables in a schema
-
DDL report for all the objects stored in a tablespace
A,C
Correct answer
Explanation
DBMS_METADATA package provides GET_DEPENDENT_DDL to retrieve DDL for all objects that depend on a specified object (like a table). GET_DDL can fetch DDL for objects of a specific type within a schema, such as all tables. It doesn't directly track object invalidation status (B is false) or provide tablespace-level object listings (D is false).
-
Application server
-
Web server
-
Batch server
-
Browser Cache
-
None of these
A
Correct answer
Explanation
When an Application Engine program is loaded into memory in PeopleSoft, the physical tables that the program will operate on are locked to prevent concurrent modifications. This ensures data integrity during program execution and prevents conflicts from other processes.
-
Clear itab
-
Free itab
-
Refresh itab
-
All of the above
B
Correct answer
Explanation
FREE itab both clears the content AND releases the memory occupied by the internal table. CLEAR only resets the content without releasing memory, and REFRESH typically works like CLEAR. For complete memory deallocation, FREE is the correct command.
-
mapping java classes to database tables
-
mapping of java data types to sql data types
-
data querying and retreival
-
all the above
D
Correct answer
Explanation
Hibernate is a comprehensive ORM framework that handles mapping Java classes to database tables, converting Java data types to SQL data types, and providing querying mechanisms like HQL and Criteria API for data retrieval.
-
Retreive Hibernate session
-
persist objects
-
Save session
-
config hibernate.cfg.xml
-
Object oriented Query language
-
Transparent persistence without byte code processing
-
High Perfomance
-
Automatic Composite Key generation
A,B,C
Correct answer
Explanation
Hibernate provides HQL (object-oriented query language), works with plain POJOs without bytecode instrumentation for transparent persistence, and offers high performance through caching and lazy loading. Automatic composite key generation is not a standard feature.