DBMS Assignment 4
DBMS Assignment 4
Sl. Questions
Q1. The CAP Theorem states that a distributed database system can guarantee at most two of the following
three properties: Consistency, Availability, and Partition Tolerance.
• Describe which two properties a system would typically prioritize under different
circumstances (e.g., for an e-commerce website or a stock market trading platform).
Q2. NoSQL databases provide flexible storage models compared to relational databases. There are different
types of NoSQL databases.
1. Describe the four main types of NoSQL databases (Document-based, Key-Value,
Column-family, and Graph) and provide examples for each.
2. How do NoSQL databases address scalability and flexibility in comparison to traditional
relational databases?
1. Compare MongoDB (Document-based NoSQL) with Cassandra (Column-family NoSQL),
highlighting the advantages and disadvantages of each for handling large-scale applications.
Q3. 1. Explain the concept of hashing in the context of NoSQL databases. How does hashing help
with data retrieval and partitioning in distributed databases?
2. Discuss hash-based partitioning in systems like Cassandra and how it ensures scalability and
availability across distributed nodes.
3. Compare hashing techniques with range-based partitioning. In which scenarios would each
be more suitable, and why?
Q4. 1. Explain the importance of data storage techniques in NoSQL databases. How do they differ
from traditional relational databases in terms of data distribution and storage optimization?
2. Describe the role of indexing in NoSQL databases. Provide examples of common indexing
methods (e.g., B-trees, hash indexes) and how they are used to speed up queries.
3. How does MongoDB’s indexing work and what types of indexes can be created in MongoDB to
optimize query performance?
Q5. 1. Explain the history of MongoDB and how it evolved as a popular NoSQL database.
2. Describe the key features of MongoDB, including its data model and how it differs from
relational databases.
3. Outline the installation and configuration steps for MongoDB on a Linux environment.
4. What are the core servers and tools that come with MongoDB, and how do they contribute to
database administration?