MongoDB Basics is a foundational topic for understanding the NoSQL database. It introduces concepts such as databases, collections, and documents, and focuses on CRUD (Create, Read, Update, Delete) operations. These operations are vital for managing data efficiently. MongoDB supports flexible schema designs and various data types like String, Integer, Object, and Array, making it suitable for modern applications. For interview preparation, mastering these basics helps in explaining MongoDB’s advantages over traditional databases, practical query usage, and real-world data handling scenarios.
1.) What is the smallest unit of data in MongoDB?
2.) What is a collection in MongoDB?
3.) Which of the following commands creates a new database in MongoDB?
4.) Which of the following is not a valid MongoDB data type?
5.) What is the default size limit for a single MongoDB document?
6.) Which command lists all collections in the current database?
7.) What is the command to insert a document into a collection?
8.) Which of the following is a valid BSON data type?
9.) How do you query all documents from a collection?
10.) Which operator is used to match documents where a field’s value is greater than a specified value?