Importing Data Into MongoDB

What MongoDB utility can import data from JSON and other non-BSON formats?

a. mongoimport
b. mongodump
c. mongoexport
d. mongorestore

Answer:

Mongoimport is a MongoDB utility used for importing data from JSON and other non-BSON formats into a MongoDB database.

Explanation: The tool that can import data from JSON, and other supported non-BSON formats is mongoimport. This command-line utility is part of the MongoDB server package and is typically used for importing data from a JSON, CSV, or TSV file into a MongoDB database. On the other hand, mongodump and mongorestore are used for creating and deploying binary database backups, while mongoexport can be used to export data from MongoDB to JSON, CSV, or TSV formats.

← Security key strength and exhaustive search How to keep your kitchen clean and organized →