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
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
верно - 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
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller TheStar. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.49. You're not tied to anything after your purchase.