JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 9
MongoDB interview questions part 9
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. The ________ collection stores a document for each change to the metadata of a sharded collection.
A. version
B. changelog
C. settings
D. all of the mentioned
Show Correct Answer
Correct Answer is :
changelog
2. Point out the correct statement:
A. The local database supports sharded cluster operation
B. The config database is a dependable API, and users should not write data to the config database in the course of normal operation or maintenance
C. Modification of the config database on a functioning system may lead to instability or inconsistent data sets
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Modification of the config database on a functioning system may lead to instability or inconsistent data sets
3. The _________ collection stores a document for each sharded collection in the cluster.
A. help
B. shards
C. collections
D. all of the mentioned
Show Correct Answer
Correct Answer is :
collections
4. You can return a list of the collections, with the following helper:
A. show collects
B. show collection
C. show collections
D. all of the mentioned
Show Correct Answer
Correct Answer is :
show collections
5. Point out the wrong statement :
A. Database servers store the metadata for a sharded cluster
B. Always back up the config database before doing any maintenance on the config server
C. The mongos instances cache metadata and use it to route read and write operations to shards
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Database servers store the metadata for a sharded cluster
6. ________ is a string that holds the address of the client, a mongos instance that initiates this change.
A. config.changelog.serverAddr
B. config.changelog.clientAddr
C. config.changelog.time
D. all of the mentioned
Show Correct Answer
Correct Answer is :
config.changelog.clientAddr
7. The _______ collection keeps track of the active components in the sharded cluster.
A. deploys
B. lockpings
C. locks
D. all of the mentioned
Show Correct Answer
Correct Answer is :
lockpings
8. If the collection is empty then MongoDB will create the index as part of the ________
A. shardCollectionkey()
B. shardCollection()
C. keyCollection()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
shardCollection()
9. Changing the _______ option will change the port that mongod listens for incoming connections on.
A. –shardsrvkey
B. –shardsrv
C. –shard
D. All of the mentioned
Show Correct Answer
Correct Answer is :
–shardsrv
10. The _____________ collection holds documents for each tagged shard key range in the cluster.
A. tags
B. databases
C. version
D. none of the mentioned
Show Correct Answer
Correct Answer is :
tags
11. Administrators can implement collection-level access control through user-defined :
A. roles
B. replica sets
C. shards
D. none of the mentioned
Show Correct Answer
Correct Answer is :
roles
12. Point out the correct statement :
A. A rule consists of actions and the resources upon which the actions are permissible
B. Document-level access control allows developers to grant users privileges that are scoped to specific record
C. Each privilege action in a role can be scoped to a different record
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Document-level access control allows developers to grant users privileges that are scoped to specific record
13. 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
Show Correct Answer
Correct Answer is :
grantRole
14. User can remove any role from any user from any database in the system through _________ .
A. grantRole
B. viewRole
C. killCursors
D. revokeRole
Show Correct Answer
Correct Answer is :
revokeRole
15. Point out the wrong statement :
A. MongoDB uses the combination of the database name and the role name to uniquely define a role
B. A role consists of privileges that pair resources with not allowed operations
C. Roles grant users access to MongoDB resources
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
16. _________ terminates an operation as specified by the operation ID.
A. db.killOp()
B. db.kill()
C. db.remove()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
db.killOp()
17. Which of the following allows user to view the information of any user in the given database?
A. createUser
B. viewUser
C. killCursors
D. all of the mentioned
Show Correct Answer
Correct Answer is :
viewUser
18. _________ 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
Show Correct Answer
Correct Answer is :
cleanupOrphaned
19. Which of the following flushes user information from in-memory cache ?
A. grantCache
B. invalidateUserCache
C. validateUserCache
D. none of the mentioned
Show Correct Answer
Correct Answer is :
invalidateUserCache
20. __________ displays the cached query plans for the specified query shape.
A. CacheListPlans
B. displayCacheListPlans
C. planCacheListPlans
D. none of the mentioned
Show Correct Answer
Correct Answer is :
displayCacheListPlans
Similar Interview Questions
Search for latest jobs
Find Jobs