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.

The ________ field contains optional custom information about the user.

A. customDataAll
B. OptmData
C. customData
D. all of the mentioned
Answer» D. all of the mentioned
2.

Which of the following can be used to generate unique strings for use in passwords?

A. openssl
B. openssd
C. oppstringpwd
D. none of the mentioned
Answer» B. openssd
3.

You must have the _________ action on a database to modify the password of any user on that database.

A. changePassword
B. changeAnyPassword
C. removePassword
D. none of the mentioned
Answer» C. removePassword
4.

Which of the following method is used to identify the privileges granted by the roles?

A. rolesUser
B. rolesInfo
C. rolesView
D. all of the mentioned
Answer» D. all of the mentioned
5.

To view a role’s information, you must be explicitly granted the role or must have the _________ action on the role’s database.

A. viewUser
B. viewRole
C. grantRole
D. none of the mentioned
Answer» C. grantRole
6.

WHICH_OF_THE_FOLLOWING_CAN_BE_USED_TO_GENERATE_UNIQUE_STRINGS_FOR_USE_IN_PASSWORDS_??$

A. openssl
B. openssd
C. oppstringpwd
D. none of the mentioned
Answer» B. openssd
7.

The ________ field contains optional custom information about the user.$

A. customDataAll
B. OptmData
C. customData
D. all of the mentioned
Answer» D. all of the mentioned
8.

You must have the _________ action on a database to modify the password of any user on that database?

A. changePassword
B. changeAnyPassword
C. removePassword
D. none of the mentioned
Answer» C. removePassword
9.

You must have the __________ action on a database to revoke a role on that database.

A. revokePrivelege
B. revokeUser
C. revokeRole
D. all of the mentioned
Answer» D. all of the mentioned
10.

____________ removes a one or more roles from a user on the current database.

A. db.revokeRolesUser()
B. db.revokeRoles()
C. db.revokeRolesFromUser()
D. none of the mentioned
Answer» D. none of the mentioned
11.

Which of the following method is used to identify the privileges granted by the roles ?

A. rolesUser
B. rolesInfo
C. rolesView
D. all of the mentioned
Answer» D. all of the mentioned
12.

Grant the user the role using the ________ method.

A. db.grantRole()
B. db.grantRolesToUser()
C. db.grantToUser()
D. all of the mentioned
Answer» C. db.grantToUser()
13.

To view a role’s information, you must be explicitly granted the role or must have the _________ action on the role’s database.

A. viewUser
B. viewRole
C. grantRole
D. none of the mentioned
Answer» C. grantRole