Mongodb Certified Developer Associate C100dev · Free Practice Question Easy

Question 15

You are a MongoDB Associate Developer and need to demonstrate how to load the Atlas Sample Dataset into your MongoDB Atlas cluster. Your manager has asked you to guide a junior developer through this process to ensure they can independently load the dataset. What steps should the junior developer follow to successfully load the Atlas Sample Dataset?

  • A

    In MongoDB Compass, connect to your cluster, go to the "Import Data" tab, and import the sample dataset by uploading the sample-dataset.json file.

  • B

    Use the MongoDB Atlas API to send a POST request to the /loadSampleDataset endpoint, specifying your cluster ID in the request body.

  • C

    In MongoDB Atlas, navigate to the "Clusters" tab, click on the "Load Sample Dataset" button, and wait for the dataset to be fully loaded.

  • D

    Open the MongoDB Shell, connect to your cluster, and run the command mongoimport --db sample --collection datasets --file sample-dataset.json.

Reveal correct answer

Correct answer: C

A.

MongoDB Compass does allow you to import data into a MongoDB collection, but it requires a file to import. The Atlas Sample Dataset is loaded directly through the MongoDB Atlas interface and not through Compass. Additionally, the sample dataset isn't provided in a file format like sample-dataset.json for manual import.

B.

While MongoDB Atlas has an API, there isn't a /loadSampleDataset endpoint that can be used to load the Atlas Sample Dataset. The correct approach involves using the Atlas UI.

C.

This is the correct way to load the Atlas Sample Dataset. In MongoDB Atlas, after navigating to the "Clusters" tab, there is a "Load Sample Dataset" button available for each cluster. Clicking this button automatically loads a predefined dataset into your cluster, which includes various collections across multiple databases. No further action is required once you click the button, apart from waiting for the process to complete.

D.

The mongoimport command is used to import data from a file into a MongoDB database. However, the Atlas Sample Dataset is not provided as a downloadable .json file, and this command is not relevant to loading the dataset directly through MongoDB Atlas.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need