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.

Find the command that forces MongoDB to use a particular index for a db.collection.find() operation.

Answer»

Find the COMMAND that forces MongoDB to USE a particular index for a db.collection.find() operation.
Choose the correct ANSWER from below list
(1)EXPLAIN()
(2)hint()
(3)hit()

Answer:-(2)hint()

2.

Find a technique of splitting up a large collection among multiple servers.

Answer» FIND a technique of splitting up a LARGE collection AMONG multiple servers.
Choose the correct ANSWER from below list
(1)Indexes
(2)SHARDING
(3)Replication

Answer:-(2)Sharding
3.

Default size of Chunk in MongoDB is ___________.

Answer»

Default size of Chunk in MONGODB is ___________.
Choose the correct answer from below LIST
(1)64 GB
(2)128 KB
(3)64 KB
(4)64 MB

Answer:-(4)64 MB

4.

In MongoDB, which is the storage measure used by masters oplog?

Answer»

In MongoDB, which is the storage MEASURE used by masters oplog?
CHOOSE the correct answer from below list
(1)BYTE
(2)MB
(3)GB
(4)KB

Answer:-(3)GB

5.

In MongoDB, _________ helps to synchronize data across multiple servers.

Answer»

In MONGODB, _________ helps to SYNCHRONIZE data ACROSS MULTIPLE servers.
Choose the correct ANSWER from below list
(1)Indexes
(2)Sharding
(3)Replication

Answer:-(3)Replication

6.

In MongoDB, identify the command that adds an shard with a sharded Cluster.

Answer»

In MONGODB, IDENTIFY the command that adds an shard with a SHARDED Cluster.
Choose the correct answer from below list
(1)add
(2)Shardadd
(3)addShard
(4)ShardAdd

Answer:-(3)addShard

7.

Mongo client will generate _____ command to initiate a new replica set.

Answer»

Mongo client will generate _____ command to initiate a new replica set.
Choose the CORRECT answer from below LIST
(1)rs.initiate()
(2)rs.conf()
(3)db.isMaster()
(4)rs.status()

Answer:-(1)rs.initiate()

8.

Which is the command to Check the Size of the Oplog?

Answer»

Which is the command to Check the Size of the Oplog?
CHOOSE the CORRECT answer from below list
(1)rs.conf()
(2)rs.printSlaveReplicationInfo()
(3)rs.initiate()
(4)rs.printReplicationInfo()

Answer:-(4)rs.printReplicationInfo()

9.

Which of the following will control the amount of logging output that mongodb writes to the log?

Answer»

Which of the FOLLOWING will CONTROL the amount of LOGGING OUTPUT that mongodb writes to the log?
Choose the correct answer from below list
(1)operationProfiling.mode
(2)operationProfiling.slowOpThresholdMs
(3)systemLog.verbosity

Answer:-(3)systemLog.verbosity

10.

Choose the operations that can be captured by database profiler?

Answer»

Choose the operations that can be CAPTURED by DATABASE profiler?
Choose the correct ANSWER from below list
(1)Read operations
(2)WRITE operations
(3)Cursor Operations
(4)All the Options

Answer:-(4)All the Options

11.

Which model is used when there contains relationships between entities?

Answer»

Which model is USED when there contains relationships between entities?
CHOOSE the correct ANSWER from below list
(1)External Model
(2)All the Options
(3)Reference Model
(4)Embedded Model

Answer:-(4)Embedded Model

12.

The ____________ command returns a document that provides an overview of the databases state.

Answer»

The ____________ command returns a document that provides an overview of the DATABASES state.
Choose the CORRECT answer from below list
(1)hit()
(2)explain()
(3)HINT()
(4)ServerStatus()

Answer:-(4)ServerStatus()

13.

Which will be the command to return information on query plans and execution statistics of the query plans?

Answer»

Which will be the command to return information on QUERY PLANS and EXECUTION statistics of the query plans?
Choose the correct answer from below list
(1)explain()
(2)stats()
(3)All the Options
(4)queryplan()

Answer:-(1)explain()

14.

Which of the following can be used to check the status of replica set?

Answer»

Which of the following can be used to check the status of replica set?
Choose the correct ANSWER from below list
(1)rs.status()
(2)rs.initiate()
(3)db.isMaster()
(4)rs.conf()

Answer:-(1)rs.status()

15.

By default, MongoDB automatically logs slow queries above _____ ms to the log.

Answer»

By default, MONGODB AUTOMATICALLY logs slow queries above _____ MS to the log.
Choose the correct ANSWER from below list
(1)16
(2)100
(3)64
(4)264

Answer:-(2)100
MongoDB automatically logs,mongodb questions,Mongodb logs slow,mongodb faq,MongoDB
Perpetuus

16.

Which is the method used to check the current length of replication lag?

Answer»

Which is the method used to check the current length of replication lag?
Choose the correct ANSWER from below LIST
(1)rs.status()
(2)rs.printSlaveReplicationInfo()
(3)rs.initiate()
(4)rs.conf()

Answer:-(2)rs.printSlaveReplicationInfo()

17.

______ can be used to check if the connected node is primary or not?

Answer»

______ can be used to CHECK if the connected NODE is primary or not?
Choose the CORRECT ANSWER from below list
(1)rs.status()
(2)db.isMaster()
(3)rs.conf()
(4)rs.initiate()

Answer:-(2)db.isMaster()

18.

In MongoDB, _________ is the operator limits the contents of an array field from the query.

Answer»

In MongoDB, _________ is the operator LIMITS the contents of an ARRAY FIELD from the query.
Choose the CORRECT answer from below list
(1)$Match
(2)$elemMatch
(3)$slice

Answer:-(2)$elemMatch

19.

Which is the method used in MongoDB to Grant user?

Answer»

Which is the METHOD USED in MongoDB to Grant user?
Choose the correct answer from below LIST
(1)db.grantRole()
(2)All the Options
(3)db.grantRolesToUser()
(4)db.grantToUser()

Answer:-(3)db.grantRolesToUser()

20.

Choose the indexes to index the content stored in arrays.

Answer» CHOOSE the indexes to index the CONTENT stored in arrays.
Choose the correct ANSWER from below list
(1)ARRAY Index
(2)Singlekey indexes
(3)MULTIKEY indexes
(4)Compoundkey indexes

Answer:-(3)Multikey indexes
21.

Which method is used to return information for all users associated with a database?

Answer»

Which METHOD is used to return information for all users ASSOCIATED with a DATABASE?
Choose the correct answer from below LIST
(1)db.Users()
(2)db.returnUsers()
(3)db.getUsers()

Answer:-(3)db.getUsers()

22.

Choose the data model which allows applications to store related pieces of information in the same database record.

Answer» CHOOSE the data model which allows APPLICATIONS to store related pieces of information in the same database record.
Choose the correct ANSWER from below list
(1)External Model
(2)All the Options
(3)Embedded Model
(4)Reference Model

Answer:-(3)Embedded Model