Free MongoDB C100DEV Exam Questions

Become MongoDB Certified with updated C100DEV exam questions and correct answers

Page:    1 / 83      
Total 411 Questions | Updated On: Apr 02, 2026
Add To Cart
Question 1

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 2

What command can you use to create a capped collection named latest_news that will be limited to 3 documents and 10,000 bytes?


Answer: B
Question 3

You are developing a MongoDB application where write performance is a critical requirement. Given a scenario where your application primarily performs insert operations and rarely performs updates or deletes, which of the following MongoDB features would best optimize this heavy-write workload?


Answer: D
Question 4

You have two collections in your MongoDB database: students and grades. The students collection contains the following document:
{
    "_id": ObjectId("64d5b0e5c9d95a76ac3ebed2"),
    "student_id": 1,
    "name": "Alice"
}
The grades collection contains the following documents:
{
    "_id": ObjectId("64d5b0e5c9d95a76ac3ebed3"),
    "student_id": 2,
    "course": "Math",
    "grade": "A"
},
{
    "_id": ObjectId("64d5b0e5c9d95a76ac3ebed4"),
    "student_id": 2,
    "course": "Science",
    "grade": "B"
}
You run the following aggregation query to retrieve students along with their grades:
db.students.aggregate([
    {
        $lookup: {
            from: "grades",
            localField: "student_id",
            foreignField: "student_id",
            as: "grades_details"
        }
    }
])
What will be the structure of the documents returned by this aggregation query for the student with student_id: 1?


Answer: B
Question 5

What is the difference between a sparse index and a non-sparse index in MongoDB?


Answer: A
Page:    1 / 83      
Total 411 Questions | Updated On: Apr 02, 2026
Add To Cart

© Copyrights DumpsCertify 2026. All Rights Reserved

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