What is a key-value store in NoSQL database systems?

  • A data store limited to string values only
  • A database system that exclusively uses foreign keys
  • A database system that stores data in a flexible, schema-less way using key-value pairs
  • A system that uses only numeric keys for data retrieval
In a NoSQL key-value store, data is stored as key-value pairs, where the key is a unique identifier and the value is the associated data. This model allows for efficient and fast retrieval of data, making it suitable for various applications like caching and session storage.

How does query optimization contribute to database performance tuning?

  • By improving the security of the database
  • By increasing the complexity of SQL queries
  • By increasing the storage space of the database
  • By reducing the execution time of SQL queries
Query optimization involves improving the efficiency of SQL queries, which in turn reduces the execution time. This is achieved through various techniques such as index optimization, query rewriting, and statistics collection, all aimed at enhancing the performance of database operations.

What is the difference between aggregation and summarization in data modeling?

  • Aggregation and summarization are interchangeable terms with no distinct difference.
  • Aggregation combines detailed data into a higher-level view, while summarization involves creating a concise summary of data.
  • Aggregation is used for numeric calculations, while summarization is for textual data.
  • Aggregation only works with relational databases, while summarization is more versatile.
In data modeling, aggregation involves the grouping of detailed data into a higher-level view, often using functions like COUNT, AVG, etc. Summarization, on the other hand, is the process of creating a concise summary of data, providing a more comprehensive overview. Understanding this difference is crucial for effective data modeling and reporting.

In an ERD, what does a cardinality of "One-to-One" signify?

  • Each entity in the first table can be related to at most one entity in the second table
  • Each entity in the first table can be related to multiple entities in the second table
  • Each entity in the first table can be related to only one entity in the second table
  • Each entity in the first table can be related to only one entity in the second table, and vice versa
A cardinality of "One-to-One" in an ERD signifies that each entity in the first table can be related to only one entity in the second table, and vice versa. This type of relationship is less common but is useful in certain scenarios where a strict one-to-one association is needed.

_______ compression algorithms utilize statistical methods to represent data more efficiently.

  • Adaptive
  • Entropy
  • Lossy
  • Predictive
Entropy compression algorithms utilize statistical methods to represent data more efficiently. These algorithms analyze the frequency of symbols in the data and assign shorter codes to more frequent symbols, resulting in overall compression.

What type of scalability is typically associated with Key-Value Stores?

  • Elastic scalability
  • Horizontal scalability
  • Static scalability
  • Vertical scalability
Key-Value Stores are typically associated with horizontal scalability, where the system can handle increased load by adding more machines or nodes. This enables better distribution of data and load across multiple servers, ensuring efficient and scalable performance.

What type of data format is commonly used for documents in document-based modeling?

  • CSV
  • JSON
  • XML
  • YAML
JSON (JavaScript Object Notation) is commonly used for documents in document-based modeling. JSON provides a lightweight, human-readable format that is easy to parse and manipulate. It is well-suited for representing semi-structured data commonly found in document databases.

One of the primary goals of denormalization is to optimize database _______.

  • Flexibility
  • Integrity
  • Normalization
  • Performance
The primary goal of denormalization is to optimize database performance. By reducing the number of joins and simplifying data retrieval, denormalization enhances query performance, making it suitable for scenarios where read operations are frequent.

In an Entity-Relationship Diagram, a _______ attribute is one that can be derived from other attributes.

  • Composite
  • Derived
  • Key
  • Multivalued
In an ERD, a Derived attribute is one that can be derived or calculated from other attributes in the database. It doesn't store data physically but can be computed based on other attribute values.

Scenario: A company has employees and departments. Each employee must be assigned to one department, but a department can have multiple employees. What cardinality and modality does this scenario represent?

  • Many-to-Many, Optional
  • Many-to-One, Mandatory
  • One-to-Many, Mandatory
  • One-to-One, Optional
This scenario represents a One-to-Many relationship with mandatory modality. Each department can have multiple employees (Many), while each employee must be assigned to one department (One). The modality is mandatory because every employee must be assigned to a department.