Define database.
A structured collection of data that can be accessed, managed, and updated.
What are the two main types of databases?
Relational and NoSQL databases.
True or false: Normalization reduces data redundancy.
TRUE
Normalization organizes data to minimize duplication and improve integrity.
Fill in the blank: Indexing improves _______ speed in databases.
Query
What does ACID stand for in databases?
Atomicity, Consistency, Isolation, Durability.
True or false: BASE is an alternative to ACID.
TRUE
BASE stands for Basically Available, Soft state, Eventually consistent.
What is a transaction in a database?
A sequence of operations performed as a single logical unit of work.
Define sharding.
The process of splitting a database into smaller, more manageable pieces called shards.
What is replication in databases?
The process of copying and maintaining database objects in multiple locations.
What does the CAP theorem state?
A distributed data store can only guarantee two of the three: Consistency, Availability, Partition tolerance.
Fill in the blank: Denormalization is the process of _______ normalization.
Reversing
True or false: A primary key uniquely identifies a record in a table.
TRUE
Primary keys ensure that each record is distinct.
What is a foreign key?
A field in one table that uniquely identifies a row in another table.
Define data integrity.
The accuracy and consistency of data over its lifecycle.
What is the purpose of a join in SQL?
To combine rows from two or more tables based on a related column.
Fill in the blank: NoSQL databases are designed for _______ data models.
Flexible
What is a view in a database?
A virtual table based on the result of a query.
True or false: Stored procedures are precompiled SQL statements.
TRUE
Stored procedures improve performance and security.
What is data warehousing?
The process of collecting and managing data from various sources for analysis.
Define schema.
The structure that defines the organization of data in a database.
What is a trigger in a database?
A set of instructions that automatically execute in response to certain events.
Fill in the blank: Replication can be synchronous or _______.
Asynchronous
What is data modeling?
The process of creating a data model to represent data structures and relationships.
True or false: Horizontal scaling involves adding more machines.
TRUE
Horizontal scaling increases capacity by adding more servers.