Free MongoDB C100DEV Exam Questions

Become MongoDB Certified with updated C100DEV exam questions and correct answers

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

In a MongoDB collection named orders, you are tasked with retrieving a subset of documents that fulfill specific criteria. Each document in this collection contains the following fields: customerId, orderId, orderDate, and orderDetails (an embedded document with fields: product, quantity, unitPrice). You are required to fetch all orders made by the customer with a customerId of 1234 on a specific date 2023-04-12, and only return the orderId, orderDate, and product from orderDetails. Which of the following MongoDB queries would accurately fulfill these requirements?


Answer: A
Question 2

Suppose you have a products collection with an index:
{ product_category: 1 }
For which of the following queries can MongoDB look at only a subset of the index entries, rather than all of the index entries?


Answer: D
Question 3

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 4

Consider a collection named orders with the following documents:
{
   "_id" : ObjectId("5f0a7e80d8c9c7b5a48c49e1"),
   "order_number" : 1001,
   "customer_id" : "CUST-001",
   "order_date" : ISODate("2022-01-01T00:00:00Z"),
   "total_amount" : 199.99
},
{
   "_id" : ObjectId("5f0a7e80d8c9c7b5a48c49e2"),
   "order_number" : 1002,
   "customer_id" : "CUST-002",
   "order_date" : ISODate("2022-02-01T00:00:00Z"),
   "total_amount" : 299.99
},
{
   "_id" : ObjectId("5f0a7e80d8c9c7b5a48c49e3"),
   "order_number" : 1003,
   "customer_id" : "CUST-003",
   "order_date" : ISODate("2022-03-01T00:00:00Z"),
   "total_amount" : 399.99
}
What is the query to create a compound index on the "customer_id" (ascending) and "order_date" (descending) fields in the orders collection?


Answer: C
Question 5

Consider a collection named students with the following document:
{
   "_id" : ObjectId("5f0a7e80d8c9c7b5a48c49e1"),
   "name" : "Alice",
   "age" : 21,
   "courses" : [
      {
         "name" : "Math",
         "grade" : 89
      },
      {
         "name" : "Science",
         "grade" : 92
      }
   ]
}
What is the query to update the grade of the "Math" course for the student with "_id" equal to ObjectId("5f0a7e80d8c9c7b5a48c49e1") to 95?


Answer: C
Page:    1 / 83      
Total 411 Questions | Updated On: Dec 05, 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.