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 13, 2026
Add To Cart
Question 1

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


Answer: D
Question 2

You are designing a MongoDB collection to store information about books in a library. Each book document should contain the following fields:title: The title of the book (string).authors: An array of author names (array of strings).published_date: The publication date of the book (ISODate).categories: An array of categories or genres the book belongs to (array of strings).copies: An array containing details about each copy of the book, where each copy has an availability_status (string), location (string), and borrowed_date (ISODate) if the book is currently borrowed.Given this requirement, which of the following schemas correctly represents the document model for this use case? (Select two)


Answer: A,E
Question 3

Suppose you're designing a MongoDB database for an online ticket booking system where millions of users can concurrently book tickets for various events. To maintain data consistency, you need to ensure that only one user can book a specific seat for an event at a time. Which MongoDB feature would you use to ensure data consistency in this high-concurrency situation?


Answer: A
Question 4

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 5

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