C100DEV Exam Question 26
Which of the following stages do you need to use to randomly select 10 documents from a specific collection?
C100DEV Exam Question 27
Select all true statements about the $merge stage.
C100DEV Exam Question 28
You want to execute the following query quite often in your application: db.hotels.aggregate([ { "$match": { "stars": { "$gt": 4.5 } } }, { "$sort": { "stars": 1 } } ]) Your collection doesn't have any additional indexes. Which index should you create to support this query?
C100DEV Exam Question 29
Given the following example document from an artists collection: { _id: 5, last_name: 'Maurer', first_name: 'Alfred', year_born: 1868, year_died: 1932, nationality: 'USA' } and the following index: db.artists.createIndex( { "last_name": 1, "nationality": 1 } ) How MongoDB will handle the query below?
db.artists.find( { "year_born": 1863 } )
db.artists.find( { "year_born": 1863 } )
C100DEV Exam Question 30
Which of the following commands will add a collection that is stored in BSON file to a MongoDB cluster?
