NoSQL Model Question (2)
NoSQL Model Question (2)
False: NoSQL databases are non-relational and designed for unstructured or semi-structured
data.
False: NoSQL databases use different query languages, not SQL, and often have their own query
methods
False: NoSQL databases can handle different types of data, including document, columnar, key-
value, and graph data.
False: Some NoSQL databases, like MongoDB, support ACID transactions, but generally, they are
optimized for high scalability rather than strict transactional integrity.
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.
8. Cassandra is a NoSQL database that is designed for high availability and scalability.
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).
True: NoSQL databases are designed to scale out by distributing data across multiple machines.
False: Some NoSQL databases, like column-family stores, have a flexible schema, but not all are
entirely schema-less.
True: Graph databases are a type of NoSQL database designed to model relationships between
entities.
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.
False: NoSQL databases generally have their own query languages or APIs that differ from SQL.
True: Column-family stores like HBase and Cassandra organize data into column families, which
group related data together.
True: NoSQL databases typically avoid joins, instead favoring denormalized data models.
False: Some NoSQL databases, like Apache HBase and Apache Cassandra, support analytics and
reporting with proper setup.
True: The CAP theorem (Consistency, Availability, Partition tolerance) describes the trade-offs in
distributed NoSQL databases.
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.
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.
1. Sharding
2. Eventual Consistency
3. Horizontal Scaling
4. ACID Transactions
5. CAP Theorem
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.)
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. 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.)
5 → C. Redis Labs (Redis was originally developed by Salvatore Sanfilippo and later maintained
by Redis Labs.)
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
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.
18. MongoDB uses ______________ to allow for rich, expressive queries on data stored in BSON
format.
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