Use the following questions to help you review the material in this tutorial.
Quiz Summary
0 of 5 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 5 Questions answered correctly
Time has elapsed
Categories
- Not categorized 0%
-
You’ve finished the quiz! Move on to the next lesson or click on View Questions to review the quiz.
-
Well done! Move on to the next lesson or click on View Questions to review the quiz.
- 1
- 2
- 3
- 4
- 5
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 5
1. Question
You are using the Aggregation Editor to build a pipeline that aggregates data in the
customers
collection. You add the first stage and verify that the$match
operator is selected. You want to filter out all documents except those with anaddress.state
value ofNew York
.Which expression should you add to the editor on the Stage 1 tab?
CorrectIncorrect -
Question 2 of 5
2. Question
You are using the Aggregation Editor to build a pipeline that aggregates data in the
customers
collection. You add a stage for grouping data based on cities in the state of New York. You want to find the total number of transactions per city.Which accumulator operator should you use for calculating the totals?
CorrectIncorrect -
Question 3 of 5
3. Question
You are using the Aggregation Editor to build a pipeline that aggregates data in the
customers
collection. You add a stage based on the$project
operator. You want to suppress the default_id
field and add a new field namedny_city
. The values for the new field will come from the_id
field.You also want to include the
total
field in the results. Which expression should you add to the editor for this stage?CorrectIncorrect -
Question 4 of 5
4. Question
You are using the Aggregation Editor to build a pipeline that aggregates data in the
customers
collection. You want to add a stage to change the order of the fields in the pipeline.Which aggregate operator should you use?
CorrectIncorrect -
Question 5 of 5
5. Question
You are using the Aggregation Editor to build a pipeline that aggregates data in the
customers
collection. You want to sort the documents based on the values in theny_city
field, in ascending order.You add a stage to the pipeline and select the
$sort
operator. Which expression should you add to the editor for this stage?CorrectIncorrect