MongoDB MCQ Questions and Answers
Practice ModeShowing 10 of 43 questions
Q11
Which of the following is web-based client software for MongoDB?
Answer: Option C
Explanation: Database Master is a web-based client for MongoDB.
Q12
What command is used to insert a document into a collection in MongoDB?
Answer: Option D
Explanation: `insertOne()` adds a single document.
Q13
Which MongoDB command removes all documents from a collection without dropping it?
Answer: Option B
Explanation: `remove({})` clears data but keeps the collection.
Q14
Which tool is similar to the UNIX/Linux top utility?
Answer: Option C
Explanation: `mongotop` monitors read/write activity.
Q15
Which of the following network analyzer fully supports MongoDB?
Answer: Option D
Explanation: Wireshark supports MongoDB protocol analysis.
Q16
Which utility is used to import JSON, CSV, or TSV into MongoDB?
Answer: Option C
Explanation: `mongoimport` loads data into collections.
Q17
Which tool creates a binary export of MongoDB contents?
Answer: Option B
Explanation: `mongodump` creates a binary backup.
Q18
What is the purpose of MongoDB's replication feature?
Answer: Option A
Explanation: Replication = copies of data across servers.
Q19
Which of the following file is not a MongoDB configuration file?
Answer: Option B
Explanation: Correct config file = `mongod.conf`.
Q20
What is the default port for MongoDB?
Answer: Option D
Explanation: Default MongoDB port = 27017.