Explore topic-wise MCQs in Mongodb.

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

1.

__________ displays the cached query plans for the specified query shape.

A. CacheListPlans
B. displayCacheListPlans
C. planCacheListPlans
D. none of the mentioned
Answer» C. planCacheListPlans
2.

Which of the following flushes user information from in-memory cache?

A. grantCache
B. invalidateUserCache
C. validateUserCache
D. none of the mentioned
Answer» C. validateUserCache
3.

_________ deletes from a shard the orphaned documents whose shard key values fall into a single continuous range.

A. listallshards
B. cleanup
C. cleanupOrphaned
D. SelectIndexes
Answer» D. SelectIndexes
4.

Which of the following allows the user to view the information of any user in the given database?

A. createUser
B. viewUser
C. killCursors
D. all of the mentioned
Answer» C. killCursors
5.

User can remove any role from any user from any database in the system through _________

A. grantRole
B. viewRole
C. killCursors
D. revokeRole
Answer» E.
6.

Administrators can implement collection-level access control through user-defined __________

A. roles
B. replica sets
C. shards
D. none of the mentioned
Answer» B. replica sets
7.

WHICH_OF_THE_FOLLOWING_FLUSHES_USER_INFORMATION_FROM_IN-MEMORY_CACHE_??$

A. grantCache
B. invalidateUserCache
C. validateUserCache
D. none of the mentioned
Answer» C. validateUserCache
8.

___________displays_the_cached_query_plans_for_the_specified_query_shape.$

A. CacheListPlans
B. displayCacheListPlans
C. planCacheListPlans
D. none of the mentioned
Answer» C. planCacheListPlans
9.

_________ deletes from a shard the orphaned documents whose shard key values fall into a single continuous range?

A. listallshards
B. cleanup
C. cleanupOrphaned
D. SelectIndexes
Answer» D. SelectIndexes
10.

_________ terminates an operation as specified by the operation ID.

A. db.killOp()
B. db.kill()
C. db.remove()
D. none of the mentioned
Answer» B. db.kill()
11.

User can remove any role from any user from any database in the system through _________ .

A. grantRole
B. viewRole
C. killCursors
D. revokeRole
Answer» E.
12.

User can grant any role in the database to any user from any database in the system through _________ action.

A. grantRole
B. viewRole
C. killCursors
D. unlock
Answer» B. viewRole
13.

Administrators can implement collection-level access control through user-defined :

A. roles
B. replica sets
C. shards
D. none of the mentioned
Answer» B. replica sets