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

There is a collection named products in MongoDB database. Your coworker wants to know how many products are in this collection (number of documents in the collection). Which query should you use? (Select two)


Answer: C,E
Question 3

Which of the following command skips the first 10 documents in the movies collection and returns all remaining documents?


Answer: D
Question 4

Consider the following scenario: You have a MongoDB collection named users that stores user information. Each document in the collection has the following structure:
{
  "_id": ObjectId("609fe4b5728ad805aef1a88d"),
  "name": "John Doe",
  "age": 30,
  "email": "johndoe@example.com",
  "address": {
    "street": "123 Main St",
    "city": "New York",
    "state": "NY",
    "zipcode": "10001"
  }
}
You need to retrieve all the documents from the users collection and convert them to an array format. Which of the following MongoDB queries should you use for this task?


Answer: B
Question 5

You have two collections in your MongoDB database: students and grades. The students collection contains the following document:
{
    "_id": ObjectId("64d5b0e5c9d95a76ac3ebed2"),
    "student_id": 1,
    "name": "Alice"
}
The grades collection contains the following documents:
{
    "_id": ObjectId("64d5b0e5c9d95a76ac3ebed3"),
    "student_id": 2,
    "course": "Math",
    "grade": "A"
},
{
    "_id": ObjectId("64d5b0e5c9d95a76ac3ebed4"),
    "student_id": 2,
    "course": "Science",
    "grade": "B"
}
You run the following aggregation query to retrieve students along with their grades:
db.students.aggregate([
    {
        $lookup: {
            from: "grades",
            localField: "student_id",
            foreignField: "student_id",
            as: "grades_details"
        }
    }
])
What will be the structure of the documents returned by this aggregation query for the student with student_id: 1?


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