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.
71. What is the primary purpose of sharding in MongoDB?
72. What does a "shard" represent in MongoDB sharding?
Answer:A physical server
73. How is data distributed across multiple shards in MongoDB?
Answer:By partitioning data based on the _id field
74. In MongoDB sharding, what is the role of the "mongos" process?
Answer:Query routing and distribution
75. Which shard key strategy in MongoDB ensures that data is evenly distributed across shards?
Answer:Hashed Shard Key
76. In MongoDB sharding, what is the purpose of a "config server"?
77. What happens when a shard in MongoDB becomes unavailable?
Answer:Data is frozen until the shard is repaired
78. Which MongoDB sharding strategy is suitable for time-series data?
Answer:Range-based Shard Key
79. What is the primary goal of sharding key selection in MongoDB?