11.) Which of the following platforms is supported by MongoDB?
A) Windows
B) macOS
C) Linux
D) All of the above
12.) Which of the following command enables authentication in MongoDB?
A) mongod –auth
B) mongo –auth
C) mongod –enableAuth
D) mongo –enableAuth
13.) What is the default database created during MongoDB installation?
A) test
B) admin
C) config
D) None
14.) What does the –bind_ip option specify in the MongoDB server?
A) Port for the server to listen on
B) IP addresses allowed to connect to the server
C) Authentication method
D) Path for logs
15.) Which of the following tools provides a GUI for managing MongoDB databases?
A) mongosh
B) MongoDB Compass
C) pgAdmin
D) MongoDB CLI
16.) Which of the following commands is used to take a backup of MongoDB data?
A) mongodump
B) mongorestore
C) mongoexport
D) mongoimport
17.) What is the purpose of the oplog in MongoDB?
A) To manage indexes
B) To track replication
C) To monitor server logs
D) To store schema validation rules
18.) How can you ensure MongoDB starts automatically after a system reboot?
A) Enable MongoDB as a system service
B) Add mongod to startup scripts
C) Use systemctl enable mongod on Linux
D) All of the above
19.) Which command initializes a replica set?
A) rs.init()
B) rs.start()
C) rs.initiate()
D) rs.setup()
20.) Which tool is used to import data into MongoDB from JSON or CSV files?
A) mongoimport
B) mongoexport
C) mongorestore
D) mongodump
Related