Explore topic-wise MCQs in Mongodb.

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

1.

Which of the following document configures the threshold which determines whether a query is “slow” for the purpose of the logging system?

A. systemLog.verbosity
B. operationProfiling.mode
C. operationProfiling.slowOpThresholdMs
D. none of the mentioned
Answer» D. none of the mentioned
2.

On Linux, use the ______ command to check if disk I/O is a bottleneck for your database.

A. stat
B. iostats
C. iostat
D. none of the mentioned
Answer» D. none of the mentioned
3.

Which of the following represents Shared lock?

A. R
B. w
C. r
D. W
Answer» B. w
4.

When the TTL thread is active, you will see _______ operations in the output of db.currentOp().

A. read
B. update
C. delete
D. all of the mentioned
Answer» D. all of the mentioned
5.

Which_of_the_following_document_configures_the_threshold_which_determines_whether_a_query_is_“slow”_for_the_purpose_of_the_logging_system?$#

A. systemLog.verbosity
B. operationProfiling.mode
C. operationProfiling.slowOpThresholdMs
D. none of the mentioned
Answer» D. none of the mentioned
6.

Which of the following represents Shared lock ?

A. R
B. w
C. r
D. W
Answer» B. w
7.

MongoDB stores tag sets in the replica set configuration object, which is the document returned by _____

A. rs.config()
B. rs.conf()
C. rs.confstats()
D. all of the mentioned
Answer» C. rs.confstats()
8.

The _________ field provides the amount of resident memory in use.

A. mem.resident
B. memory.resident
C. mem.resident
D. all of the mentioned
Answer» D. all of the mentioned
9.

The ___________ collection stores custom roles that administrators create and assign to users to provide access to specific resources.

A. admin.system.role
B. admin.system.roles
C. admin.system.roleasign
D. all of the mentioned
Answer» C. admin.system.roleasign
10.

________ contains a counter of the total number of clients with active operations in progress or queued.

A. globalLock.active
B. localLock.activeClients
C. globalLock.activeClients
D. all of the mentioned
Answer» D. all of the mentioned