MongoDB is a popular NoSQL database system renowned for its flexibility and scalability. It uses a document-oriented model, storing data in JSON-like BSON format, allowing for dynamic schemas and easy data manipulation. MongoDB's distributed architecture supports horizontal scaling, ensuring high availability and performance. It's widely utilized for applications requiring real-time data access and complex data structures. Its features include automatic sharding, replication, and support for geospatial data, making it a versatile choice for a broad range of industries, from e-commerce and social media to IoT and big data analytics.
Show All Answers
Practice Test
71. What is the primary purpose of sharding in MongoDB?
A. Data encryption
B. Data modeling
C. Horizontal scalability
D. Data replication
Show Answer
Report This Question
Answer: Horizontal scalability
72. What does a "shard" represent in MongoDB sharding?
A. A unique identifier
B. A physical server
C. A database collection
D. A data encryption key
Show Answer
Report This Question
Answer: A physical server
73. How is data distributed across multiple shards in MongoDB?
A. By distributing documents evenly across shards
B. By replicating data on all shards
C. By partitioning data based on the _id field
D. By randomly assigning data to shards
Show Answer
Report This Question
Answer: By partitioning data based on the _id field
74. In MongoDB sharding, what is the role of the "mongos" process?
A. Data storage
B. Data modeling
C. Query routing and distribution
D. Data encryption
Show Answer
Report This Question
Answer: Query routing and distribution
75. Which shard key strategy in MongoDB ensures that data is evenly distributed across shards?
A. Hashed Shard Key
B. Range-based Shard Key
C. Dynamic Shard Key
D. Static Shard Key
Show Answer
Report This Question
Answer: Hashed Shard Key
76. In MongoDB sharding, what is the purpose of a "config server"?
A. Data storage
B. Query routing
C. Data modeling
D. Data encryption
Show Answer
Report This Question
Answer: Query routing
77. What happens when a shard in MongoDB becomes unavailable?
A. Data is lost
B. Data is automatically redistributed
C. Data is frozen until the shard is repaired
D. Data is moved to another shard
Show Answer
Report This Question
Answer: Data is frozen until the shard is repaired
78. Which MongoDB sharding strategy is suitable for time-series data?
A. Hashed Shard Key
B. Range-based Shard Key
C. Dynamic Shard Key
D. Static Shard Key
Show Answer
Report This Question
Answer: Range-based Shard Key
79. What is the primary goal of sharding key selection in MongoDB?
A. To minimize data distribution
B. To maximize data distribution
C. To simplify query routing
D. To enforce data encryption
Show Answer
Report This Question
Answer: To minimize data distribution
80. In MongoDB, what is the role of a "balancer"?
A. Query routing
B. Data storage
C. Data distribution
D. Data modeling
Show Answer
Report This Question
Answer: Data distribution