You have a MongoDB collection named employees that contains documents with fields name, department, and salary. You want to update the salary of all employees in the "Marketing" department to $75,000. The original collection looks like this:
What will the collection look like after this update operation?
Answer: C
Question 2
Given a movies collection where each document has the following structure:
{
_id: ObjectId('573a1390f29313caabcd60e4'),
genres: [ 'Short', 'Comedy', 'Drama' ],
title: 'The Immigrant',
year: 1917,
imdb: { rating: 7.8, votes: 4680, id: 8133 },
countries: [ 'USA' ]
}
Which of the following queries will find all the movies that have more votes than the year in which they were released?
Answer: D
Question 3
In MongoDB, the $out operator is commonly used within an aggregation pipeline. Which of the following statements accurately describes the functionality and usage of the $out operator?
Answer: A
Question 4
Which of the following is the best practice for managing MongoDB data growth in a production environment (scale-out)?
Answer: C
Question 5
Which of the following command skips the first 10 documents in the movies collection and returns all remaining documents?