WorksheetsNoSQL & MongoDB
Total questions: 20
Worksheet time: 10mins
What does NoSQL stand for?
Not Optimized SQL
Non-SQL Databases
Not Only SQL
Non-Structured Query Language
Which of the following is a key feature of NoSQL databases?
Fixed schema
Joins required for data retrieval
Flexible schema
Limited scalability
Which type of scaling is commonly associated with NoSQL databases?
Vertical scaling
Horizontal scaling
Diagonal scaling
None of the above
In MongoDB, data is stored in which format?
Tables
Rows and columns
Documents
Key-Value Pairs
Which type of NoSQL database is MongoDB?
Key-Value Store
Document Database
Wide-Column Store
Graph Database
What is a BSON document?
A type of SQL query
A compressed version of JSON
Binary representation of JSON
None of the above
What is the process of increasing the capacity of a single machine called?
Horizontal scaling
Load balancing
Vertical scaling
Sharding
Which of the following is NOT a type of NoSQL database?
Document databases
Key-Value databases
Wide-column stores
Relational databases
In MongoDB, what is used to uniquely identify a document?
_docID
_id
docUUID
document_key
What is a disadvantage of vertical scaling?
High implementation cost
Increased latency
Single-point failure
Requires load balancers
Which NoSQL database type uses nodes and edges to store data?
Document database
Graph database
Key-Value store
Wide-column store
What does the term "schema-less" refer to in NoSQL databases?
The database does not store any data
Data is stored without a predefined structure
The database uses a strict schema
Data retrieval is impossible without a schema
Which database system is known for using tables and joins for data storage?
NoSQL
MongoDB
RDBMS
Cassandra
What is the main advantage of horizontal scaling?
Cost savings
No single-point of failure
Requires fewer servers
Higher hardware dependency
In MongoDB, which feature makes queries fast?
Data normalization
Complex joins
Data stored together that is accessed together
Use of indexes
Which of the following is an example of a vertical scaling solution?
Adding more servers
Increasing memory and storage on a single server
Implementing a load balancer
Sharding the database
What makes NoSQL suitable for Agile development environments?
Rigid schema design
Flexibility and scalability
High cost and complexity
Limited data structure support
How does MongoDB handle large volumes of data in terms of performance?
By using vertical scaling
Through the use of normalization
By storing data in JSON-like documents
By avoiding joins and using embedded documents
Which of the following is a disadvantage of horizontal scaling?
Single-point failure
Expensive to implement
Low latency
Requires fewer servers
What is a common use case for NoSQL databases like MongoDB?
Complex relational data storage
Small datasets with little variation
Real-time analytics and large-scale distributed systems
Static data with fixed schema
