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

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

What is the best practice in using the $match operator?


Answer: D
Question 3

In your database there is a collection named trips with the following document structure:
{
  '_id': ObjectId("572bb8222b288919b68abf6d"),
  'trip_duration': 858,
  'start_station id': 532,
  'end_station_id': 401,
  'bike_id': 17057,
  'start_station_loc': { type: 'Point', coordinates: [ -73.960876, 40.710451 ] },
  'end_station_loc': { type: 'Point', coordinates: [ -73.98997825, 40.72019576 ] },
  'start_time': ISODate("2016-01-01T00:09:31.000Z"),
  'stop_time': ISODate("2016-01-01T00:23:49.000Z")
}
How can you extract all trips from this collection ended at stations that are to the west of the -73.5 longitude coordinate?


Answer: C
Question 4

Which of the following stages do you need to use to randomly select 10 documents from a specific collection?


Answer: D
Question 5

Consider a tasks collection that holds task records. The document structure is as follows:
{
  "_id": ObjectId("64b64c58ed01c0a5e72dbf5f"),
  "task": "Review PR",
  "status": "pending",
  "assignedTo": "alice"
}
Two operations are performed concurrently:
Operation A:

db.tasks.findAndModify({
    query: { task: "Review PR", status: "pending" },
    remove: true
});
Operation B:
db.tasks.findAndModify({
    query: { task: "Review PR", status: "pending" },
    update: { $set: { status: "completed" } },
    new: true
});
Operation B starts slightly after Operation A but before Operation A completes. What will be the final state of the tasks collection after both operations have been executed?


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.