C100DBA · Question #16
'mongoimport' command is used for
The correct answer is A. Batch data insertion. mongoimport is a command-line utility that performs batch data insertion - it reads data from an external file (JSON, CSV, or TSV) and inserts all those records into a MongoDB collection in a single operation, making it efficient for bulk loading datasets. Why the distractors…
Question
'mongoimport' command is used for
Options
- ABatch data insertion
- BNone of the above
- CMultiple command import
- DMultiple command insertion
How the community answered
(34 responses)- A94% (32)
- B3% (1)
- D3% (1)
Explanation
mongoimport is a command-line utility that performs batch data insertion - it reads data from an external file (JSON, CSV, or TSV) and inserts all those records into a MongoDB collection in a single operation, making it efficient for bulk loading datasets.
Why the distractors are wrong:
- B (None of the above) is incorrect because A is a valid and accurate description.
- C (Multiple command import) is a meaningless phrase -
mongoimportdoesn't execute multiple commands; it imports data. - D (Multiple command insertion) conflates "insertion" with "commands." The tool inserts multiple documents, not multiple commands.
Memory tip: Think of mongoimport like importing a spreadsheet into a database - you're feeding a whole file of data in one batch, not running repeated individual insert commands. The "import" in the name itself signals reading from an external file source.
Topics
Community Discussion
No community discussion yet for this question.