MediumApplicationNoSQL DatabasesMultiple Choice

What is the correct order of stages in a MongoDB aggregation pipeline to optimize performance?

Application Tests your understanding of this concept.

Answer Options

A$group → $match → $sort → $project
B$match → $group → $sort → $project
C$project → $match → $group → $sort
D$sort → $match → $group → $project

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 15+ more NoSQL Databases questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the NoSQL Databases topic (Databases).

More NoSQL Databases Questions