Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumMongoDBbucket and outlier patternsSingle-choice MCQ

Consider this aggregation against a 'sensors' collection that uses the bucket pattern, where each document holds up to 60 readings in a 'measurements' array. What does this pipeline compute?

db.sensors.aggregate([ { $unwind: "$measurements" }, { $group: { _id: null, total: { $sum: 1 } } } ])