Mongodb Interview Questions
Mongodb Interview Questions
set-1
1. How would you restrict the size of a collection in MongoDB?
4. What is the difference between Enterprise and community version of MongoDB?
5. Have you worked with in premises or cloud hosting of MongoDB?
7. Why mongoDB?
10. How will add a field to all documents in a collection?
13. How would you See the execution plan of a MongoDB Query?
16. Have you migrated your traditional Database to mongoDB ? Explain your experience?
17. Can you do document validation in a Collection? Explain
22. Have you worked with Embedded documents in MongoDB? What's the advantage and
why do you used it?
24. Explain Aggregation in MongoDB? Why you selected it over Mapreduce?
25. What are Compound indexes ? When to use them?
29. What are Partial Indexes and Why they are used ?
30. If a field is present in all documents, What's the type of index you wil recommend?
[sparse index]
33. What are the critical issues you faced when working with MongoDB?
34. Can you use MongoDB for Transaction ? Explain how will you ?
37. How does replication works in Mongodb? How election works?
38. What is the use of ismaster and freeze in replication?
39. Why we need Query Router?
44. What's the GUI client you used and What are its frequently used features?
46. How MongoDB backup is done? Have you faced any issues?
47. How mongodb is monitored? Which software you used for that?
48. Have you ever rolled back to a previous database backup of MongoDB?
55. What is the difference between save and insert in MongoDB?
57. Whats is the replacement for SQL joins in MongoDB?
58. How to use regex in MongoDB? Give some examples?
63. How will you search a document with a String 'hello'?
66. How will you search documents with array of Size 5?
68. How will you check a Document , for a field's presence?
70. How will you get the current date in mongodb?
$currentDate
72. How will you append a Value to an Array?
$push
76. In aggregation pipeline how will you output the resultant documents to a Collection?
79. How do you store password and sensitive data in MongoDB?
80. How you migrated your data from sql databases to mongoDB?
81. What is the size limit of a MongoDB Document?
83. How will you upload images into mongodb? explain the architecture
94. Have you used any reporting or analytics tool with MongoDB?
95. What kind of ETL tool you used with mongoDB?
97. How will you create a Database? and What are the considerations before creating a
database?
98. How will you create a Collection? and What are the considerations before creating a
database?
101. What is the type of Authentication method you used?
102. What is BSON and What are the types of BSON?
105. Have you used server side javascript? and why it is not recommended?
107. What are namespaces? What is the maximum length of Namespaces?