0% found this document useful (0 votes)
1K views13 pages

Mongo MCQ

The document contains questions about MongoDB and NoSQL databases. It tests knowledge about MongoDB's features like being a document-oriented, high performance database that stores data in flexible documents within collections. It also covers MongoDB commands like db.createCollection() to create collections, insert() to insert documents, and createIndex() to create indexes. MongoDB provides scalability, availability and handles complex data structures through its flexible schema and distribution capabilities.

Uploaded by

Mayur Panchal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views13 pages

Mongo MCQ

The document contains questions about MongoDB and NoSQL databases. It tests knowledge about MongoDB's features like being a document-oriented, high performance database that stores data in flexible documents within collections. It also covers MongoDB commands like db.createCollection() to create collections, insert() to insert documents, and createIndex() to create indexes. MongoDB provides scalability, availability and handles complex data structures through its flexible schema and distribution capabilities.

Uploaded by

Mayur Panchal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

1. Amongst which of the following is / are true about MongoDB?

A. MongoDB is a cross-platform database


B. Document oriented database
C. High performance database
D. All of the mentioned above

2. The data model available within MongoDB allows us to represent ___.

A. Hierarchical relationships
B. Able to handle complex structures
C. Both A. and B.
D. None of the mentioned above

3. MongoDB is one of the leading NoSQL databases?

A. True
B. False

4. A record in MongoDB is a ___.

A. Document
B. Table
C. Application
D. None of the mentioned above

5. MongoDB stores documents in ___.

A. Store
B. Collections
C. Indexes
D. None of the mentioned above

6. The Collections screen ___ the existing collections.

A. Lists
B. Package
C. Network
D. None of the mentioned above
7. The Collections screen displays ___ for each collection in the selected database.

A. Collection name
B. Number of documents in the collection
C. Both A. and B.
D. None of the mentioned above

9. Aggregation's operations process data records and return computed results.

A. True
B. False

10. Amongst which of the following is / are true about the authentication ___.

A. It is a process of verifying the identity of a client


B. It is a process of verifying network
C. It is a process of verifying the database
D. None of the mentioned above

11. Cursor is a pointer to the result set of a ___.

A. Query
B. Table
C. Dataset
D. None of the mentioned above

12. Field is a name-value pair in a ___.

A. Attribute
B. Table
C. Document
D. None of the mentioned above

13. MongoDB supports searching by ___.

A. Field
B. Range queries
C. Regular expression searches
D. All of the mentioned above

14. Indexes can be created to improve the performance of searches within ___.

A. MongoDB
B. NoSQL
C. Both A. and B.
D. None of the mentioned above

15. NoSQL is not a ___.

A. Relational database
B. Network database
C. Communication set
D. None of the mentioned above

16. MongoDB can provide high availability with replica sets?

A. True
B. False

17. During the year ___, Dwight Merriman, Eliot Horowitz, and Kevin Ryan
developed MongoDB.

A. 2007
B. 2008
C. 2009
D. None of the mentioned above

18. The data in MongoDB has a flexible schema?

A. True
B. False

19. NoSQL is not a ___.

A. Relational database
B. Network database
C. Communication set
D. None of the mentioned above

20. MongoDB was first developed by ___ Software in 2007.

A. 9gen
B. 10gen
C. 12gen
D. All of the mentioned above

21. Amongst which of the following is / are show the need of MongoDB
technology –

A. No downtime while the application is being scaled


B. Exceptional scalability feature
C. No downtime while the application is being scaled
D. All of the mentioned above

22. MongoDB meets the business requirements by –

A. It provides the right mix of technology and data for competitive advantage
B. It increasingly accelerated the time to value and lowered the total cost
C. It builds applications that are just not possible with traditional relational
databases
D. All of the mentioned above

23. Due to Distributed Data Platform, MongoDB can be run ensuring new levels of
availability and scalability –

A. True
B. False

24. Due to Distributed Data Platform, MongoDB can be run ensuring new levels of
availability and scalability –

A. True
B. False

25. Database_name is a MongoDB command is used for ___.


A. Database Creation
B. Dropping Databases
C. Creating a Collection
D. All of the mentioned above

26. In MongoDB, db.dropDatabase () is used for ___.

A. Dropping Databases
B. Creating a Collection
C. Database Creation
D. None of the mentioned above

27. Amongst which of the following is / are the command used to create
collection in MongoDB?

A. db.dropDatabase()
B. db.createCollection()
C. Both A. and B.
D. None of the mentioned above

28. Amongst which of the following is / are the data types of MongoDB?

A. Timestamp
B. Object
C. Symbol
D. All of the mentioned above

29. The below example can be used to create a collection to store the ___.

db.Employee.insert
(
{
...
...
}
)

A. Employee records
B. Students record
C. Product records
D. All of the mentioned above

30. MongoDB provides the insert () command to insert documents into a


collection.

A. True
B. False

31. To create an index, you need to use ___ method of MongoDB.

A. createTable()
B. createIndex()
C. createdata()
D. None of the mentioned above

32. To build the index in the background creates an index which does not block
other database activities.

A. True
B. False

33. Aggregation operations in MongoDB ___ values from multiple documents.

A. Data set
B. Set
C. Group
D. None of the mentioned above

34. MongoDB achieves replication by the use of ___.

A. Replica set
B. Data set
C. $first
D. All of the mentioned above
35. In MongoDB, Sharding is the process of ___ across multiple machines.

A. Drop data records


B. Storing data records
C. Truncate data records
D. All of the mentioned above

36. Amongst which of the following is / are used to create backup of database in
MongoDB?

A. mongodump command
B. mongodelete command
C. mongotruncate command
D. None of the mentioned above

37. Amongst which of the following MongoDB command is used to import the
data from various sources?

A. mongoimport
B. mongoexport
C. mongotruncate
D. None of the mentioned above

38. Amongst which of the following MongoDB command is used to export the
data?

A. mongoexport
B. mongoimport
C. mongodelete
D. None of the mentioned above

39. In MongoDB command, the ___ utility provides a quick overview of the status
of a currently running mongod or mongos instance.

A. mongoexport
B. mongoexport
C. mongostat
D. None of the mentioned above

40. mongotop provides a method to track the amount of time a MongoDB


instance mongod spends reading and writing data.

A. True
B. False

41. In MongoDB, mongoreplay is a ___.

A. Traffic capture
B. Replay tool
C. Both A and B
D. None of the mentioned above

42. Amongst which of the following is / are the features of MongoDB?

A. Authentication
B. Encryption
C. Access control
D. All of the mentioned above

43. MongoDB employs Role-Based Access Control (RBAC) to govern access to a


MongoDB system.

A. True
B. False

44. MongoDB does not enable access control by default.

A. True
B. False

45. MongoDB Enterprise provides mongoldap for testing MongoDB's LDAP


configuration options against a running ___.

A. LDAP server
B. Set of servers.
C. Both A and B
D. None of the mentioned above
46. In MongoDB, the mongofiles utility makes it possible to manipulate files
stored in your MongoDB.

A. True
B. False

47. In MongoDB, install_compass is a platform-specific installation script for


MongoDB Compass.

A. True
B. False

48  The MongoDB explain() method does not support which of the following
verbosity mode:
A. queryPlanner
B. executionStats
C. allPlansExecution
D. CustomExecutionStats

49. Which of the following language is MongoDB written in?

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

50. Point out the correct statement.

A. MongoDB is classified as a NoSQL database


B. MongoDB favours XML format more than JSON
C. MongoDB is column oriented database store
D. All of the mentioned
51.Which of the following format is supported by MongoDB?

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

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

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

53. Point out the wrong statement.

A. Secondary indices are not available in MongoDB


B. MongoDB supports search by field, range queries, regular expression
searches
C. MongoDB can store the business subject in the minimal number of
documents
D. All of the mentioned

54. Initial release of MongoDB was in the year?

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

55. MongoDB has been adopted as ________ software by a number of major


websites and services.

A. Frontend
B. Backend
C. Proprietary
D. all of the mentioned

56.  MongoDB is a _________ database that provides high performance, high


availability, and easy scalability.

A. Graph
B. key value
C. Document
D. all of the mentioned

57. Which of the following is not a NoSQL database?

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

58.Which of the following is a NoSQL Database Type?

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

59. How to create a database in mongodb?

A. use databaseName
B. new databaseName
C. create databaseName
D. None of the above

60. What is MongoDB?

A. A file system.
B. A SQL database.
C. NoSQL database.
D. An Access da
E. tabase.

61.Command display the list of databases.

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

62. Which of the following is used to start server in MongoDB?

A. Mongod
B. Mongo
C. start-mongo
D. start-mongo.sh

63. NoSQL databases is used mainly for handling large volumes of ________data.

A. Unstructured
B. Structured
C. semi-structured
D. all of the mentioned

64. Which of the following are the simplest NoSQL databases?


A. Key-value
B. Wide-column
C. Document

D. All of the mentioned

65.What is the interactive shell for MongoDB called?


A. mongo
B. mongodb
C. dbmong
D. none of the mentioned
66. 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 mentioned

You might also like