Question:- Define MongoDB.
Answer:- It is a document-oriented database that is used for high availability, easy scalability, and high performance. It supports the dynamic schema design.
Question:- Explain the replica set.
Answer:- It is a group of mongo instances that maintains the same dataset. Replica sets provide redundancy and high availability and are the basis for all production deployments.
Question:- What are the key features of MongoDB?
Answer:- There are three main features of MongoDB: • Automatic scaling • High performance • High availability
Question:- What is CRUD?
Answer:- MongoDB provides CRUD operations: Create Read Update Delete
Question:- What is Sharding?
Answer:- In MongoDB, sharding means to store data on multiple machines.
Question:- What is Aggregation in MongoDB?
Answer:- In MongoDB, aggregations are operations that process data records and return computed results.
Question:- Define Namespace in MongoDB.
Answer:- It is the concatenation of the collection name and the name of the database.
Question:- Which syntax is used to create a Collection in MongoDB?
Answer:- We can create a collection in MongoDB using the following syntax: db.createCollection(name,options)
Question:- Which syntax is used to drop a Collection in MongoDB?
Answer:- We can use the following syntax to drop a collection in MongoDB: db.collection.drop()
Question:- Explain Replication.
Answer:- Replication is the process of synchronizing data across multiple servers.
Question:- What is the use of an Index in MongoDB?
Answer:- In MongoDB, indexes provide high-performance read operations for frequently used queries.
Question:- Which command is used for inserting a document in MongoDB?
Answer:- The following command is used for inserting a document in MongoDB: database.collection.insert (document)
Question:- What is the use of GridFS in MongoDB?
Answer:- GridFS is used for storing and retrieving large files, such as audio, image, and video files.
Question:- What is the use of Journaling in MongoDB?
Answer:- Journaling is used for safe backups in MongoDB.
