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

You manage a MongoDB collection called inventory that stores documents for a store's inventory. Each document has the fields item, category, and quantity. You want to ensure that an item is always present in the collection, even if it needs to be inserted. Specifically, if the item "notebook" in the "Stationery" category does not exist, it should be inserted with a quantity of 50. If it does exist, its quantity should be updated to 50. You plan to use the following command:
db.inventory.updateOne(
  { "item": "notebook", "category": "Stationery" },
  { $set: { "quantity": 50 } },
  { upsert: true }
)
What will happen after executing this command if there is no "notebook" item in the "Stationery" category in the inventory collection?


Answer: D
Question 2

Consider the following situation: You are a MongoDB Developer and are currently working on an application that requires complex reporting on large amounts of data. The application stores its data in MongoDB, which has grown significantly. To maintain efficiency and manageability, you decide to use MongoDB views. You want to create a view "UsersView" that includes only username, email, and createdAt fields from the Users collection. Which of the following commands would you use?


Answer: A
Question 3

We have a movies collection with the following document structure:
{
  _id: ObjectId("573a1390f29313caabcd6223"),
  genres: [ 'Comedy', 'Drama', 'Family' ],
  title: 'The Poor Little Rich Girl',
  released: ISODate("1917-03-05T00:00:00.000Z"),
  year: 1917,
  imdb: { rating: 6.9, votes: 884, id: 8443 }
},
{
  _id: ObjectId("573a13e3f29313caabdc08a4"),
  genres: [ 'Horror', 'Thriller' ],
  title: 'Mary Loss of Soul',
  year: 2014,
  imdb: { rating: '', votes: '', id: 2904798 }
}
We need to use Aggregation Framework to calculate the following aggregates:
average imdb rating
minimum imdb rating
maximum imdb rating
Expected output:
[
    {
        _id: null,
        avg_rating: 6.6934040649367255,
        min_rating: 1.6,
        max_rating: 9.6
    }
]
Please note that some documents have "" (empty string) for the field "imdb.rating". Exclude these documents before aggregation.
Which pipeline should you use?


Answer: C
Question 4

As a MongoDB Developer, you are tasked with the deletion of specific documents in a collection named users. The documents to be deleted are those that meet the following criteria: the age field is less than 18 and the status field is "inactive". After the deletion, you need to know the count of the deleted documents. Which of the following commands would correctly perform this operation?


Answer: A
Question 5

In the context of MongoDB development, you are creating a new service that is expected to handle high load. You've decided to leverage the MongoDB drivers' connection pooling capability. What best describes connection pooling and its advantages?


Answer: C
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.