C100DBA practice question 5 of 25
Which mongodb tools allow us to work with our data in a human readable format?
Full set: 130 questionsThe mongoexport tool exports data from a MongoDB collection into a human-readable format like JSON or CSV. The mongoimport tool imports data from human-readable formats (JSON, CSV, TSV) into a collection. Both tools, therefore, allow a user to work with data in a human-readable text format, either for extraction or for ingestion. mongodump creates a binary BSON file, which is not human-readable. mongostat displays performance statistics, not collection data.
A. mongodump creates a binary (BSON) backup of data, which is not directly human-readable and is intended for machine processing and restoration via mongorestore.
B. mongostat is a diagnostic tool that provides a real-time view of database server statistics and performance metrics, not the data itself.
1. MongoDB Manual, mongoexport, "Output Formats". The documentation states, "mongoexport can export data in either comma-separated values (CSV) or JavaScript Object Notation (JSON) formats." (https://www.mongodb.com/docs/database-tools/mongoexport/#output-formats)
2. MongoDB Manual, mongoimport, "mongoimport". The documentation specifies it "imports content from an Extended JSON, CSV, or TSV file". (https://www.mongodb.com/docs/database-tools/mongoimport/)
3. MongoDB Manual, mongodump, "Behavior". It states, "mongodump reads data from a MongoDB database and creates high-performance BSON files." (https://www.mongodb.com/docs/database-tools/mongodump/#behavior)
Keep practicing
Take the free C100DBA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other C100DBA practice questions
- Question 1If the value of totalKeysExamined is 30000 and the value of totalDocsExamined is 0, which…
- Question 2The oplog (operations log) is a special capped collection that keeps a rolling record of …
- Question 3‘$set' sets the value of
- Question 4What does the totalKeysExamined field returned by the explain method indicate?
- Question 6Which of the following is incorrect statement about find and findOne operations in MongoD…
- Question 7In a sharded replicas set environment with multiple mongos servers, which of the followin…
