nosql exam questions and accurate answers (A+)
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.
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.