Free MongoDB C100DEV Exam Questions

Become MongoDB Certified with updated C100DEV exam questions and correct answers

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

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


Answer: A
Question 2

Consider a MongoDB database containing a collection of documents representing online orders for an e-commerce website. The documents have the following structure:
{
   "_id": ObjectId("5f95a1d11a12b400001b75c0"),
   "order_number": "ORD-001",
   "order_date": ISODate("2022-01-01T00:00:00.000Z"),
   "customer": {
      "name": "John Doe",
      "email": "johndoe@example.com"
   },
   "items": [
      { "product_name": "Smartphone", "quantity": 2, "price": 800 },
      { "product_name": "Laptop", "quantity": 1, "price": 1500 }
   ],
   "shipping_address": {
      "street": "123 Main St",
      "city": "New York",
      "state": "NY",
      "zipcode": "10001"
   },
   "total_amount": 3000
}
Select an aggregation pipeline that returns the total sales amount by state and month, for orders placed in the year 2022. The result should have the following format:


Answer: A
Question 3

We have an accounts collection with the following document structure:
{
  _id: ObjectId("5ca4bbc7a2dd94ee5816239d"),
  account_id: 864905,
  limit: 10000,
  products: [ 'Commodity', 'InvestmentStock' ]
},
{
  _id: ObjectId("5ca4bbc7a2dd94ee5816239e"),
  account_id: 299072,
  limit: 10000,
  products: [ 'InvestmentFund', 'InvestmentStock' ]
},
{
  _id: ObjectId("5ca4bbc7a2dd94ee5816239f"),
  account_id: 137994,
  limit: 10000,
  products: [ 'CurrencyService', 'InvestmentStock' ]
}
We need to use Aggregation Framework to find the distribution of products field. Sort the result set by decreasing total number of products.
Expected output:
[
    { _id: 'InvestmentStock', total: 1746 },
    { _id: 'CurrencyService', total: 742 },
    { _id: 'Brokerage', total: 741 },
    { _id: 'InvestmentFund', total: 728 },
    { _id: 'Commodity', total: 720 },
    { _id: 'Derivatives', total: 706 }
]
Which pipeline should you use?


Answer: B
Question 4

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
Question 5

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
Page:    1 / 83      
Total 411 Questions | Updated On: Nov 24, 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.