Quick Revision

GK One-Line Question & Answer

15541+ short questions with short answers, covering every category and sub-category on the site — no long articles to scroll through. Good for a fast recap before an exam, or a few minutes of daily practice.

DBMS → Introduction to DBMS 16

In DBMS terminology a schema is:
The overall design or logical structure of the database
click to copy
What is the instance of a database?
The actual data stored in the database at a particular moment in time
click to copy
Which component converts high-level queries into efficient low-level operations?
Query Optimizer
click to copy
What is data independence fundamentally protecting against?
The ripple effect of changes in one schema level propagating to another
click to copy
Which is a characteristic of an active database?
It can automatically trigger actions via triggers in response to database events
click to copy
In DBMS terminology a relation is equivalent to:
A table
click to copy
Which statement about NULL values is most accurate?
NULL represents an unknown, missing, or inapplicable value
click to copy
The ANSI/SPARC three-schema architecture was proposed primarily to achieve:
Data independence between different levels of database abstraction
click to copy
Which DBMS architecture is most suitable for internet-scale applications?
Three-tier architecture
click to copy
What distinguishes a primary key constraint from a unique constraint?
Primary key does not allow NULL values and must be unique; unique allows one NULL
click to copy
What is the primary purpose of a buffer manager in a DBMS?
Manages transfer of data between disk and main memory to minimize I/O
click to copy
Semantic integrity in DBMS refers to:
Ensuring data satisfies real-world constraints and business rules beyond syntactic correctness
click to copy
Which is a correct statement about ORDBMS?
ORDBMS extends the relational model with object-oriented features like user-defined types and methods
click to copy
What is the primary purpose of a transaction log in a DBMS?
To maintain a record of all database changes for recovery and rollback purposes
click to copy
What is a deductive database?
A database that uses rules to deduce new facts from stored facts
click to copy
In DBMS what is the data dictionary and why is it important?
A system repository storing metadata about all database objects used by the DBMS engine for query processing, optimization, and integrity enforcement
click to copy

DBMS → Database Architecture 24

In shared-nothing architecture what do nodes share?
Nothing - each node has its own memory, CPU and storage
click to copy
Which correctly describes shared-memory vs shared-disk architectures?
Shared-memory: all processors access one common memory; shared-disk: separate memories but common disk
click to copy
What is a federated database system?
A collection of autonomous heterogeneous database systems appearing as a single unified system
click to copy
What is the primary role of the storage manager in DBMS architecture?
Providing the interface between the high-level DML and low-level data storage
click to copy
In a two-tier client-server architecture what is a major limitation?
Business logic embedded in the client makes maintenance difficult
click to copy
What is middleware in a three-tier database architecture?
Software layer between the client presentation tier and the database tier handling business logic
click to copy
What is the primary advantage of connection pooling?
It reuses established database connections reducing overhead of creating new connections for each request
click to copy
The query processor in a DBMS consists of which components?
DDL interpreter, DML compiler, and query evaluation engine
click to copy
Which architectural pattern does Apache Hadoop use?
Shared-nothing architecture with MapReduce
click to copy
What is data sharding in distributed database architecture?
Horizontally partitioning data across multiple database nodes based on a shard key
click to copy
The CAP theorem states you can only guarantee at most two of:
Consistency, Availability, Partition Tolerance
click to copy
In a Lambda architecture the speed layer is responsible for:
Processing real-time streaming data to provide low-latency approximate results
click to copy
Column-store database architecture is better suited for OLAP because:
Storing values of each column contiguously enables high compression and allows reading only required columns reducing I/O for aggregation queries
click to copy
What is the purpose of Write-Ahead Logging (WAL)?
To ensure all changes are logged to disk before they are applied enabling recovery after failures
click to copy
What is the difference between synchronous and asynchronous replication?
Synchronous waits for replica confirmation before committing; asynchronous commits immediately and replicates later
click to copy
What is MVCC (Multi-Version Concurrency Control)?
A concurrency control mechanism that maintains multiple versions of data to allow reads without blocking writes
click to copy
What is the purpose of a materialized view?
Materialized views physically store precomputed query results improving performance at the cost of storage and refresh overhead
click to copy
In a distributed database the 2PC protocol is used to:
Ensure atomicity of distributed transactions across multiple database nodes
click to copy
What is the database-per-service pattern in microservices?
Each microservice owns its private database preventing direct access by other services
click to copy
What is the primary architectural difference between OLTP and OLAP systems?
OLTP optimizes for many short transactions with point lookups; OLAP optimizes for complex analytical queries over large datasets
click to copy
Which component is responsible for lock management in concurrent transactions?
Lock Manager (part of Concurrency Control Manager)
click to copy
What is the SAGA pattern in microservices database architecture?
It manages long-running distributed transactions without using 2PC using a sequence of local transactions with compensating transactions
click to copy
What is data partitioning and how does horizontal differ from vertical?
Horizontal partitioning splits rows across multiple partitions; vertical partitioning splits columns across multiple tables
click to copy
What is NUMA and how does it affect database architecture?
A memory architecture where processors have different latencies to different memory regions requiring NUMA-aware data placement
click to copy