0% found this document useful (0 votes)
7 views

NoSQL Model Question (2)

The document provides a series of true or false statements regarding NoSQL databases, clarifying misconceptions about their nature and capabilities. It includes matching questions to associate NoSQL databases with their features, types, and origins, as well as fill-in-the-blank questions to reinforce understanding of key concepts. Overall, it emphasizes the flexibility, scalability, and various data models of NoSQL databases compared to traditional relational databases.

Uploaded by

izerepromesse295
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

NoSQL Model Question (2)

The document provides a series of true or false statements regarding NoSQL databases, clarifying misconceptions about their nature and capabilities. It includes matching questions to associate NoSQL databases with their features, types, and origins, as well as fill-in-the-blank questions to reinforce understanding of key concepts. Overall, it emphasizes the flexibility, scalability, and various data models of NoSQL databases compared to traditional relational databases.

Uploaded by

izerepromesse295
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Q1.

ANSWER BY TRUE OR FALSE

1. NoSQL databases are a type of relational database.

 False: NoSQL databases are non-relational and designed for unstructured or semi-structured
data.

2. All NoSQL databases use SQL for querying data.

 False: NoSQL databases use different query languages, not SQL, and often have their own query
methods

3. NoSQL databases can only handle key-value data.

 False: NoSQL databases can handle different types of data, including document, columnar, key-
value, and graph data.

4. NoSQL databases are not suitable for transactional applications.

 False: Some NoSQL databases, like MongoDB, support ACID transactions, but generally, they are
optimized for high scalability rather than strict transactional integrity.

5. NoSQL databases always outperform relational databases in all use cases.

 False: NoSQL databases excel in certain scenarios but relational databases are still better for
highly structured, transactional data.

6. NoSQL databases are best suited for large-scale applications with unstructured data.

 True: NoSQL databases can handle unstructured and semi-structured data efficiently.

7. MongoDB is an example of a NoSQL database.

 True: MongoDB is a document-based NoSQL database.

8. Cassandra is a NoSQL database that is designed for high availability and scalability.

 True: Cassandra is highly scalable and ensures high availability.

9. A key-value NoSQL database stores data as pairs of keys and values.

 True: In key-value stores like Redis, data is stored as pairs of keys and corresponding values.

10. A document-based NoSQL database stores data in formats like JSON or BSON.

 True: Document-based databases like MongoDB store data in JSON or BSON format.
7. In NoSQL databases, data consistency is always guaranteed.

 False: NoSQL databases often sacrifice consistency for scalability and availability (CAP theorem).

8. NoSQL databases can scale horizontally.

 True: NoSQL databases are designed to scale out by distributing data across multiple machines.

9. All NoSQL databases are schema-less.

 False: Some NoSQL databases, like column-family stores, have a flexible schema, but not all are
entirely schema-less.

10. Redis is a key-value NoSQL database.

 True: Redis is a key-value store that supports a variety of data types.

12. Graph databases are a type of NoSQL database.

 True: Graph databases are a type of NoSQL database designed to model relationships between
entities.

13. CouchDB is a document-based NoSQL database.

 True: CouchDB stores data in JSON format and is document-based.

15. HBase is a NoSQL column-family store.

 True: HBase is based on the Google Bigtable model and is a column-family store.

16. In a NoSQL database, data is typically stored in tables with rows and columns.

 False: NoSQL databases do not use traditional tables, rows, and columns. They use key-value
pairs, documents, or graphs, depending on the type.

18. NoSQL databases are ideal for applications with rapid changes in the data schema.

 True: NoSQL databases provide flexibility, making them suitable for applications with frequently
changing schemas.

19. Every NoSQL database supports the SQL-like query language.

 False: NoSQL databases generally have their own query languages or APIs that differ from SQL.

20. NoSQL databases are not ACID-compliant.


 False: Some NoSQL databases, like MongoDB, are ACID-compliant, but they are generally
optimized for different guarantees such as availability and partition tolerance.

22. Column-family NoSQL databases store data in a wide-column format.

 True: Column-family stores like HBase and Cassandra organize data into column families, which
group related data together.

23. NoSQL databases cannot handle complex queries involving joins.

 True: NoSQL databases typically avoid joins, instead favoring denormalized data models.

24. Amazon DynamoDB is an example of a NoSQL key-value store.

 True: DynamoDB is a key-value and document-based NoSQL database provided by Amazon.

25. NoSQL databases cannot be used for analytics or reporting purposes.

 False: Some NoSQL databases, like Apache HBase and Apache Cassandra, support analytics and
reporting with proper setup.

26. The CAP theorem applies to NoSQL databases.

 True: The CAP theorem (Consistency, Availability, Partition tolerance) describes the trade-offs in
distributed NoSQL databases.

27. SQL and NoSQL databases are completely incompatible.

 False: While SQL and NoSQL databases have different data models, many modern systems allow
for integration between the two.

28. A document-based NoSQL database stores data in formats like JSON or BSON.

 True: Document-based databases like MongoDB store data in JSON or BSON format.

29. NoSQL databases require specialized hardware and infrastructure.

 False: NoSQL databases are designed to run on commodity hardware and can be scaled
horizontally using clusters of servers.

30. NoSQL databases are often used for big data applications and real-time web apps.

 True: NoSQL databases are commonly used in big data environments and for real-time
applications due to their scalability and performance.

Q2. Matching Question

Matching Question 3: Match the NoSQL database feature to its description:

1. Sharding
2. Eventual Consistency

3. Horizontal Scaling

4. ACID Transactions

5. CAP Theorem

A. Guarantees data consistency over time


B. Splits data into smaller parts across multiple machines
C. Databases can grow by adding more servers
D. A trade-off between Consistency, Availability, and Partition tolerance
E. Ensures data integrity in multi-step operations

Answer:

 1 → B. Splits data into smaller parts across multiple machines (Sharding is the process of
distributing data across multiple servers.)

 2 → A. Guarantees data consistency over time (Eventual consistency means that, while data
may not be immediately consistent, it will eventually become consistent.)

 3 → C. Databases can grow by adding more servers (Horizontal scaling allows databases to grow
by adding more machines.)

 4 → E. Ensures data integrity in multi-step operations (ACID transactions ensure that all steps in
a transaction are completed successfully.)

 5 → D. A trade-off between Consistency, Availability, and Partition tolerance (The CAP theorem
states that distributed databases can only guarantee two of the three properties: Consistency,
Availability, and Partition tolerance.)

Matching Question 1: Match the NoSQL database with its type:

1. MongoDB

2. Cassandra

3. Redis

4. CouchDB

5. Neo4j

A. Document-based
B. Column-family
C. Key-value
D. Graph
E. Document-based

Answer:

 1 → A. Document-based (MongoDB is a document-based NoSQL database.)


 2 → B. Column-family (Cassandra is a column-family NoSQL database.)

 3 → C. Key-value (Redis is a key-value store.)

 4 → E. Document-based (CouchDB is also document-based.)

 5 → D. Graph (Neo4j is a graph database.)

: Match the NoSQL database to its company origin:

1. Cassandra

2. MongoDB

3. HBase

4. Neo4j

5. Redis

A. Facebook
B. 10gen (now MongoDB, Inc.)
C. Redis Labs
D. LinkedIn
E. Neo Technology

Answer:

 1 → D. LinkedIn (Cassandra was developed by Facebook engineers but was later used by
LinkedIn.)

 2 → B. 10gen (now MongoDB, Inc.) (MongoDB was developed by 10gen, which is now
MongoDB, Inc.)

 3 → A. Facebook (HBase was originally developed by Facebook, based on Google Bigtable.)

 4 → E. Neo Technology (Neo4j is developed by Neo Technology.)

 5 → C. Redis Labs (Redis was originally developed by Salvatore Sanfilippo and later maintained
by Redis Labs.)

Q3.Fill the missing Text


1. NoSQL databases are designed to handle ______________ data.

 Answer: unstructured or semi-structured

2. In a NoSQL database, data is often stored in formats such as ______________ or ______________.

 Answer: JSON, BSON

3. ______________ is a key-value store NoSQL database often used for caching.


 Answer: Redis

4. ______________ is an example of a document-based NoSQL database.

 Answer: MongoDB

5. A ______________ database stores data as a graph, using nodes and edges to represent
relationships.

 Answer: Graph

6. NoSQL databases are typically designed for ______________ scaling, meaning they can handle a
growing amount of work by adding more machines.

 Answer: horizontal

7. The ______________ theorem states that a distributed system can only guarantee two of the
following three properties: consistency, availability, and partition tolerance.

 Answer: CAP

8. In NoSQL databases, data can be stored in formats like key-value pairs, documents, columns, and
______________.

 Answer: graphs

9. ______________ is a column-family NoSQL database designed for high scalability and availability.

 Answer: Cassandra

10. In a document store, data is typically stored in a format such as ______________.

 Answer: JSON

11. NoSQL databases usually provide ______________ consistency, which means data may not be
immediately consistent but will eventually become consistent.

 Answer: eventual

12. ______________ is a NoSQL database that was originally designed for big data applications and is
based on the Google Bigtable model.

 Answer: HBase

13. MongoDB is considered a ______________ database because it stores data in a flexible, schema-
less format.

 Answer: document-based

14. A ______________ store is a type of NoSQL database that stores data as pairs of keys and values.

 Answer: key-value

15. ______________ is a wide-column NoSQL database that is highly optimized for large-scale, real-
time analytics.
 Answer: HBase

16. To scale NoSQL databases, data is often divided into ______________, which are distributed across
multiple servers.

 Answer: shards

17. A ______________ is a specialized NoSQL database used to store data that can be modeled as a
graph, such as social network relationships.

 Answer: graph database

18. MongoDB uses ______________ to allow for rich, expressive queries on data stored in BSON
format.

 Answer: the MongoDB query language

19. One of the advantages of NoSQL databases is their ability to handle ______________ schemas,
which means the structure of data can change over time.

 Answer: flexible

20. ______________ was originally developed by Facebook and is known for its ability to scale
horizontally and provide high availability.

 Answer: Cassandra

You might also like