Home > MongoDB > Quizzes > MongoDB Quiz
MongoDB Quiz
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 11% Most missed: “MongoDB ships with a variety of files. Which file runs the MongoDB shell?”

MongoDB MCQs For LinkedIn Skill Assessments.

MongoDB Quiz
Time left 00:00
25 Questions

1. You would like the stats() command to return kilobytes instead of bytes. Which command should you run?
2. Which MongoDB shell query will sort the customer's collection by name descending?
3. In an MongoDB mapReduce command, the reduce function should \_.
4. Which command returns all of the documents in the customers collection?
5. You'd like a set of documents to be returned in last name, ascending order. Which query will accomplish this?
6. What should the priority of a member be in order to prevent it from becoming the primary in replica set?
7. In the MongoDB shell, how can you tell if an index was used with a query?
8. To remove a database and all of its records from MongoDB, what operator should you use?
9. Which field is always included in a projection unless specifically excluded?
10. You have just secured your previously unsecured MongoDB server, but the server is still not requiring authentication. What is the best option?
11. Given an ObjectId in '_id', how do you get the time it was created?
12. To restrict the number of records coming back from a query, which command should you use?
13. What is the internal data structure of a MongoDB document?
14. You want to modify an existing index. What is the best way to do this?
15. MongoDB ships with a variety of files. Which file runs the MongoDB shell?
16. To import a CSV file into MongoDB, which command should you issue?
17. One of the documents in your collection has an \_id based upon an older database design and you want to change it. You write an update command to find the document and replace the \_id but the \_id isn't changed. How should you fix the issue?
18. What is the correct query to find all of the people who have a home phone number defined?
19. A compound index allows you to \_ ?
20. How do you find documents with a matching item in an embedded array?
21. To cleanly shut down MongoDB, what command should you use from the MongoDB shell?
22. You need to delete the index you created on the description field. Which command will accomplish this?
23. From the MongoDB shell, how do you execute a JavaScript file named list.js?
24. Why are ad-hoc queries useful?
25. Which projection shows only the FirstName and lastName fields of a document in the customers collection?

⚡ Recently practiced quizzes in this topic
Live quiz activity