
NoSQL map reduce and aggregate quiz
Quiz
•
Science
•
University
•
Practice Problem
•
Easy
KANTHIMATHI. M
Used 42+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to insert a document into a MongoDB collection?
db.collection.insertDocument()
db.collection.insert()
db.collection.add()
db.insertOne()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which aggregation stage is used to filter documents?
$match
$group
$sort
$project
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a map-reduce operation, what is the role of the “map” function?
Reduces the data
Filters data based on criteria
Emits key-value pairs for grouping
Sorts the data
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What MongoDB command is used to run a map-reduce operation?
db.collection.mapReduce()
db.runMapReduce()
db.mapReduce()
db.collection.reduceMap()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Map-Reduce, the "reduce" function must:
Output documents only
Take a key and an array of values and return a reduced value
Be written in SQL
Output a cursor
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you sort documents by a field named age in descending order using aggregation?
{ $sort: { age: "desc" } }
{ $sort: { age: -1 } }
{ $order: { age: -1 } }
{ $sortBy: { age: -1 } }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you calculate the total number of documents in a collection using aggregation?
{ $group: { _id: null, total: { $count: 1 } } }
{ $count: "total" }
{ $sum: "count" }
{ $size: "total" }
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
8 questions
Pyrogen Testing
Quiz
•
University
10 questions
Digital Electronics Lab
Quiz
•
University
15 questions
Q3 - Formative Assessment # 1
Quiz
•
7th Grade - University
12 questions
9889 - Arquitetura e Organização de Computadores - Lista2
Quiz
•
University
15 questions
Logika Dan Algoritma P10
Quiz
•
University
15 questions
Minigame
Quiz
•
University
10 questions
E,MAyDS - Objetivos de Desarrollo Sostenible - ODS
Quiz
•
University
10 questions
Oral microbiology and immune response
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Science
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
