Online Access Free C100DEV Practice Test

Exam Code:C100DEV
Exam Name:MongoDB Certified Developer Associate Exam
Certification Provider:MongoDB
Free Question Number:253
Posted:Sep 08, 2025
Rating
100%

Question 1

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 We also want to sort the result set by decreasing imdb votes. Example output: [ { imdb: { votes: 1521105 }, genres: [ 'Crime', 'Drama' ], title: 'The Shawshank Redemption' }, { imdb: { votes: 1513145 }, genres: [ 'Crime', 'Drama' ], title: 'The Shawshank Redemption' }, { imdb: { votes: 1495351 }, genres: [ 'Action', 'Crime', 'Drama' ], title: 'The Dark Knight' }, ... Which pipeline should you use?

Question 2

Suppose you have a products collection with an index: { product_category: 1 } For which of the following queries can MongoDB look at only a subset of the index entries, rather than all of the index entries?

Question 3

What is the best practice in using the $match operator?

Question 4

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) Expected output: [ { _id: 1, user: 'Tom', scores: [ 23, 56, 3, 52, 62 ], bonus: 5, total_score: 196, avg_score: 39.2 }, { _id: 2, user: 'Jane', scores: [ 42, 50, 10 ], bonus: 3, total_score: 102, avg_score: 34 } ] Which query do you need to use?

Question 5

Select all true statements regarding to duplicate documents in MongoDB.

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.