Free MongoDB C100DEV Exam Questions

Try our Free Demo Practice Tests for Comprehensive C100DEV Exam Preparation

  • MongoDB C100DEV Exam Questions
  • Provided By: MongoDB
  • Exam: MongoDB Certified Developer Associate
  • Certification: MongoDB Certified Developer Associate
  • Total Questions: 411
  • Updated On: Sep 28, 2024
  • Rated: 4.9 |
  • Online Users: 822
Page No. 1 of 83
Add To Cart
  • Question 1
    • We have the following index in a movies collection:
      { title: 1, genres: 1 }
      We want to insert the following document:
      {
        "title": "The Immigrant",
        "year": 1917,
        "genres": [
            "Short",
            "Comedy",
            "Drama"
        ]
      }
      Select proper index entries.

      Answer: D
  • Question 2
    • What is the best practice in using the $match operator?

      Answer: D
  • Question 3
    • Suppose you have a companies collection in your database. Only the following documents are stored in this collection:
      {
        _id: ObjectId("52cdef7c4bab8bd675297da4"),
        name: 'Powerset',
        category_code: 'search',
        founded_year: 2006
      },
      {
        _id: ObjectId("52cdef7c4bab8bd675297da5"),
        name: 'Technorati',
        category_code: 'advertising',
        founded_year: 2002
      },
      {
        _id: ObjectId("52cdef7c4bab8bd675297da7"),
        name: 'AddThis',
        category_code: 'advertising',
        founded_year: 2004
      },
      {
        _id: ObjectId("52cdef7c4bab8bd675297da8"),
        name: 'OpenX',
        category_code: 'advertising',
        founded_year: 2008
      },
      {
        _id: ObjectId("52cdef7c4bab8bd675297daa"),
        name: 'Sparter',
        category_code: 'games_video',
        founded_year: 2007
      },
      {
        _id: ObjectId("52cdef7c4bab8bd675297dac"),
        name: 'Veoh',
        category_code: 'games_video',
        founded_year: 2004
      },
      {
        _id: ObjectId("52cdef7c4bab8bd675297dae"),
        name: 'Thoof',
        category_code: 'web',
        founded_year: 2006
      }
      What is the default sort order in the result set returned in response to the following query?
      db.companies.aggregate( [ { "$sortByCount": "$category_code" } ] )

      Answer: B
  • Question 4
    • Suppose you have an accounts collection with the following document structure:
      {
        _id: ObjectId("61af47c6e29861661d063714"),
        account_id: 1010,
        type: 'investment',
        limit: 1000000
      },
      {
        _id: ObjectId("61af47c6e29861661d063715"),
        account_id: 4336,
        type: 'derivatives',
        limit: 100000
      },
      {
        _id: ObjectId("61af47c6e29861661d063716"),
        account_id: 4336,
        type: 'commodity',
        limit: 1000
      }
      Which of the following documents would be modified by this update?

      Answer: B,D
  • Question 5
    • A collection called players contains the following documents:
      [
        { _id: 1, user: 'Tom', scores: [ 23, 56, 3, 52, 62 ], bonus: 5 },
        { _id: 2, user: 'Jane', scores: [ 42, 50, 10 ], bonus: 3 }
      ]
      You want to add additional fields to each document:
      -> total_score (sum of the scores Array)
      -> avg_score (average score in scores Array)
      -> total_score_with_bonus (total_score + bonus)
      Expected output:
      [
        {
          _id: 1,
          user: 'Tom',
          scores: [ 23, 56, 3, 52, 62 ],
          bonus: 5,
          total_score: 196,
          avg_score: 39.2,
          total_score_with_bonus: 201
        },
        {
          _id: 2,
          user: 'Jane',
          scores: [ 42, 50, 10 ],
          bonus: 3,
          total_score: 102,
          avg_score: 34,
          total_score_with_bonus: 105
        }
      ]
      Which query do you need to use?

      Answer: A
PAGE: 1 - 83
Add To Cart

© Copyrights Dumpscity 2024. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the Dumpscity.