JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 50
MongoDB interview questions part 50
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Grant the user the role using the ________ method.
A. db.grantRole()
B. db.grantRolesToUser()
C. db.grantToUser()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
db.grantRolesToUser()
2. 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
Show Correct Answer
Correct Answer is :
rolesView
3. Point out the wrong statement :
A. You must have the createUser action on a database to create a new user on that database
B. You must have the grantRole action on a role’s database to grant the role to another user
C. If your MongoDB deployment has no users, you must connect to mongod using the localhost exception
D. None of the mentioned
Show Correct Answer
Correct Answer is :
You must have the createUser action on a database to create a new user on that database
4. ____________ 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
Show Correct Answer
Correct Answer is :
db.revokeRolesFromUser()
5. 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
Show Correct Answer
Correct Answer is :
revokeRole
6. 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
Show Correct Answer
Correct Answer is :
changeAnyPassword
7. 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
Show Correct Answer
Correct Answer is :
openssl
8. The ________ field contains optional custom information about the user.
A. customDataAll
B. OptmData
C. customData
D. all of the mentioned
Show Correct Answer
Correct Answer is :
customData
9. Indexes are typically available in ______ or located sequentially on disk.
A. RAM
B. ROM
C. CMOS
D. None of the mentioned
Show Correct Answer
Correct Answer is :
RAM
10. Point out the wrong statement :
A. Query selectivity refers to how well the query predicate excludes or filters out documents in a collection
B. Query selectivity can determine whether or not queries can use indexes effectively or even use indexes at all
C. More selective queries match a larger percentage of documents
D. All of the mentioned
Show Correct Answer
Correct Answer is :
More selective queries match a larger percentage of documents
11. ___________ is used to determine whether a query is a covered query.
A. explainstats()
B. explain()
C. explainall()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
explain()
12. The ________ message is used to update a document in a collection.
A. UPDATE
B. OP_UPDATE
C. OP_UPDATES
D. All of the mentioned
Show Correct Answer
Correct Answer is :
OP_UPDATE
13. Point out the correct statement :
A. An equality match on the unique _id field is less selective as it can match at most one document
B. The selectivity of regular expressions depends on the expressions themselves
C. Less selective queries can use indexes effectively or even at all
D. All of the mentioned
Show Correct Answer
Correct Answer is :
The selectivity of regular expressions depends on the expressions themselves
14. _____ can modify specific fields of an existing document or documents or replace an existing document entirely, depending on the update parameter.
A. modify()
B. update()
C. find()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
update()
15. The update() method uses the _______ command, which uses the default write concern.
A. find
B. read
C. update
D. modify
Show Correct Answer
Correct Answer is :
update
16. _________ is used to view statistics about the query plan for a given query.
A. db.explain()
B. cursor.explain()
C. cursor.explainstats()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
cursor.explain()
17. An ________ query plan has returned a threshold number of matching results
A. execution
B. unordered
C. ordered
D. none of the mentioned
Show Correct Answer
Correct Answer is :
ordered
18. A query _______ consists of a combination of query, sort, and projection specifications.
A. plan
B. shape
C. stats
D. all of the mentioned
Show Correct Answer
Correct Answer is :
shape
19. ___________ concern describes the guarantee that MongoDB provides when reporting on the success of a write operation.
A. Write
B. Read
C. Update
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Write
20. Point out the correct statement :
A. Read operations on sharded clusters are most efficient when directed to a specific shard
B. Sharded clusters allow you to partition a data set among a cluster of mongod instances in a way that is nearly transparent to the application
C. For a sharded cluster, applications issue operations to one of the mongos instances associated with the cluster
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
Similar Interview Questions
Search for latest jobs
Find Jobs