NoSQL_Quiz_Answers
NoSQL_Quiz_Answers
Answer: c. The difference between the relational model and in-memory data structures
3. What is the main difference between an integration database and an application database?
Answer: b. Integration databases are shared by multiple applications, while application databases
4. Why did large web properties like Google and Amazon start exploring alternatives to relational
8. What is the main difference between key-value and document data models?
Answer: c. Key-value databases treat the aggregate as opaque, while document databases can see
9. Which type of NoSQL database is best suited for handling data with complex relationships?
Answer: c. A precomputed and cached query that provides data organized differently from the
primary aggregates
14. Which distribution model is particularly helpful for scaling read-intensive datasets?
15. What is the main advantage of master-slave replication for read resilience?
Answer: b. Slaves can handle read requests even if the master fails
Answer: c. By having multiple masters, each responsible for a subset of data, and replicating data
18. What is a common strategy for column-family databases in terms of distribution models?
Answer: a. The minimum number of nodes that need to acknowledge a write to ensure strong
consistency
21. What is the main advantage of running processing logic on a cluster compared to a single
database server?
22. What is the purpose of the map function in the map-reduce pattern?
23. Which of the following statements about the reduce function in map-reduce is TRUE?
Answer: b. A reduce function that can be used to reduce data before it is sent across the network
26. What is the benefit of breaking down a complex map-reduce calculation into multiple stages?
Answer: d. It simplifies the logic of each stage and allows for potential reuse of intermediate results
Answer: c. A stored intermediate result of a map-reduce computation that can be reused for other
computations
Answer: b. By only recomputing the parts of the view that are affected by the new data
Answer: a. Map tasks can only operate on data from a single aggregate
30. What is the primary motivation for using map-reduce with NoSQL databases?
31. What is a key difference between documents in a document database and rows in a traditional
RDBMS?
Answer: d. Documents can have varying structures and attributes within the same collection
32. Which of the following is NOT a common data format used for documents in document
databases?
Answer: d. CSV
Answer: c. It acts as a unique identifier for each document, similar to ROWID in Oracle
Answer: b. By utilizing replica sets and allowing control over write propagation with the w parameter
Answer: d. To allow read operations to be served from secondary nodes, potentially improving read
performance
Answer: c. Transactions are generally limited to atomic operations within a single document, though
37. What is a key advantage of document databases' query features compared to key-value stores?
Answer: c. They enable querying based on data within the document without fetching the entire
document
38. How can document databases be scaled horizontally for read-intensive workloads?
Answer: b. By adding more secondary nodes to a replica set and configuring clients to read from
those secondaries.
Answer: d. To distribute data across multiple nodes, potentially enhancing both read and write
performance.
40. Which of the following is a use case where document databases are well-suited?
Answer: c. E-commerce applications with evolving product catalogs and order structures
44. What is a key advantage of graph databases over relational databases for storing graph-like
structures?
45. Why is traversing relationships typically faster in a graph database compared to a relational
database?
Answer: c. Graph databases persist relationships, so they don't need to be computed at query time
Answer: c. Neo4j
Answer: c. By using replicated slaves that can also handle write operations
Answer: c. To speed up the retrieval of nodes and edges based on property values
49. Which query language is specifically designed for traversing graph databases?
Answer: b. Cypher
50. What is a common approach for scaling graph databases when the dataset exceeds the RAM