nerdexam
MongoDB

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…

Backup and Recovery

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)
  • A
    94% (32)
  • B
    3% (1)
  • D
    3% (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 - mongoimport doesn'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

#mongoimport#batch insert#data import#bulk operations

Community Discussion

No community discussion yet for this question.

Full C100DBA Practice