 
			 
			MCQOPTIONS
 Saved Bookmarks
				This section includes 44 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.
| 1. | Which of the following operation can be optionally used for map reduce? | 
| A. | finally | 
| B. | final | 
| C. | static | 
| D. | none of the mentioned | 
| Answer» B. final | |
| 2. | Pipeline stages can use __________ for tasks such as calculating the average or concatenating a string. | 
| A. | replicas | 
| B. | operators | 
| C. | roles | 
| D. | all of the mentioned | 
| Answer» C. roles | |
| 3. | _____ Writes the resulting documents of the aggregation pipeline to a collection. | 
| A. | $out | 
| B. | $in | 
| C. | $output | 
| D. | None of the mentioned | 
| Answer» B. $in | |
| 4. | Which of the following operator is related to geography of data ? | 
| A. | $geoSpatial | 
| B. | $geoNear | 
| C. | $geoRear | 
| D. | None of the mentioned | 
| Answer» C. $geoRear | |
| 5. | In the vars assignment block, ________ refers to the value of an externally defined variable low . | 
| A. | “$$low” | 
| B. | “$$lowin” | 
| C. | “$$1” | 
| D. | None of the mentioned | 
| Answer» B. “$$lowin” | |
| 6. | MongoDB treats the literals as projection flags, valid only in the _______ stage. | 
| A. | $project | 
| B. | $gmap | 
| C. | $match | 
| D. | None of the mentioned | 
| Answer» B. $gmap | |
| 7. | To avoid treating numeric or boolean literals as projection flags, use the _______ expression to wrap the numeric or boolean literals. | 
| A. | $literal | 
| B. | $bool | 
| C. | $unwin | 
| D. | None of the mentioned | 
| Answer» B. $bool | |
| 8. | _______ accepts only single argument expression. | 
| A. | $setIsSubset | 
| B. | $bool | 
| C. | $anyElementTrue | 
| D. | None of the mentioned | 
| Answer» D. None of the mentioned | |
| 9. | Which of the following method is overrided by Index filters ? | 
| A. | hint | 
| B. | plan | 
| C. | execute | 
| D. | all of the mentioned | 
| Answer» B. plan | |
| 10. | Query shape consists of a combination of query, sort, and _________ specifications. | 
| A. | selection | 
| B. | projection | 
| C. | collection | 
| D. | none of the mentioned | 
| Answer» D. none of the mentioned | |
| 11. | Syntax for specifying an initial batch size for the cursor is : | 
| A. | cursor: { batchSize: <string> } | 
| B. | cursor: { batchSize: <int> } | 
| C. | cur: { batchSize: <int> } | 
| D. | none of the mentioned | 
| Answer» C. cur: { batchSize: <int> } | |
| 12. | For most aggregation operations, the ______ Pipeline provides better performance and more coherent interface. | 
| A. | Aggregate | 
| B. | Replication | 
| C. | Sharding | 
| D. | None of the mentioned | 
| Answer» B. Replication | |
| 13. | What would be the maximum document size for results of mapreduce operation ? | 
| A. | 15 MB | 
| B. | 16 MB | 
| C. | 17 MB | 
| D. | All of the mentioned | 
| Answer» C. 17 MB | |
| 14. | Map-reduce uses custom __________ functions to perform the map and reduce operations. | 
| A. | Java | 
| B. | Javascript | 
| C. | JSON | 
| D. | None of the mentioned | 
| Answer» C. JSON | |
| 15. | The aggregation pipeline can use ___________ to improve its performance during some of its stages. | 
| A. | indexes | 
| B. | OptmData | 
| C. | functions | 
| D. | all of the mentioned | 
| Answer» B. OptmData | |
| 16. | Which of the following operation can be optionally used for map reduce ? | 
| A. | finally | 
| B. | final | 
| C. | static | 
| D. | none of the mentioned | 
| Answer» B. final | |
| 17. | _______ returns the remainder of the first number divided by the second. | 
| A. | $rem | 
| B. | $mod | 
| C. | $div | 
| D. | None of the mentioned | 
| Answer» C. $div | |
| 18. | $ne returns true if the values are not _______ | 
| A. | equivalent | 
| B. | |
| C. | 0 | 
| Answer» B. | |
| 19. | $multiply __________ numbers to return the result. | 
| A. | multiplies | 
| B. | divides | 
| C. | comapres | 
| D. | all of the mentioned | 
| Answer» B. divides | |
| 20. | ________ subtracts two dates to return the difference in milliseconds | 
| A. | $rem | 
| B. | $mod | 
| C. | $div | 
| D. | $subtract | 
| Answer» B. $mod | |
| 21. | $allElementsTrue returns true if no element of a set evaluates to : | 
| A. | false | 
| B. | true | 
| Answer» B. true | |
| 22. | MongoDB converts the JavaScript objects emitted by the map function to ________ objects. | 
| A. | BSON | 
| B. | JSON | 
| C. | Javascript | 
| D. | None of the mentioned | 
| Answer» B. JSON | |
| 23. | Which of the following mode defaults to false ? | 
| A. | jsMode | 
| B. | scope | 
| C. | finalize | 
| D. | min | 
| Answer» B. scope | |
| 24. | $dayOfMonth returns the day of the month for a date as a number between : | 
| A. | 1 and 31 | 
| B. | 1 and 30 | 
| C. | 1 and 28 | 
| D. | None of the mentioned | 
| Answer» B. 1 and 30 | |
| 25. | _______ result encompasses instances of undefined values or missing fields. | 
| A. | Number | 
| B. | String | 
| C. | Null | 
| D. | None of the mentioned | 
| Answer» D. None of the mentioned | |
| 26. | $sum is an accumulator operator available only in the _______ stage | 
| A. | $group | 
| B. | $sets | 
| C. | $accumulator | 
| D. | None of the mentioned | 
| Answer» B. $sets | |
| 27. | ___________ returns either the non-null result of the first expression. | 
| A. | $Null | 
| B. | $ifNull | 
| C. | $ElseNull | 
| D. | None of the mentioned | 
| Answer» C. $ElseNull | |
| 28. | $addToSet returns an array of all _______ values that results from applying an expression to each document. | 
| A. | unique | 
| B. | non unique | 
| C. | distinct | 
| D. | all of the mentioned | 
| Answer» B. non unique | |
| 29. | __________ take as input a single expression, evaluating the expression once for each input document, and maintain their state for the group of documents. | 
| A. | Computer | 
| B. | Monitors | 
| C. | Accumulators | 
| D. | Performoner | 
| Answer» D. Performoner | |
| 30. | If all documents for the $min operation have null value for the field or are missing the field, the $min operator returns ____ for the minimum value. | 
| A. | 1 | 
| B. | 0 | 
| C. | |
| Answer» D. | |
| 31. | db.collection.aggregate() returns a _______ and can return result sets of any size. | 
| A. | replica | 
| B. | cursor | 
| C. | document | 
| D. | $subtract | 
| Answer» C. document | |
| 32. | _______ returns the number of elements in the array. | 
| A. | $number | 
| B. | $size | 
| C. | $div | 
| D. | None of the mentioned | 
| Answer» C. $div | |
| 33. | _________ returns a value without parsing. | 
| A. | $string | 
| B. | $literal | 
| C. | $characters | 
| D. | None of the mentioned | 
| Answer» C. $characters | |
| 34. | COUNT function is provided by _________ in MongoDB. | 
| A. | $end | 
| B. | $sum | 
| C. | $max | 
| D. | All of the mentioned | 
| Answer» C. $max | |
| 35. | String expressions, with the exception of ________ only have a well-defined behavior for strings of ASCII characters. | 
| A. | $setcon | 
| B. | $concatenation | 
| C. | $concat | 
| D. | None of the mentioned | 
| Answer» D. None of the mentioned | |
| 36. | ____________ works similar to HAVING clause in SQL | 
| A. | $setcon | 
| B. | $group | 
| C. | $match | 
| D. | None of the mentioned | 
| Answer» D. None of the mentioned | |
| 37. | _______ groups documents by some specified expression and outputs to the next stage a document for each distinct grouping. | 
| A. | $setcon | 
| B. | $group | 
| C. | $match | 
| D. | None of the mentioned | 
| Answer» C. $match | |
| 38. | WHICH_OF_THE_FOLLOWING_OPERATION_CAN_BE_OPTIONALLY_USED_FOR_MAP_REDUCE_??$ | 
| A. | finally | 
| B. | final | 
| C. | static | 
| D. | none of the mentioned | 
| Answer» B. final | |
| 39. | The_aggregation_pipeline_can_use_____________to_improve_its_performance_during_some_of_its_stages.$ | 
| A. | indexes | 
| B. | OptmData | 
| C. | functions | 
| D. | all of the mentioned | 
| Answer» B. OptmData | |
| 40. | Map-reduce uses custom __________ functions to perform the map and reduce operations? | 
| A. | Java | 
| B. | Javascript | 
| C. | JSON | 
| D. | None of the mentioned | 
| Answer» C. JSON | |
| 41. | The most basic pipeline stages provide __________ that operate like queries. | 
| A. | methods | 
| B. | filters | 
| C. | stored procedure | 
| D. | none of the mentioned | 
| Answer» C. stored procedure | |
| 42. | Documents enter a multi-stage __________ that transforms the documents into an aggregated result. | 
| A. | pipeline | 
| B. | pipelineView | 
| C. | pipelineUser | 
| D. | all of the mentioned | 
| Answer» B. pipelineView | |
| 43. | Running data aggregation on the ________ instance simplifies application code and limits resource requirements. | 
| A. | document | 
| B. | mongod | 
| C. | mongos | 
| D. | all of the mentioned | 
| Answer» C. mongos | |
| 44. | ____________ are operations that process data records and return computed results. | 
| A. | ReplicaAgg | 
| B. | SumCalculation | 
| C. | Aggregations | 
| D. | None of the mentioned | 
| Answer» D. None of the mentioned | |