ALL RIGHTS RESERVED.
Nosql Exam Questions With Verified And
Updated Answers
1. What is the purpose of the MongoDB aggregation framework?
To group and summarize data from multiple documents
To store data in a flat file
To process data in real-time
To convert data into a graph - answer✔To group and summarize data from multiple documents
2. What is the maximum size limit for a single aggregation pipeline in MongoDB?
16MB
32MB
64MB
128MB
верно - answer✔32MB
3. Which stage in MongoDB aggregation framework allows you to rearrange documents based
on a specified expression?
$sort
$match
$group
$project
верно - answer✔$sort
4. What is the purpose of the $match stage in MongoDB aggregation framework?
To filter documents based on a specified condition
1|Page
, ©THESTAR EXAM SOLUTIONS 2024/2025
ALL RIGHTS RESERVED.
To summarize data from multiple documents
To group data based on a specified expression
To rearrange documents based on a specified expression
верно - answer✔To filter documents based on a specified condition
5. What is the purpose of the $group stage in MongoDB aggregation framework?
To filter documents based on a specified condition
To summarize data from multiple documents
To group data based on a specified expression
To rearrange documents based on a specified expression
верно - answer✔To group data based on a specified expression
6. What is the purpose of the $project stage in MongoDB aggregation framework?
To filter documents based on a specified condition
To summarize data from multiple documents
To group data based on a specified expression
To reshape documents by adding, removing, or modifying fields
верно - answer✔To reshape documents by adding, removing, or modifying fields
7. Which stage in MongoDB aggregation framework allows you to limit the number of
documents returned from the pipeline?
$sort
$match
$group
$limit
верно - answer✔limit
8. Which stage in MongoDB aggregation framework allows you to skip a specified number of
documents before starting to return documents?
$sort
$match
2|Page
, ©THESTAR EXAM SOLUTIONS 2024/2025
ALL RIGHTS RESERVED.
$group
$skip
верно - answer✔skip
9. What is the purpose of the $lookup stage in MongoDB aggregation framework?
To join data from multiple collections
To group and summarize data from multiple documents
To store data in a flat file
To convert data into a graph
верно - answer✔To join data from multiple collections
10. What is the purpose of the $unwind stage in MongoDB aggregation framework?
To join data from multiple collections
To decompose an array into separate documents
To store data in a flat file
To convert data into a graph
верно - answer✔To decompose an array into separate documents
Which of the following is/are true of the $match stage?
$match can use both query operators and aggregation expressions.
$match can only filter documents on one field.
It uses the familiar MongoDB query language.
It should come very early in an aggregation pipeline. - answer✔It uses the familiar MongoDB
query language.
It should come very early in an aggregation pipeline.
Which of the following statements are true of the $project stage?
Once we specify a field to retain or perform some computation in a $project stage, we must
specify all fields we wish to retain. The only exception to this is the _id field.
3|Page