Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following is a utility to check disk I/O performance independently of MongoDB?(a) mongoperf(b) mongoio(c) mongod(d) none of the mentionedI have been asked this question in a national level competition.My enquiry is from MongoDB Packages in division MongoDB Enterprise and Packages of MongoDB

Answer»

The correct ANSWER is (a) mongoperf

For explanation: Specify options to mongoperf USING a JAVASCRIPT document.

2.

___________ is the primary daemon process for the MongoDB system.(a) mongos(b) mongod(c) logpath(d) syspathlogI have been asked this question in semester exam.This intriguing question comes from MongoDB Packages topic in section MongoDB Enterprise and Packages of MongoDB

Answer»

The CORRECT choice is (B) mongod

The best explanation: It HANDLES data requests, MANAGES data access, and performs background management OPERATIONS.

3.

__________sends all diagnostic logging information to a log file instead of to standard output or to the host’s syslog system.(a) syspath(b) syslog(c) logpath(d) syspathlogI got this question in unit test.The question is from MongoDB Packages in section MongoDB Enterprise and Packages of MongoDB

Answer» RIGHT choice is (C) logpath

For explanation I would say: By default, MongoDB overwrites the LOG file when the PROCESS restarts.
4.

__________ is a diagnostic tool for inspecting BSON files.(a) jsondump(b) bsondump(c) bsondumpjson(d) all of the mentionedI had been asked this question during an internship interview.This intriguing question comes from MongoDB Packages topic in division MongoDB Enterprise and Packages of MongoDB

Answer» RIGHT ANSWER is (b) bsondump

To EXPLAIN I would say: The bsondump converts BSON FILES into human-readable formats, including JSON.
5.

Point out the wrong statement.(a) To backup a given database, you must have read access on the database(b) The backup role confers no additional access, in keeping with the policy of least privilege(c) mongodumplocal overwrites output files if they exist in the backup data folder(d) All of the mentionedI had been asked this question in an internship interview.This intriguing question originated from MongoDB Packages in section MongoDB Enterprise and Packages of MongoDB

Answer»

Right option is (c) mongodumplocal OVERWRITES output files if they exist in the backup data folder

For EXPLANATION I would say: To backup the system.profile collection, which is created when you activate database PROFILING, you must have ADDITIONAL read access on this collection.

6.

___________ is a routing service for MongoDB shard configurations that processes queries from the application layer.(a) mongod(b) mongos(c) mongocon(d) none of the mentionedI had been asked this question by my school teacher while I was bunking the class.I want to ask this question from MongoDB Packages in section MongoDB Enterprise and Packages of MongoDB

Answer» CORRECT OPTION is (b) MONGOS

Easiest explanation: From the perspective of the application, a mongos instance behaves IDENTICALLY to any other MongoDB instance.
7.

To backup all the databases in a cluster via mongodump, you should have the ___________ role.(a) restore(b) backup(c) replication(d) all of the mentionedI had been asked this question in a job interview.My question is taken from MongoDB Packages topic in portion MongoDB Enterprise and Packages of MongoDB

Answer» CORRECT answer is (B) backup

To elaborate: The backup role provides the REQUIRED privileges for BACKING up all DATABASES.
8.

Point out the correct statement.(a) The data format used by mongodump from version 2.2 or later is incompatible with earlier versions of mongod(b) The replica role confers no additional access, in keeping with the policy of least privilege(c) To backup a given database’s users, you must have the replace action on the admin database’s admin.system.users collection(d) All of the mentionedThe question was asked at a job interview.This interesting question is from MongoDB Packages in section MongoDB Enterprise and Packages of MongoDB

Answer»

The correct ANSWER is (a) The data format used by mongodump from VERSION 2.2 or later is incompatible with EARLIER versions of mongod

Explanation: Do not USE recent versions of mongodump to back up older data stores.

9.

____________ does not dump the content of the local database.(a) mongoshell(b) mongodump(c) mongolocaldump(d) none of the mentionedThe question was posed to me in an interview.This intriguing question comes from MongoDB Packages topic in division MongoDB Enterprise and Packages of MongoDB

Answer» RIGHT option is (b) MONGODUMP

For explanation: mongodump can READ data from either MONGOD or mongos instances, in addition to reading directly from MONGODB data files without an active mongod.
10.

___________ allows you to scale your cluster linearly by adding more machines.(a) Vertical sharding(b) Autosharding(c) Horizontal sharding(d) All of the mentionedThis question was addressed to me by my school principal while I was bunking the class.Query is from MongoDB Enterprise in chapter MongoDB Enterprise and Packages of MongoDB

Answer»

Right option is (B) Autosharding

The best explanation: It is possible to INCREASE capacity without any DOWNTIME, which is very important on the web when load can increase suddenly and BRINGING down the website for extended maintenance can cost your business large AMOUNTS of revenue.

11.

MongoDB is installed unattended on Windows from the command line using ____________(a) msi.exe(b) msiexec.exe(c) exec.exe(d) none of the mentionedThis question was addressed to me in final exam.Question is taken from MongoDB Enterprise topic in chapter MongoDB Enterprise and Packages of MongoDB

Answer»

The CORRECT OPTION is (B) msiexec.exe

To EXPLAIN I would say: MongoDB requires a data DIRECTORY to store all data. MongoDB’s default data directory path is \data\db.

12.

Which of the following file is not a MongoDB configuration file?(a) mongodb.conf(b) mongod.conf(c) mongodb.con(d) none of the mentionedThis question was addressed to me in final exam.I'm obligated to ask this question of MongoDB Enterprise topic in section MongoDB Enterprise and Packages of MongoDB

Answer»

Correct answer is (b) mongod.conf

Best EXPLANATION: The Enterprise PACKAGES include an example SNMP configuration FILE named mongod.conf.

13.

User account running mongod has _______ permissions for the directory.(a) write only(b) read only(c) read and write(d) none of the mentionedThe question was posed to me in unit test.This interesting question is from MongoDB Enterprise topic in division MongoDB Enterprise and Packages of MongoDB

Answer»

Right answer is (c) read and write

The EXPLANATION: To RUN MongoDB, run the mongod process at the system prompt.

14.

The MongoDB process listens on port _________ by default.(a) 27017(b) 27170(c) 27107(d) 26017The question was asked during an interview.This question is from MongoDB Enterprise in division MongoDB Enterprise and Packages of MongoDB

Answer»

Correct choice is (a) 27017

Easiest EXPLANATION: Clients connect to the MONGODB process, optionally AUTHENTICATE themselves if security is turned on, and perform a sequence of ACTIONS, such as INSERTS, queries and updates.

15.

The MongoDB instance stores its _________ files in /var/lib/mongo by default.(a) log(b) data(c) replica(d) all of the mentionedI had been asked this question in final exam.Question is taken from MongoDB Enterprise topic in division MongoDB Enterprise and Packages of MongoDB

Answer»

Correct answer is (B) data

For explanation: You can SPECIFY alternate log and data FILE DIRECTORIES in /etc/mongod.conf.

16.

Point out the wrong statement.(a) If you change the user that runs the MongoDB process, you must modify the access control rights(b) The MongoDB instance stores its data files in /var/log/mongodb by default(c) MongoDB uses memory mapped files for data management for efficiency(d) None of the mentionedI have been asked this question in class test.The origin of the question is MongoDB Enterprise topic in division MongoDB Enterprise and Packages of MongoDB

Answer»

Right answer is (B) The MongoDB instance stores its data files in /var/LOG/mongodb by DEFAULT

For explanation: The MongoDB instance stores its data files in /var/lib/mongo and its log files in /var/log/mongodb by default.

17.

Point out the correct statement.(a) MongoDB can be installed on SUSE which is a Linux flavour(b) MongoDB Enterprise is available on select platforms and contains support for several features related to security and monitoring(c) A commercial edition of MongoDB that includes additional features(d) All of the mentionedThis question was posed to me in class test.My query is from MongoDB Enterprise in portion MongoDB Enterprise and Packages of MongoDB

Answer»

Correct ANSWER is (d) All of the mentioned

Easiest EXPLANATION: MongoDB is a server process that RUNS on Linux, Windows and OS X.

18.

To install the latest stable version of MongoDB on SUSE, issue ______________(a) sudo zypper install mongodb-enterprise(b) sudo zypper update mongodb-enterprise(c) sudo zyp install mongodb-enterprise(d) none of the mentionedI had been asked this question in a national level competition.This question is from MongoDB Enterprise topic in chapter MongoDB Enterprise and Packages of MongoDB

Answer»

The correct OPTION is (a) sudo zypper INSTALL mongodb-enterprise

Easy EXPLANATION: When you install the packages, you choose whether to install the CURRENT release or a previous one. This step PROVIDES the commands for both.

19.

mongod process is stopped by issuing which of the following command?(a) sudo service mongod start(b) sudo service mongod stop(c) sudo service mongod restart(d) none of the mentionedThe question was asked in unit test.This question is from MongoDB Enterprise in portion MongoDB Enterprise and Packages of MongoDB

Answer»

The correct choice is (B) SUDO SERVICE mongod stop

Best EXPLANATION: To stop MONGODB, press Control+C in the terminal where the mongod instance is running.

20.

Command to install the latest stable version of MongoDB Enterprise in Ubuntu is ______________(a) sudo apt-get install mongodb(b) sudo apt-get install mongodb-enterprise(c) sudo apt-get install mongodb-ent(d) all of the mentionedThe question was asked during an interview.I want to ask this question from MongoDB Enterprise topic in section MongoDB Enterprise and Packages of MongoDB

Answer»

The CORRECT answer is (b) sudo apt-get install mongodb-enterprise

The best EXPLANATION: To install a specific release of MongoDB Enterprise, specify each component package individually and append the version NUMBER to the package NAME.

21.

MongoDB only provides Enterprise packages for Ubuntu ________ LTS.(a) 13.04(b) 12.10(c) 12.04(d) 13.10This question was addressed to me in an internship interview.This intriguing question comes from MongoDB Enterprise topic in chapter MongoDB Enterprise and Packages of MongoDB

Answer»

Right ANSWER is (c) 12.04

For EXPLANATION: The package STRUCTURE and names have changed as of VERSION 2.6.

22.

Which of the following is the Ubuntu package management tool?(a) wapt(b) dpkg(c) capt(d) watThe question was posed to me by my school teacher while I was bunking the class.Question is from MongoDB Enterprise topic in section MongoDB Enterprise and Packages of MongoDB

Answer»

Right option is (b) DPKG

The BEST I can explain: The Ubuntu package MANAGEMENT tools (i.e. dpkg and APT) ensure package consistency and authenticity by requiring that distributors sign packages with GPG keys.

23.

Point out the wrong statement.(a) As of version 2.0.0, there are no control scripts for mongos(b) The mongodb-enterprise package includes various control scripts, including the init script /etc/rc.d/init.d/mongod(c) You must configure SELinux to allow MongoDB to start on Red Hat Linux-based systems(d) None of the mentionedI had been asked this question in a job interview.This key question is from MongoDB Enterprise topic in division MongoDB Enterprise and Packages of MongoDB

Answer»

Right option is (a) As of VERSION 2.0.0, there are no CONTROL scripts for MONGOS

To explain: As of version 3.0.0, there are no control scripts for mongos.The mongos process is used only in sharding.

24.

Which of the following is not a part of mongodb-enterprise-tools?(a) mongodump(b) mongotop(c) mongodown(d) none of the mentionedThe question was asked in semester exam.I would like to ask this question from MongoDB Enterprise in portion MongoDB Enterprise and Packages of MongoDB

Answer»

The correct choice is (c) mongodown

Best explanation: MONGODB-enterprise-TOOLS package CONTAINS the following MongoDB tools: mongoimport bsondump, MONGODUMP, mongoexport, mongofiles, mongoimport, mongooplog, mongoperf, mongorestore, mongostat, and MONGOTOP.

25.

______ package contains the mongod daemon and associated configuration and init scripts.(a) mongodb-enterprise(b) mongodb-enterprise-server(c) mongodb-enterprise-mongos(d) none of the mentionedI got this question in unit test.I'm obligated to ask this question of MongoDB Enterprise topic in section MongoDB Enterprise and Packages of MongoDB

Answer» CORRECT ANSWER is (B) mongodb-enterprise-server

The best I can explain: mongodb-enterprise-mongos PACKAGE contains the mongos daemon.
26.

Point out the correct statement.(a) MongoDB provides packages of the officially supported MongoDB Enterprise builds in it’s own repository(b) mongodb-enterprise-tool package contains the mongo shell(c) mongodb-enterprise-shell package contains the mongo tools(d) All of the mentionedThe question was posed to me in unit test.My question comes from MongoDB Enterprise in division MongoDB Enterprise and Packages of MongoDB

Answer»

The correct OPTION is (a) MONGODB PROVIDES packages of the officially supported MongoDB Enterprise BUILDS in it’s own repository

The explanation: This repository provides the MongoDB Enterprise distribution in many packages.

27.

Which of the following tool can be used to reload a database dump?(a) mongorestore(b) mongofiles(c) mongosupport(d) none of the mentionedI have been asked this question at a job interview.The question is from Installation in chapter MongoDB Enterprise and Packages of MongoDB

Answer» RIGHT choice is (a) mongorestore

To ELABORATE: The mongorestore program writes data from a binary DATABASE DUMP created by mongodump to a MONGODB instance.
28.

Which of the following is a metapackage for enterprise?(a) mongodb-enterprise(b) mongodb-enterprise-server(c) mongodb-enterprise-mongos(d) none of the mentionedI had been asked this question during a job interview.My doubt stems from MongoDB Enterprise in chapter MongoDB Enterprise and Packages of MongoDB

Answer»

Correct answer is (a) mongodb-enterprise

To ELABORATE: mongodb-enterprise is a METAPACKAGE that will AUTOMATICALLY INSTALL the four component packages.

29.

__________ is a command-line utility to import content from a JSON, CSV, or TSV.(a) mongorestore(b) mongofiles(c) mongosupport(d) mongoimportThis question was addressed to me in final exam.The above asked question is from Installation in division MongoDB Enterprise and Packages of MongoDB

Answer»

The correct CHOICE is (d) mongoimport

Easiest EXPLANATION: Import CONTENT from a JSON, CSV, or TSV export is CREATED by mongoexport.

30.

Which of the following is used for creating a binary export of the contents of a Mongo database?(a) mongodump(b) mongofiles(c) mongosupport(d) mongoimportThe question was asked in homework.Origin of the question is Installation in section MongoDB Enterprise and Packages of MongoDB

Answer»

The CORRECT ANSWER is (a) mongodump

Explanation: mongodump is a utility for creating a BINARY export of the contents of a DATABASE.

31.

___________ manipulate files stored in your MongoDB instance in GridFS.(a) mongorestore(b) mongofiles(c) mongosupport(d) none of the mentionedThis question was posed to me in quiz.This intriguing question comes from Installation topic in portion MongoDB Enterprise and Packages of MongoDB

Answer»

Right answer is (b) mongofiles

Explanation: mongofiles provides an interface between objects STORED in your FILE SYSTEM and GRIDFS.

32.

Point out the wrong statement.(a) BSON is difficult to code and manage(b) MongoDB stores data in JSON documents(c) JSON provides a rich data model that seamlessly maps to native programming language types(d) All of the mentionedI got this question in an international level competition.Enquiry is from Installation in section MongoDB Enterprise and Packages of MongoDB

Answer» CORRECT option is (a) BSON is DIFFICULT to CODE and manage

For EXPLANATION I would say: BSON is easy to code and manage.
33.

Point out the correct statement.(a) MongoDB supports a “standalone” or single-instance operation(b) Sharded clusters provide high performance replication with automated failover(c) Replica sets make it possible to partition large data sets over many machines transparently to the users(d) All of the mentionedThe question was posed to me in an online interview.The above asked question is from Installation in division MongoDB Enterprise and Packages of MongoDB

Answer»

The correct option is (a) MongoDB supports a “STANDALONE” or single-instance operation

The explanation: MongoDB users combine replica SETS and sharded clusters to PROVIDE high levels redundancy for large DATA sets transparently for applications.

34.

Which of the following network analyzer fully supports MongoDB?(a) Wireshark(b) Riakshark(c) Snort(d) SuricataI had been asked this question in class test.The doubt is from Installation topic in chapter MongoDB Enterprise and Packages of MongoDB

Answer» RIGHT answer is (a) Wireshark

To EXPLAIN I would SAY: Wireshark is CROSS platform and open source network sniffer.
35.

Which of the following is simplest tool for installation of MongoDB?(a) mongorestore(b) mongooplog(c) mongodump(d) all of the mentionedI got this question by my college director while I was bunking the class.I need to ask this question from Installation topic in section MongoDB Enterprise and Packages of MongoDB

Answer»

Right choice is (b) mongooplog

The EXPLANATION is: mongooplog is a simple TOOL that polls OPERATIONS from the replication oplog of a remote SERVER.

36.

Which of the following provides low-level tracing/sniffing view into database activity?(a) mongosniff(b) mongotop(c) mongooplog(d) mongofilesThe question was posed to me in unit test.My doubt is from Installation in portion MongoDB Enterprise and Packages of MongoDB

Answer»

The correct answer is (a) mongosniff

To explain: mongosniff is a command-line tool providing a sniffing view into DATABASE activity by monitoring network traffic GOING to and from MongoDB.

37.

Which of the following tool is similar to the UNIX/Linux top utility?(a) mongosniff(b) mongotop(c) mongooplog(d) mongofilesI got this question during a job interview.I would like to ask this question from Installation topic in portion MongoDB Enterprise and Packages of MongoDB

Answer»

Correct OPTION is (b) mongotop

Easiest explanation: By default, mongotop returns VALUES EVERY SECOND.

38.

mongostat tool is similar to the UNIX/Linux _________ utility.(a) stats(b) vim(c) vmstat(d) all of the mentionedI have been asked this question in unit test.I want to ask this question from Installation in chapter MongoDB Enterprise and Packages of MongoDB

Answer»

The correct option is (C) vmstat

The EXPLANATION is: vmstat is a computer system monitoring tool that COLLECTS and displays SUMMARY information about operating system memory, PROCESSES, interrupts, paging and block I/O.

39.

___________ is a command-line tool that displays a summary list of status statistics for a currently running MongoDB instance.(a) mongostat(b) mongotop(c) mongooplog(d) mongofilesThe question was posed to me at a job interview.My question is taken from Installation topic in section MongoDB Enterprise and Packages of MongoDB

Answer»

Correct ANSWER is (a) mongostat

Easy EXPLANATION: It describes how many inserts, updates, removes, queries, and COMMANDS were performed, as well as what percentage of the time the database was locked and how much MEMORY it is USING.

40.

___________ provides statistics on the per-collection level.(a) mongosniff(b) mongotop(c) mongooplog(d) mongofilesThis question was addressed to me by my school principal while I was bunking the class.Query is from Installation topic in division MongoDB Enterprise and Packages of MongoDB

Answer»

Correct option is (b) mongotop

To elaborate: mongotop is a command-line tool providing a METHOD to track the AMOUNT of time a MongoDB INSTANCE spends reading and WRITING data.

41.

Point out the wrong statement.(a) MongoHub is a native OS-X-application for MongoDB management(b) Cassandra is most popular for its document stores management system(c) MongoDB is the fourth most popular type of database management system(d) All of the mentionedThis question was posed to me in quiz.My question is based upon Installation topic in division MongoDB Enterprise and Packages of MongoDB

Answer»

The CORRECT OPTION is (b) CASSANDRA is most popular for its document stores management system

Explanation: MONGODB is most popular for document stores.

42.

Which of the following is web-based client software for MongoDB?(a) BI Studio(b) Database Master(c) Fang of Mongo(d) Mongo3I had been asked this question in an internship interview.This question is from Installation in division MongoDB Enterprise and Packages of MongoDB

Answer»

The CORRECT CHOICE is (b) Database Master

Best EXPLANATION: Futon4Mongo is a CLONE of the CouchDB-Futon-Web-Interface for MongoDB.

43.

Administrative information in MongoDB can also be accessed through _____________(a) dashboard(b) web interface(c) psql shell(d) all of the mentionedI had been asked this question at a job interview.The origin of the question is Installation topic in division MongoDB Enterprise and Packages of MongoDB

Answer» CORRECT answer is (b) web INTERFACE

The best I can explain: Web interface is a simple WEBPAGE that SERVES information about the current server status. By default, this interface is 1000 PORTS above the database port (28017).
44.

Point out the correct statement.(a) Humon.io is a Web based GUI for MongoDB(b) Mongo3 is a java-based GUI(c) NoSQL Manager for MongoDB is an MS Windows GUI application for MongoDB management with Shell(d) All of the mentionedThis question was posed to me in class test.My doubt is from Installation topic in portion MongoDB Enterprise and Packages of MongoDB

Answer»

The correct option is (C) NoSQL MANAGER for MongoDB is an MS WINDOWS GUI application for MongoDB management with Shell

For EXPLANATION I would say: NoSQL Manager for MongoDB is similar to MMS.

45.

What is the interactive shell for MongoDB called?(a) mongo(b) mongodb(c) dbmong(d) none of the mentionedI have been asked this question during an interview.Question is taken from Installation topic in division MongoDB Enterprise and Packages of MongoDB

Answer»

Correct ANSWER is (a) mongo

Easiest explanation: Interactive shell lets developers VIEW, INSERT, remove, and update data in their DATABASES, as well as get replication information, set up sharding, shut down servers, execute JavaScript, and more.