πŸ§ͺ MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 2

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

Which of the following is not a part of mongodb-enterprise-tools?





βœ… Correct Answer: 3

Point out the wrong statement.





βœ… Correct Answer: 1

MongoDB only provides Enterprise packages for Ubuntu ________ LTS.





βœ… Correct Answer: 3

Which of the following is the Ubuntu package management tool?





βœ… Correct Answer: 2

Command to install the latest stable version of MongoDB Enterprise in Ubuntu is _____





βœ… Correct Answer: 2

mongod process is stopped by issuing which of the following command?





βœ… Correct Answer: 2

_______ package contains the mongo shell.





βœ… Correct Answer: 3

To install the latest stable version of MongoDB on SUSE, issue ______





βœ… Correct Answer: 1

Point out the correct statement.





βœ… Correct Answer: 4

The MongoDB instance stores its _________ files in /var/lib/mongo by default.





βœ… Correct Answer: 2

The MongoDB process listens on port _________ by default.





βœ… Correct Answer: 1

Point out the wrong statement.





βœ… Correct Answer: 2

Which of the following file is a MongoDB configuration file?





βœ… Correct Answer: 2

User account running mongod has _______ permissions for the directory.





βœ… Correct Answer: 3

_____ allows you to scale your cluster linearly by adding more machines.





βœ… Correct Answer: 2

MongoDB is installed unattended on Windows from the command line using ____





βœ… Correct Answer: 2

Sometimes mongod.exe is visible on public networks without running in _________ Mode with the auth setting.





βœ… Correct Answer: 2

_____ does not dump the content of the local database.





βœ… Correct Answer: 2

Point out the correct statement.





βœ… Correct Answer: 1

To backup all the databases in a cluster via mongodump, you should have the ___________ role.





βœ… Correct Answer: 2

_____ is a routing service for MongoDB shard configurations that processes queries from the application layer.





βœ… Correct Answer: 2

Point out the wrong statement.





βœ… Correct Answer: 3

______ sends all diagnostic logging information to a log file instead of to standard output or to the host’s syslog system.





βœ… Correct Answer: 3

_____ is the primary daemon process for the MongoDB system.





βœ… Correct Answer: 2

_____ is a diagnostic tool for inspecting BSON files.





βœ… Correct Answer: 2

Which of the following is a utility to check disk I/O performance independently of MongoDB?





βœ… Correct Answer: 1

______ utility makes it possible to manipulate files stored in your MongoDB instance in GridFS objects from the command line.





βœ… Correct Answer: 4

______ is a part of the standard MongoDB distribution and provides a full JavaScript environment.





βœ… Correct Answer: 3

Point out the correct statement.





βœ… Correct Answer: 4

mongo looks for a database server listening on port 27017 on the ________ interface.





βœ… Correct Answer: 2

After starting the mongo shell, your session will use the ________ database by default.





βœ… Correct Answer: 3

Point out the wrong statement.





βœ… Correct Answer: 3

_______ command display the list of databases.





βœ… Correct Answer: 2

Which of the following operation is used to switch to new database mydb?





βœ… Correct Answer: 3

Which of the following also returns a list of databases?





βœ… Correct Answer: 1

Command to check existence of collection is ______





βœ… Correct Answer: 2

Which of the following method is used to query documents in collections?





βœ… Correct Answer: 1

When you query a collection, MongoDB returns a ________ object that contains the results of the query.





βœ… Correct Answer: 2

Point out the correct statement.





βœ… Correct Answer: 2

Which of the following method returns true if the cursor has documents?





βœ… Correct Answer: 2

_____ method renders the document in a JSON-like format.





βœ… Correct Answer: 3

Point out the wrong statement.





βœ… Correct Answer: 1

Which of the following method is called while accessing documents using the array index notation?





βœ… Correct Answer: 2

The mongo shell and the drivers provide several cursor methods that call on the cursor returned by the _______ method to modify its behavior.





βœ… Correct Answer: 2

Which of the following method corresponds to Order by clause in SQL?





βœ… Correct Answer: 1

The __________ method limits the number of documents in the result set.





βœ… Correct Answer: 1

Which of the following line skips the first 5 documents in the bios collection and returns all remaining documents?





βœ… Correct Answer: 3

Which of the following will implicitly create the collection testData?





βœ… Correct Answer: 2

Point out the correct statement.





βœ… Correct Answer: 1

Which of the following method returns a cursor?





βœ… Correct Answer: 1