Courseiva

C100DEV Drivers, Tools, Transactions, and Search Practice Question

A developer needs to quickly inspect the contents of a MongoDB collection and run ad-hoc queries during development. The developer prefers a command-line interface that supports JavaScript syntax and allows direct interaction with the database. Which MongoDB tool should be used?

⚠ Common exam trap

The trap here is assuming that MongoDB Compass, being a MongoDB tool, is command-line based, but it is actually a GUI.

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

✓

mongosh

mongosh is the official command-line shell for MongoDB, supporting JavaScript syntax and enabling direct interaction with the database for ad-hoc queries and administration. It is the appropriate tool for a developer who prefers a command-line interface. The other options are either GUI-based, cloud services, or specialized utilities not intended for interactive querying.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    MongoDB Compass

    Why it's wrong here

    MongoDB Compass is a graphical user interface (GUI) tool for visually exploring and manipulating data. While it allows ad-hoc queries, it is not a command-line interface and does not support JavaScript syntax directly. The developer specifically prefers a command-line interface, so Compass does not meet the requirement.

  • ✓

    mongosh

    Why this is correct

    mongosh is the MongoDB Shell, a command-line interface that supports JavaScript syntax and allows direct interaction with the database. It is designed for ad-hoc queries, administration, and development tasks. It meets the developer's preference for a command-line tool with JavaScript support.

  • ✗

    MongoDB Database Tools

    Why it's wrong here

    MongoDB Database Tools are a set of command-line utilities for tasks like importing, exporting, and backing up data (e.g., mongoimport, mongodump). They are not designed for interactive ad-hoc queries or JavaScript execution. Therefore, they do not meet the developer's needs.

  • ✗

    MongoDB Atlas

    Why it's wrong here

    MongoDB Atlas is a fully managed cloud database service. It provides a web-based interface and API access, but it is not a command-line tool for direct JavaScript interaction. While you can connect to Atlas using mongosh, Atlas itself is not the tool for ad-hoc queries in a command-line environment.

About these practice questions

Courseiva writes every C100DEV question from scratch — 259 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.