Free MongoDB C100DEV Exam Questions

Become MongoDB Certified with updated C100DEV exam questions and correct answers

Page:    1 / 83      
Total 411 Questions | Updated On: Jun 15, 2022
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'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 3

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 4

In a MongoDB database with referenced relationships, what is the advantage of using a separate collection for each entity over using a single collection for all entities?


Answer: A
Question 5

Which of the following constraints might impact your data model for MongoDB? (Select three)


Answer: B,C,E
Page:    1 / 83      
Total 411 Questions | Updated On: Jun 15, 2022
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.