C100DEV Drivers, Tools, Transactions, and Search Practice Question
A developer needs to import a large JSON file into a MongoDB collection named 'products' in the 'catalog' database. The file contains one JSON document per line (JSON Lines format). Which MongoDB tool should be used to accomplish this efficiently?
⚠ Common exam trap
Many candidates confuse mongorestore with mongoimport because both deal with data restoration, but only mongoimport handles JSON Lines files.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
mongoimport
The task requires importing a JSON Lines file into a MongoDB collection. mongoimport is the designated tool for importing JSON, CSV, or TSV data. It handles JSON Lines natively and is optimized for bulk imports. The other tools serve different purposes: mongorestore is for BSON backups, mongodump is for creating backups, and mongostat is for monitoring.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
mongoimport
Why this is correct
mongoimport is specifically designed to import data from JSON, CSV, or TSV files into a MongoDB collection. It supports JSON Lines format by default and can handle large files efficiently. It also provides options to specify the database, collection, and field types, making it the correct tool for this task.
- ✗
mongorestore
Why it's wrong here
mongorestore is used to restore binary BSON dumps created by mongodump. It expects a BSON file or directory structure, not a JSON Lines file. Using mongorestore on a JSON file would fail because it does not parse JSON Lines. It is not the appropriate tool for importing raw JSON data.
- ✗
mongodump
Why it's wrong here
mongodump is used to create binary backups of MongoDB data. It exports data in BSON format, not JSON. It is the opposite of what is needed here; it would create a dump from an existing database, not import JSON into a collection. Using it would not achieve the import goal.
- ✗
mongostat
Why it's wrong here
mongostat is a monitoring tool that provides real-time statistics about a running MongoDB instance. It does not import data. It is used for performance monitoring and troubleshooting, not for data ingestion. Using it would not import the JSON file and is completely irrelevant to the task.
About these practice questions
This C100DEV question is part of Courseiva's 259-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official MongoDB exam blueprint
This C100DEV practice question is part of Courseiva's free MongoDB certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the C100DEV exam.