MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 19

Choose a topic to test your knowledge and improve your MongoDB skills

1. Instead of Primary Key mongoDB use?




2. How to create index in mongoDB?




3. Which of the following iis correct syntax of createindex?




4. To create index in descending order, the value of key is?




5. The default value of background Parameter is :




6. The default value of default_language Parameter is :




7. Which method deletes multiple (specified) indexes on a collection?




8. Which method returns the description of all the indexes int the collection?




9. The maximum value of weights parameter is:




10. What is the type of sparse parameter in createIndex()?




11. What is the type of weights parameter in createIndex()?




12. The basic syntax of Aggregation is?




13. Which of th following expression is used to calculates the average of all given values from all documents in the collection?




14. Which of th following expression is used to gets the maximum of the corresponding values from all documents in the collection?




15. Which of th following expression is used to Inserts the value to an array in the resulting document?




16. Which of th following expression is used to gets the first document from the source documents according to the grouping?




17. Which stages in aggregation framework Used to select some specific fields from a collection?




18. What is true about $unwind stages in aggregation framework ?




19. What is true about $group stages in aggregation framework ?




20. What is true about $skip stages in aggregation framework ?




21. Which stages in aggregation framework is a filtering operation and thus this can reduce the amount of documents that are given as input to the next stage?




22. What is true about Replication?




23. Replication is not used for?




24. Replica set is transparent to the application.




25. A replica set is a group of ___________ instances that host the same data set.




26. In a replica, one node is primary node that receives?




27. Which of the following is not a Replica Set Features?




28. In MongoDB client, how to initiate a new replica set?




29. To check the replica set configuration, issue the command rs.conf().




30. Which of the following is correct syntax to Add Members to Replica Set?




31. To check whether you are connected to primary or not, issue the command db.Master() in mongo client.




32. ______ is the process of storing data records across multiple machines and it is MongoDB's approach to meeting the demands of data growth




33. Single replica set has limitation of?




34. Which of the following is true about why to use Sharding?




35. In production enviroment , how many sharded clusters have?




36. What is true about Query Routers?




37. Point out the correct statement




38. _______ scaling adds more CPU and storage resources to increase capacity.




39. Each shard stores ________ data as the cluster grows.




40. Which command returns a document that provides an overview of the database process's state?




41. Which of the following setting defines what constitutes a "slow" operation?




42. _____ returns the queryPlanner information for the evaluated method.




43. Point out the correct statement.




44. With which storage engine, MongoDB uses memory-mapped files to store data?




45. _____ returns the queryPlanner and executionStats information for the evaluated method.




46. If MongoDB can use an index scan to obtain the requested sort order, the result will not include a SORT stage




47. In MongoDB, At which level write operations are atomic?




48. The limit on the number of namespaces depend on the ?




49. The namespace file defaults to ?




50. _____index allows efficient retrieval of chunks using the files_id and n values.