| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

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.

Correct Answer is : db.grantRolesToUser()

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

Correct Answer is : rolesView

3. Point out the wrong statement :

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.

Correct Answer is : db.revokeRolesFromUser()

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

Correct Answer is : revokeRole

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

Correct Answer is : changeAnyPassword

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

Correct Answer is : openssl

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

Correct Answer is : customData

9. Indexes are typically available in ______ or located sequentially on disk.

Correct Answer is : RAM

10. Point out the wrong statement :

Correct Answer is : More selective queries match a larger percentage of documents

11. ___________ is used to determine whether a query is a covered query.

Correct Answer is : explain()

12. The ________ message is used to update a document in a collection.

Correct Answer is : OP_UPDATE

13. Point out the correct statement :

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.

Correct Answer is : update()

15. The update() method uses the _______ command, which uses the default write concern.

Correct Answer is : update

16. _________ is used to view statistics about the query plan for a given query.

Correct Answer is : cursor.explain()

17. An ________ query plan has returned a threshold number of matching results

Correct Answer is : ordered

18. A query _______ consists of a combination of query, sort, and projection specifications.

Correct Answer is : shape

19. ___________ concern describes the guarantee that MongoDB provides when reporting on the success of a write operation.

Correct Answer is : Write

20. Point out the correct statement :

Correct Answer is : All of the mentioned