Free MongoDB C100DEV Exam Questions

Become MongoDB Certified with updated C100DEV exam questions and correct answers

Page:    1 / 83      
Total 411 Questions | Updated On: Jun 03, 2025
Add To Cart
Question 1

As a MongoDB Developer, you are tasked with optimizing a MongoDB database. Your collection has documents with the following structure:
{
  "_id": ObjectId(),
  "user_id": Number,
  "user_data": {
    "name": String,
    "email": String,
    "phone": String,
    "address": {
      "city": String,
      "state": String,
      "country": String
    }
  },
  "transactions": [
    {
      "transaction_id": Number,
      "amount": Number,
      "date": Date
    }
  ]
}
The application frequently queries for the total transaction amount for users based on the city. Which index should you create to optimize the performance of these queries?


Answer: B
Question 2

Suppose you have a restaurants collection with the following document structure:

{

  _id: ObjectId("5eb3d668b31de5d588f42931"),

  address: {

    building: '6409',

    coord: [ -74.00528899999999, 40.628886 ],

    street: '11 Avenue',

    zipcode: '11219'

  },

  borough: 'Brooklyn',

  cuisine: 'American',

  grades: [

    {

      date: ISODate("2014-07-18T00:00:00.000Z"),

      grade: 'A',

      score: 12

    },

    {

      date: ISODate("2013-07-30T00:00:00.000Z"),

      grade: 'A',

      score: 12

    },

    {

      date: ISODate("2013-02-13T00:00:00.000Z"),

      grade: 'A',

      score: 11

    },

    { date: ISODate("2012-08-16T00:00:00.000Z"), 

      grade: 'A', 

      score: 2 },

    {

      date: ISODate("2011-08-17T00:00:00.000Z"),

      grade: 'A',

      score: 11

    }

  ],

  name: 'Regina Caterers',

  restaurant_id: '40356649'

}

You don't have any indexes so far. What will the query plan look like for the following query?

db.restaurants.find( { "cuisine": "American" } )


Answer: D
Question 3

We have a movies collection with the following document structure:
{
  _id: ObjectId("573a1390f29313caabcd6223"),
  genres: [ 'Comedy', 'Drama', 'Family' ],
  title: 'The Poor Little Rich Girl',
  released: ISODate("1917-03-05T00:00:00.000Z"),
  year: 1917,
  imdb: { rating: 6.9, votes: 884, id: 8443 }
},
{
  _id: ObjectId("573a13e3f29313caabdc08a4"),
  genres: [ 'Horror', 'Thriller' ],
  title: 'Mary Loss of Soul',
  year: 2014,
  imdb: { rating: '', votes: '', id: 2904798 }
}
We need to use Aggregation Framework to calculate the following aggregates:
average imdb rating
minimum imdb rating
maximum imdb rating
Expected output:
[
    {
        _id: null,
        avg_rating: 6.6934040649367255,
        min_rating: 1.6,
        max_rating: 9.6
    }
]
Please note that some documents have "" (empty string) for the field "imdb.rating". Exclude these documents before aggregation.
Which pipeline should you use?


Answer: C
Question 4

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?


Answer: A
Question 5

What is the best practice in using the $match operator?


Answer: D
Page:    1 / 83      
Total 411 Questions | Updated On: Jun 03, 2025
Add To Cart

© Copyrights DumpsCertify 2025. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsCertify.