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.

← Murder mystery in algebra 2 and pre calculus can you solve the case Creating a c program to parse command line tokens →