C100DEV Exam Question 1

What is MongoDB Charts?
  • C100DEV Exam Question 2

    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 } } We need to extract all movies from this collection where genres does not include 'Romance'. Which query should we use?
  • C100DEV Exam 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 } } We need to use Aggregation Framework to fetch all movies from this collection where 'Drama' is in genres list and the minimum 'imdb.votes' is at least 100. Additionally, in the projection stage, we want to leave only the following fields: -> title -> genres -> imdb.votes Example output: { title: 'Miss Lulu Bett', genres: [ 'Comedy', 'Drama' ], imdb: { votes: 204 } } Which pipeline should you use?
  • C100DEV Exam Question 4

    Select true statements regarding to MongoDB. Check all that apply.
  • C100DEV Exam Question 5

    Data modeling. You are considering the use of nesting or references in your data model. Documents can grow rapidly. Which option would be more appropriate?