NoSQL map reduce and aggregate quiz

NoSQL map reduce and aggregate quiz

University

10 Qs

quiz-placeholder

Similar activities

Pest Control in the Food Industry Quiz

Pest Control in the Food Industry Quiz

University

15 Qs

Swimming pools with Maarten Keuten

Swimming pools with Maarten Keuten

University

10 Qs

Gıda Mühendisliği

Gıda Mühendisliği

University

10 Qs

Technology - Vocab IELTS

Technology - Vocab IELTS

University

11 Qs

Research Methodology 1

Research Methodology 1

University

10 Qs

CLPT B.Pharm ACTD Slip test

CLPT B.Pharm ACTD Slip test

University

10 Qs

Hipercolesterolemia familiar

Hipercolesterolemia familiar

University

11 Qs

AMM 2412 MANAGEMENT OF MEDICAL INVENTORY UNIT 1 QUIZ

AMM 2412 MANAGEMENT OF MEDICAL INVENTORY UNIT 1 QUIZ

University

10 Qs

NoSQL map reduce and aggregate quiz

NoSQL map reduce and aggregate quiz

Assessment

Quiz

Science

University

Practice Problem

Easy

Created by

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?