28th
Dec
MongoDB MCQ

MongoDB MCQ

  • Admin
  • 28th Dec, 2020
  • 468 Followers

MongoDB MCQ Quiz

Following are mostly asked Mongodb MCQ test that are designed for professionals like you to crack you interviews. You can take this Mongodb online test before appearing to you real interview. This Mongodb quiz there are around 30+ multiple choice questions on Mongodb with four options.

1) Which of the following language is MongoDB written in?

  • A. C
  • B. Javascript
  • C. C++
  • D. All of the mentioned

2) Which of the following format is supported by MongoDB?

  • A. XML
  • B. SQL
  • C. BSON
  • D. All of the mentioned

3) MongoDB Queries can return specific fields of documents which also include user-defined __________ functions.

  • A. C
  • B. C++
  • C. Javascript
  • D. All of the mentioned

4) Initial release of MongoDB was in the year?

  • A. 2000
  • B. 2005
  • C. 2009
  • D. 2011

5) Dynamic schema in MongoDB makes ____________ easier for applications.

  • A. polymorphism
  • B. inheritance
  • C. encapsulation
  • D. None of the mentioned
Download Free : MongoDB MCQ PDF

6) With ________ MongoDB supports a complete backup solution and full deployment monitoring.

  • A. AMS
  • B. DMS
  • C. MMS
  • D. CMS

7) MongoDB provides high ____________ with replica sets.

  • A. availability
  • B. performance
  • C. scalability
  • D. none of the mentioned

8) MongoDB scales horizontally using _________ for load balancing purpose.

  • A. Partitioning
  • B. Sharding
  • C. Replication
  • D. None of the mentioned

9) MongoDB supports fixed-size collections called ____________ collections.

  • A. capped
  • B. secondary
  • C. primary
  • D. all of the mentioned

10) Which of the following sorting is not supported by MongoDB?

  • A. collection
  • B. heap
  • C. collation
  • D. none of the mentioned

11) Which of the following sorting is not supported by MongoDB?

  • A. collection
  • B. heap
  • C. collation
  • D. none of the mentioned

12) Which of the following is not a NoSQL database?

  • A. Cassandra
  • B. MongoDB
  • C. SQL Server
  • D. None of the mentioned

13) Which of the following is a NoSQL Database Type

  • A. SQL
  • B. JSON
  • C. Document databases
  • D. All of the mentioned

14) Which of the following is a wide-column store?

  • A. Riak
  • B. Redis
  • C. Cassandra
  • D. MongoDB

15) Which of the following are the simplest NoSQL databases?

  • A. Wide-column
  • B. Document
  • C. Key-value
  • D. All of the mentioned

16) NoSQL databases is used mainly for handling large volumes of ______________ data.

  • A. structured
  • B. semi-structured
  • C. unstructured
  • D. all of the mentioned

17) What is the interactive shell for MongoDB called?

  • A. mongo
  • B. dbmong
  • C. mongodb
  • D. none of the mentioned

18) Which of the following is web-based client software for MongoDB?

  • A. Database Master
  • B. BI Studio
  • C. Fang of Mongo
  • D. Mongo3

19) ___________ provides statistics on the per-collection level.

  • A. mongotop
  • B. mongosniff
  • C. mongofiles
  • D. mongooplog

20) Which of the following network analyzer fully supports MongoDB?

  • A. Riakshark
  • B. Snort
  • C. Wireshark
  • D. Suricata

21) What is the maximum size of a MongoDB document?

  • A. 2 MB
  • B. 16 MB
  • C. 12 MB
  • D. There is no maximum size. It depends on the RAM.

22) Which of the following is a metapackage for enterprise?

  • A. mongodb-enterprise
  • B. mongodb-enterprise-mongos
  • C. mongodb-enterprise-server
  • D. one of the mentioned

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

  • A. mongotop
  • B. mongodown
  • C. mongodump
  • D. none of the mentioned

24) MongoDB only provides Enterprise packages for Ubuntu ________ LTS.

  • A. 12.10
  • B. 12.04
  • C. 13.04
  • D. 13.10

25) Which of the following is the Ubuntu package management tool?

  • A. capt
  • B. wat
  • C. wapt
  • D. dpkg

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

  • A. sudo service mongod restart
  • B. sudo service mongod start
  • C. sudo service mongod stop
  • D. none of the mentioned

27) __________ is a diagnostic tool for inspecting BSON files.

  • A. bsondump
  • B. bsondumpjson
  • C. jsondump
  • D. all of the mentioned

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

  • A. web
  • B. web host
  • C. localhost
  • D. all of the mentioned

29) __________ command display the list of databases.

  • A. display dbs
  • B. show db
  • C. show dbs
  • D. show data

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

  • A. use db
  • B. use mydbs
  • C. use dbs
  • D. use mydb

31) Which of the following also returns a list of databases?

  • A. show database
  • B. display dbs
  • C. show databases
  • D. all of the mentioned

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

  • A. replace
  • B. shell
  • C. move
  • D. find

33) Point out the wrong statement.

  • A. A single MongoDB server typically has single databases
  • B. Database is a physical container for collections
  • C. Collection is the equivalent of an RDBMS table
  • D. None of the mentioned

34) MongoDB stores all documents in _____________

  • A. collections
  • B. rows
  • C. tables
  • D. All of the mentioned

35) Which of the following pipeline is used for aggregation in MongoDB?

  • A. information processing
  • B. knowledge processing
  • C. data processing
  • D. None of the mentioned

36) In aggregation pipeline, the _______ pipeline stage provides access to MongoDB queries.

  • A. $match
  • B. $batch
  • C. $catch
  • D. All of the mentioned

37) Which of the following functionality is used for aggregation framework?

  • A. $projectmatch
  • B. $project
  • C. $match
  • D. All of the mentioned

38) Which of the following is not a projection operator?

  • A. $elemMatch
  • B. $slice
  • C. $
  • D. None of the mentioned

39) Which of the following flag can be set by mongo shell?

  • A. noTimeout
  • B. Time
  • C. Timeout
  • D. None of the mentioned

40) A query _______ consists of a combination of query, sort, and projection specifications.

  • A. shape
  • B. stats
  • C. plan
  • D. All of the mentioned

Mongodb Online Test Questions (Mongodb FAQs)

1) What kind of database is mongodb?

MongoDB is a NoSQL database that uses JSON-like documents with optional schemas.

2) Which of the data format is supported by mongodb?

3) What is Aggregation Pipeline in mongodb?

4) A collection in mongodb is group of what?

A collection in mongodb is group of one or more related objects.It is the equivalent of a table in a relational database system.

5) List the indexes supported by mongodb?

6) Where mongodb stores all documents?

By default Mongo stores its data in the directory /data/db.

7) What is replica set in MongoDB?

A replica set in MongoDB is a group of mongod processes that maintain the same data set. Replica sets provide redundancy and high availability, and are the basis for all production deployments.

8) What is Sharding in MongoDB?

Sharding is a process of distributing data across multiple machines instead of keeping it on single machine. MongoDB uses sharding to support deployments with very large data sets and high throughput operations.

9) What is the use of GridFS in MongoDB?

GridFS is a mongoDB specification that is used to store and retrive BSON files that are larger than 10 MB. It does not support multi-document transactions and stores a file in chunks as seperate file.

10) What are the components of the Sharded cluster?

The major components of the Sharded cluster are shard, mongos, and config servers.

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Dec
Html5 MCQ
01st
Mar
AJAX MCQ
01st
Mar
Cobol MCQ