MongoDB/MongoDB Mcq Question Set 2 Sample Test,Sample questions

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

1.sudo apt-get install mongodb

2. sudo apt-get install mongodb-enterprise

3. sudo apt-get install mongodb-ent

4.All of the Mentioned


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

1.sudo service mongod start

2.sudo service mongod stop

3.sudo service mongod restart

4.None of the mentioned


Question:
 Point out the correct statement.

1. MongoDB can be installed on SUSE which is a Linux flavour

2.MongoDB Enterprise is available on select platforms and contains support for several features related to security and monitoring

3.A commercial edition of MongoDB that includes additional features

4.All of the Mentioned


Question:
 Point out the correct statement.

1.Collection is a group of MongoDB documents

2.MongoDB is an open-source document database, and leading NoSQL database

3.Collections do not enforce a schema

4. All of the mentioned


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

1.log

2.data

3.replica

4. All of the mentioned


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

1.restore

2.backup

3.replication

4. All of the mentioned


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

1.mongodump

2. mongotop

3.mongodown

4. none of the mentioned


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

1.find

2. move

3. shell

4.replace()


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

1. mongo

2.master

3. test

4.primary


Question:
Command to check existence of collection is ______

1. show collection

2.show collections

3. show collect

4.None of the mentioned


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

1.web

2. localhost

3.web host

4.All of the Mentioned


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

1. msi.exe

2.msiexec.exe

3. exec.exe

4.None of the mentioned


Question:
MongoDB only provides Enterprise packages for Ubuntu ________ LTS.

1.13.04

2.12.10

3.12.04

4.13.10


Question:
Point out the correct statement.

1.The data format used by mongodump from version 2.2 or later is incompatible with earlier versions of mongod

2. The replica role confers no additional access, in keeping with the policy of least privilege

3.To backup a given database’s users, you must have the replace action on the admin database’s admin.system.users collection

4.All of the Mentioned


Question:
Point out the correct statement.

1.MMS provides backup and monitoring

2.MongoDB can also be configured for data replication

3.MMS is available to all users in the cloud and on-premises as part of MongoDB Standard and Enterprise Subscriptions

4.All of the Mentioned


Question:
Point out the correct statement.

1. A database is a set of key-value pairs

2.A MongoDB deployment hosts a number of databases

3.A document holds a set of collections

4.All of the Mentioned


Question:
Point out the wrong statement.

1.As of version 2.0.0, there are no control scripts for mongos

2.The mongodb-enterprise package includes various control scripts, including the init script /etc/rc.d/init.d/mongod

3. You must configure SELinux to allow MongoDB to start on Red Hat Linux-based systems

4.None of the mentioned


Question:
Point out the wrong statement.

1.If you change the user that runs the MongoDB process, you must modify the access control rights

2.The MongoDB instance stores its data files in /var/log/mongodb by default

3. MongoDB uses memory mapped files for data management for efficiency

4.None of the mentioned


Question:
Point out the wrong statement.

1.To backup a given database, you must have read access on the database

2.The backup role confers no additional access, in keeping with the policy of least privilege

3. mongodumplocal overwrites output files if they exist in the backup data folder

4.All of the Mentioned


Question:
Point out the wrong statement.

1.MongoDB works right out of the box, and you can dive right into developing your application, instead of spending a lot of time fine-tuning obscure database configurations

2.MongoDB works hard to be very easy to install, configure, maintain, and use

3.MongoDB does not provide a lot of the features of a traditional RDBMS

4.None of the mentioned


Question:
Point out the wrong statement.

1.Documents have static schema in MongoDB

2.Eventually-consistent reads can be distributed over replicated servers

3.Indexes can include keys from embedded documents and arrays

4.None of the mentioned


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

1.Permanent

2.Secure

3.Primary

4. Protected


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

1. cursor()

2.find()

3.findc()

4. none of the mentioned


Question:
The MongoDB process listens on port _________ by default.

1. 27017

2.27170

3.27107

4.26017


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

1. limit()

2. limitOf()

3.limitBy()

4.None of the mentioned


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

1.sudo zypper install mongodb-enterprise

2.sudo zypper install mongodb-enterprise

3. sudo zyp install mongodb-enterprise

4.None of the mentioned


Question:
User account running mongod has _______ permissions for the directory.

1. write only

2.read only

3. read and write

4.None of the mentioned


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

1.row

2.cursor

3.colums

4.None of the mentioned


Question:
Which of the following also returns a list of databases?

1.show databases

2.show database

3. display dbs

4. All of the mentioned


Question:
Which of the following file is a MongoDB configuration file?

1. mongodb.conf

2.mongod.conf

3.mongodb.con

4.None of the mentioned


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

1.mongoperf

2.mongoio

3. mongod

4.None of the mentioned


Question:
Which of the following is the Ubuntu package management tool?

1. wapt

2.dpkg

3.capt

4.wat


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

1.db.bios.find().limit( 5 )

2.db.bios.find().skip( 1 )

3.db.bios.find().skip( 5 )

4.db.bios.find().sort( 5 )


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

1.sort()

2. order()

3.orderby()

4.All of the Mentioned


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

1. cur.toArray()

2.cursor.toArray()

3.doc.toArray()

4.All of the Mentioned


Question:
Which of the following method returns a cursor?

1.find

2. sort

3.skip

4.All of the Mentioned


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

1.hasMethod()

2.hasNext()

3. hasDoc()

4.All of the Mentioned


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

1.use dbs

2.use db

3.use mydb

4.use mydbs


Question:
Which of the following will implicitly create the collection testData?

1.while (var i = 1; i <= 25; i++) { db.testData.insert( { x : i } ) }

2. for (var i = 1; i <= 25; i++) { db.testData.insert( { x : i } ) }

3. for (var i = 1; i <= 25; i++) { db.testData.inserts( { x : i } ) }

4.None of the mentioned


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

1.Vertical sharding

2. Autosharding

3.Horizontal sharding

4.All of the Mentioned


Question:
_____ does not dump the content of the local database.

1. mongoshell

2. mongodump

3.mongolocaldump

4.None of the mentioned


Question:
_____ is a diagnostic tool for inspecting BSON files.

1. jsondump

2.bsondump

3.bsondumpjson

4.All of the Mentioned


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

1. mongod

2. mongos

3.mongocon

4. none of the mentioned


Question:
_____ is the primary daemon process for the MongoDB system.

1.mongos

2.mongod

3.logpath

4.syspathlog


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

1.displayjson

2.print

3.printjson

4.printdoc


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

1. mongod

2.mongodb

3.mongo

4.None of the mentioned


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

1.syspath

2.syslog

3.logpath

4.syspathlog


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

1.mongoperf

2. mongoio

3.mongod

4.mongofiles


Question:
_______ command display the list of databases.

1.show db

2.show dbs

3.show data

4.display dbs


Question:
_______ package contains the mongo shell.

1.mongodb-enterprise

2. mongodb-enterprise-server

3.mongodb-enterprise-shell

4.None of the mentioned


More MCQS

  1. MongoDB Mcq Question Set 1
  2. MongoDB Mcq Question Set 2
  3. MongoDB Mcq Question Set 3
  4. MongoDB Mcq Question Set 4
  5. MongoDB Mcq Question Set 5
  6. MongoDB Mcq Question Set 6
  7. MongoDB Mcq Question Set 7
  8. MongoDB Mcq Question Set 8
  9. MongoDB Mcq Question Set 9
  10. MongoDB Mcq Question Set 10
  11. MongoDB Mcq Question Set 11
  12. MongoDB Mcq Question Set 12
  13. MongoDB Mcq Question Set 13
  14. MongoDB Mcq Question Set 14
  15. MongoDB Mcq Question Set 15
  16. MongoDB Mcq Question Set 16
  17. MongoDB Mcq Question Set 17
  18. MongoDB Mcq Question Set 18
  19. MongoDB Mcq Question Set 19
  20. MongoDB Mcq Question Set 20
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!