1. What is the purpose of the MongoDB aggregation framework?
to group and summarize data from many documents
to store data in a flat file
to process data in real time
to transform data to a graph - ANSWER To group and summarize data from many
documents
2. What is the maximum size limit for a single MongoDB aggregation pipeline?
16 MB
32 MB
64 MB
128 MB
correct - ANSWER 32MB
3. Which of the following MongoDB aggregation framework stages allows you to reorder
documents based on a given expression?
$sort
$match
$group
$project
correct - ANSWER $sort
4. In MongoDB aggregation framework, what is the $match stage used for?
Filtering documents to a pre-defined condition
,Summarizing data from several documents
Grouping data on a pre-defined expression
Reordering documents on a predefined expression
correct - ANSWER Filtering documents to a pre-defined condition
5. Which of the following 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
verno - ANSWER To group data based on a specified expression
6. Which of the following is the purpose of the $project stage in MongoDB aggregation
framework?
To filter documents based on a specified condition
To summarize data from a collection of documents
To group documents according to a certain expression
To reshape documents by adding, removing or changing fields
-right -ANSWER To reshape documents by adding, removing or changing fields
7. Which of the following MongoDB aggregation framework stages is used to limit the
number of documents that come out of the pipeline?
$sort
$match
$group
$limit
-right-ANSWER limit
, 8. Which MongoDB aggregation framework stage skips a specified number of
documents before starting to return documents?
$sort
$match
$group
$skip
correct - ANSWER skip
9. What is the purpose of the $lookup stage in MongoDB aggregation framework?
Joining data from multiple collections.
Grouping and summarizing data from more than one document.
Storing data in a flat file.
Converting data into graph format.
correct - ANSWER Joining 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.
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 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 Easton. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £12.93. You're not tied to anything after your purchase.