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
-
When a login sequence needs to be recorded
-
When a particular application flow needs to be recorded
-
When in session parameter needs to be defined
-
When you need to test only a part of your application
B
Correct answer
Explanation
Multi-step operations record complex application flows requiring multiple sequential requests to reach a specific state or functionality. This includes multi-page forms, wizards, workflows where state changes across requests, or any scenario requiring navigation through several pages. It's not just for login sequences or parameter manipulation - it captures any complex user journey.
C
Correct answer
Explanation
In Oracle Data Guard standby databases, the ARCH (archiver) process is responsible for managing archived redo log files. It registers the logfiles in the standby database's archive destination. RFS (Remote File Server) receives redo data, MRP (Managed Recovery Process) applies it, and LGWR writes redo in the primary - but ARCH handles logfile registration.
-
Server process
-
DBWR
-
CKPT
-
PMON
A
Correct answer
Explanation
When a query needs data that's not in the buffer cache, the server process reads it from the datafile on disk into the database buffer cache in memory. DBWR writes dirty buffers to disk (opposite direction), CKPT is the checkpoint process, and PMON monitors processes - none read data files into memory. This is fundamental Oracle memory architecture.
-
It will give an error
-
PMON
-
Default listener is started but the instance wont be registered.
-
CJQn
B
Correct answer
Explanation
PMON (Process Monitor) dynamically registers the instance with the listener when there's no static registration in listener.ora. When you start the listener with 'lsnrctl start', it starts successfully, and PMON automatically registers the running instance with it. This is dynamic registration - the instance will be registered despite no listener.ora entry. CJQn is the job queue process, irrelevant here.
-
rake db:migrations
-
rake db:migrate
-
rake db:migrates
-
rake db:migrate project
B
Correct answer
Explanation
The correct Rails command is 'rake db:migrate' - this applies pending migrations to the database. Options A and C use incorrect verb forms ('migrations' and 'migrates' instead of 'migrate'), and D incorrectly adds 'project' as an argument. The Rails migration syntax follows the pattern 'rake db:taskname'.
-
database.xml
-
database.rb
-
database.yml
-
db_config.xml
C
Correct answer
Explanation
Rails uses YAML format for configuration files, and database settings are stored in config/database.yml. This file contains connection details for different environments (development, test, production). The .yml extension is standard for YAML files, not .xml or .rb.
-
Oracle
-
MySQL
-
Both of the above
-
Oracle, MySQL, Sybase, DB2
C
Correct answer
Explanation
The security API supports SQL string codecs for Oracle and MySQL databases, which are two of the most widely used enterprise databases. These codecs help prevent SQL injection by properly escaping or encoding SQL strings. While other databases exist, Oracle and MySQL coverage addresses a significant portion of the enterprise database market.
-
Critical transactions
-
Account Lockout
-
Page load times for all application pages
-
Login/Logout events for users
C
Correct answer
Explanation
Logging page load times for ALL application pages (C) is inappropriate for continuous logging because it generates excessive volume of low-value data. Continuous logging should focus on security-critical events like critical transactions, account lockouts, and authentication events. Page load times are better suited for performance monitoring systems, not security logging.
-
Data is validated against a list of values that are known to be valid
-
Data is validated against a list of values that are known to be invalid
-
Both of the above
-
None of the above
A
Correct answer
Explanation
Whitelist validation (also called positive validation) checks input against a known list of valid values - anything not on the list is rejected. This is more secure than blacklist validation because you explicitly define what's allowed. Option B describes blacklist validation, which is weaker. Whitelist examples: allowing only alphanumeric characters, or only specific file extensions.
-
The currently connected users will be disconnected.
-
There will be no effect on users.
-
remote users will not be allowed to spawn sessions.
-
None of the above
C
Correct answer
Explanation
If the database listener is terminated, existing connections continue to function unimpeded. However, new remote connections cannot be established because the listener is responsible for receiving and handshaking incoming connection requests.
B
Correct answer
Explanation
Redo log files in Oracle cannot be resized dynamically while the database is running. Instead, administrators must add new log file groups of the desired larger size and drop the old, smaller groups once they are no longer active, making the statement false.
-
OWB Repository
-
OWB Client
-
OWB Design Browser
-
OWB Runtime Audit Browser
-
OWB Runtime Assistant
E
Correct answer
Explanation
The OWB Runtime Assistant is used for administrative tasks including configuring the runtime repository, setting up target schemas in the database, and maintaining deployment information along with runtime audit/error logs. It bridges the gap between design and execution. The Repository stores metadata, Client designs, and other tools don't handle this setup.
-
Runtime repository and Object viewer
-
Client Viewer and Deployment manager
-
Runtime repository and Audit viewer
-
Repository and Repository service
C
Correct answer
Explanation
The OWB runtime architecture consists of two main components: the Runtime Repository (which stores runtime information, execution history, and statistics about ETL jobs) and the Audit Viewer (which provides a UI to view this runtime data through Oracle Enterprise Manager and other tools). These components work together to monitor, audit, and manage the execution of data warehouse processes. The Object Viewer is not a runtime component, and Deployment Manager is for deployment, not runtime monitoring.
-
Aegan
-
Yukon
-
Kilimanjaro
-
MSSQL
B
Correct answer
Explanation
SQL Server 2005 was codenamed 'Yukon' during its development. This internal name is used by Microsoft to identify projects before release. Aegan was never used, Kilimanjaro was SQL Server 2008's codename, and MSSQL is the product name not a codename.
-
Full
-
Simple
-
Bulk-Logged
-
None of the above
B
Correct answer
Explanation
The Simple recovery model does not support log backups - it automatically truncates the transaction log and minimally logs most operations. Full and Bulk-Logged recovery models both support log backups to enable point-in-time recovery.