MongoDB interview questions part 9

MongoDB interview questions part 9

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.

Correct Answer is : changelog

2. Point out the correct statement:

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.

Correct Answer is : collections

4. You can return a list of the collections, with the following helper:

Correct Answer is : show collections

5. Point out the wrong statement :

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.

Correct Answer is : config.changelog.clientAddr

7. The _______ collection keeps track of the active components in the sharded cluster.

Correct Answer is : lockpings

8. If the collection is empty then MongoDB will create the index as part of the ________

Correct Answer is : shardCollection()

9. Changing the _______ option will change the port that mongod listens for incoming connections on.

Correct Answer is : –shardsrv

10. The _____________ collection holds documents for each tagged shard key range in the cluster.

Correct Answer is : tags

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

Correct Answer is : roles

12. Point out the correct statement :

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.

Correct Answer is : grantRole

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

Correct Answer is : revokeRole

15. Point out the wrong statement :

Correct Answer is : None of the mentioned

16. _________ terminates an operation as specified by the operation ID.

Correct Answer is : db.killOp()

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

Correct Answer is : viewUser

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

Correct Answer is : cleanupOrphaned

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

Correct Answer is : invalidateUserCache

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

Correct Answer is : displayCacheListPlans

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon