Free MongoDB C100DEV Exam Questions

Become MongoDB Certified with updated C100DEV exam questions and correct answers

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

Consider a collection named orders with the following documents:
{
   "_id" : ObjectId("5f0a7e80d8c9c7b5a48c49e1"),
   "order_id" : 101,
   "customer_name" : "John Doe",
   "order_date" : ISODate("2022-01-01T00:00:00.000Z"),
   "items" : [
      {
         "product_name" : "Apple",
         "quantity" : 2,
         "price" : 0.99
      },
      {
         "product_name" : "Banana",
         "quantity" : 5,
         "price" : 0.5
      }
   ]
}
 
{
   "_id" : ObjectId("5f0a7e80d8c9c7b5a48c49e2"),
   "order_id" : 102,
   "customer_name" : "Jane Doe",
   "order_date" : ISODate("2022-01-02T00:00:00.000Z"),
   "items" : [
      {
         "product_name" : "Orange",
         "quantity" : 3,
         "price" : 0.79
      },
      {
         "product_name" : "Mango",
         "quantity" : 2,
         "price" : 1.99
      }
   ]
}
 
{
   "_id" : ObjectId("5f0a7e80d8c9c7b5a48c49e3"),
   "order_id" : 103,
   "customer_name" : "Bob Smith",
   "order_date" : ISODate("2022-01-03T00:00:00.000Z"),
   "items" : [
      {
         "product_name" : "Peach",
         "quantity" : 4,
         "price" : 1.49
      },
      {
         "product_name" : "Pear",
         "quantity" : 1,
         "price" : 2.99
      }
   ]
}
What is the query to retrieve the total sales for each customer in the orders collection?


Answer: B
Question 2

How does MongoDB handle sorting on fields that contain missing values (i.e., values that are not present in all documents in the collection)?


Answer: C
Question 3

In MongoDB, the $out operator is commonly used within an aggregation pipeline. Which of the following statements accurately describes the functionality and usage of the $out operator?


Answer: A
Question 4

A MongoDB collection named logs is used to store event data for a web application. The collection originally had indexes on the timestamp, user_id, and event_type fields to facilitate fast queries on these fields. Due to a recent data archiving strategy, you decide to remove the index on event_type to save storage space. However, after doing so, some queries on the logs collection have slowed down considerably, especially those filtering by event_type. What is the most likely ramification of deleting the index on the event_type field?


Answer: D
Question 5

When sharding a MongoDB collection, what is the main factor that determines the distribution of data across shards?


Answer: D
Page:    1 / 83      
Total 411 Questions | Updated On: Jan 29, 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.