8. Which of the following are valid resource documents?
Check all that apply:
{ db: 'amazon', collection: 'users' } { collection: 'orders' } { cluster: true } { db: 'twitter' }
Answer
The following are valid resource documents:
{ db: 'amazon', collection: 'users' } { cluster: true }
The following are not valid resource documents:
{ collection: 'orders' }
Both the db and collection field are required on this type of resource document. You can visit to know next level imporatance of Document in MongoDB
{ db: 'twitter' }
Both the db and collection field are required on this type of resource document.
9. The read role gives a user access to which of the following actions?
Check all that apply:
a. acollStats
b.find
c. showCursors
d. killCursors
Answer
The following actions are apart of the read role:
collStats
find
killCursors
showCursors isn’t an action in MongoDB.
10. Which of the following are valid built-in roles?
Check all that apply:
a. readWriteAllDatabases
b. adminUserAnyDatabase
c. root
d. restore
Answer
The following are valid built-in roles in MongoDB:
adminUserAnyDatabase
root
restore
The readWriteAllDatabases
role doesn’t exist inside MongoDB.