In database partitioning, what does range partitioning involve?

  • Dividing data based on alphabetical order
  • Dividing data based on specified ranges of values
  • Dividing data based on the number of rows
  • Dividing data randomly
Range partitioning involves dividing data based on specified ranges of values. This is useful for scenarios where data is logically ordered, such as by date or numeric range. It helps in optimizing queries by narrowing down the search space within each partition.

Scenario: A social media platform needs to ensure that all users see the most recent posts made by their friends. Which consistency model would you recommend for their NoSQL database?

  • Bounded Staleness
  • Causal Consistency
  • Eventual Consistency
  • Strong Consistency
For a social media platform prioritizing consistency, Strong Consistency is recommended. This ensures that all users see the most recent posts made by their friends without any delay or inconsistency across different nodes of the database.

Scenario: An online store has customers and orders. Each customer can place multiple orders, but an order must belong to one customer. What cardinality and modality does this scenario illustrate?

  • Many-to-Many, Optional
  • Many-to-One, Optional
  • One-to-Many, Mandatory
  • One-to-One, Mandatory
This scenario illustrates a One-to-Many relationship with mandatory modality. Each customer can place multiple orders (Many), but each order must belong to one customer (One). The modality is mandatory because every order must be associated with a customer.

In a distributed database system, _______ partitioning involves replicating data across multiple nodes.

  • Hash
  • Range
  • Replication
  • Vertical
In a distributed database system, replication partitioning involves copying or duplicating data across multiple nodes. This is done to enhance fault tolerance and improve data availability by having redundant copies of the data on different nodes within the distributed environment.

The choice between different Slowly Changing Dimensions (SCD) types depends on the balance between _______ and _______.

  • Accuracy, Efficiency
  • Complexity, Performance
  • Flexibility, Storage
  • Integrity, Scalability
The choice of SCD types depends on finding a balance between the need for flexibility in tracking changes and the impact on storage requirements. For example, Type 2 provides historical tracking but may increase storage needs, while Type 1 sacrifices history for simplicity and better performance.

What is the purpose of a CHECK constraint in a relational database?

  • Checks the existence of indexes on specified columns
  • Enforces rules on the values allowed in a column or columns
  • Validates the syntax of SQL statements
  • Verifies the referential integrity of the database
A CHECK constraint in a relational database enforces rules on the values allowed in a column or columns. It ensures that data entered into the database meets specified criteria, providing a mechanism for controlling and restricting the range of acceptable values.

What are some common challenges associated with data partitioning in distributed databases?

  • All of the above
  • Difficulty in maintaining referential integrity
  • Increased complexity of query optimization
  • Overhead in managing data distribution
Data partitioning in distributed databases introduces challenges such as increased complexity of query optimization, overhead in managing data distribution, and difficulty in maintaining referential integrity. All these challenges need careful consideration for designing an efficient distributed database system.

What distinguishes ER diagram tools at the intermediate level from basic diagramming software?

  • Advanced color and formatting options
  • Collaboration features for team-based design
  • Integration with cloud storage services
  • Support for database-specific features like relationships and cardinality
ER diagram tools at the intermediate level distinguish themselves from basic diagramming software by providing support for database-specific features such as relationships and cardinality. These tools are tailored for database design, offering functionalities that cater to the specific needs of designing database schemas.

_______ indexing is a technique where the index entries point directly to the corresponding data blocks.

  • Bitmap
  • Clustered
  • Direct
  • Primary
Direct indexing is a technique where the index entries point directly to the corresponding data blocks. This method enhances the speed of data retrieval as it reduces the number of steps to access the required data.

The process of periodically reorganizing or rebuilding indexes to improve their efficiency is known as index _______.

  • Maintenance
  • Optimization
  • Reallocation
  • Refactoring
The process of periodically reorganizing or rebuilding indexes to improve their efficiency is known as index maintenance. It involves tasks such as defragmentation and updating statistics to ensure optimal query performance.