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

What is the correct syntax to insert multiple documents into a MongoDB collection named orders and return the _id values for all inserted documents?


Answer: B
Question 2

In your database there is a collection named companies with the following document structure:
{
  name: 'Wize',
  relationships: [
    {
      is_past: false,
      title: 'Head of Product',
      person: {
        first_name: 'Ethan',
        last_name: 'Smith',
        permalink: 'ethan-smith'
      }
    },
    {
      is_past: true,
      title: 'Director, Business Development',
      person: {
        first_name: 'Stephanie',
        last_name: 'Quay',
        permalink: 'stephanie-quay'
      }
    },
    {
      is_past: true,
      title: 'Sr. Engineer',
      person: {
        first_name: 'Stefan',
        last_name: 'Antonowicz',
        permalink: 'stefan-antonowicz'
      }
    }
  ]
}
Which of the following queries should you use to extract all companies that have "Co-Founder" title in relationships field (Array)?


Answer: B
Question 3

Suppose you insert the following documents into a companies collection:
db.companies.insertMany([
    {"name": "Facebook"}, 
    {"name": "X"}
])
Select all true statements about this command. (Select three)


Answer: C,D,E
Question 4

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


Answer: D
Question 5

Given the following orders collection in MongoDB:
[
  {
    "_id": 1,
    "customer": "John",
    "orderDetails": [
      { "productId": "P1", "quantity": 2, "unitPrice": 50 },
      { "productId": "P2", "quantity": 1, "unitPrice": 30 }
    ]
  },
  {
    "_id": 2,
    "customer": "Sara",
    "orderDetails": [
      { "productId": "P1", "quantity": 3, "unitPrice": 50 },
      { "productId": "P3", "quantity": 2, "unitPrice": 20 }
    ]
  },
  {
    "_id": 3,
    "customer": "Peter",
    "orderDetails": [
      { "productId": "P2", "quantity": 2, "unitPrice": 30 },
      { "productId": "P4", "quantity": 1, "unitPrice": 100 }
    ]
  }
]
Which MongoDB query will find all orders that contain a product with the productId of "P1" and a quantity greater than 1?


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