Sail E0 Webinar

MCQs

Total Questions : 13 | Page 1 of 2 pages
Question 1. If you need to disable access control for any reason, restart the process with ______ setting.
  1.    KeyFile
  2.    Authentication
  3.    Authorization
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> KeyFile


Login in with the user administrator's credentials and create additional users.


Question 2. Use the ____________ option to enable auditing and specify where to output the audit events.
  1.    "“auditLocation
  2.    "“auditOutput
  3.    "“auditDestination
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> "“auditLocation


For sharded clusters, if you enable auditing on mongos instances, you must enable auditing on all mongod instances in the cluster, i.e. shards and config servers.


Question 3. _________ provides all the privileges of the read role.
  1.    delete
  2.    update
  3.    readWrite
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> readWrite


The role provides ability to modify data on all non-system collections and the system.js collection.


Question 4. User can remove any role from any user from any database in the system through _________ .
  1.    grantRole
  2.    viewRole
  3.    revokeRole
  4.    killCursors
 Discuss Question
Answer: Option C. -> revokeRole


User can view information about any role in the given database through viewRole.


Question 5. Which of the following authentication method is used by default by MongoDB ?
  1.    SCRAM-SHA-1
  2.    LDAP
  3.    MONGODB-CR
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> SCRAM-SHA-1


SCRAM-SHA-1 verifies supplied user credentials against the user's name, password and database.


Question 6. How many types of locking modes exist in MongoDB ?
  1.    1
  2.    2
  3.    3
  4.    More than 3
 Discuss Question
Answer: Option D. -> More than 3


There are four possible locking modes for the lock types.


Question 7. If a .mongorc.js file exists, the mongo shell will evaluate a __________ file before starting.
  1.    .mongorc.js
  2.    .mongo.js
  3.    .mongorc.jscript
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> .mongorc.js


You can disable this behavior by passing the mongo “norc option.


Question 8. On Linux systems, the ________ interface provides access to the underlying netfilter firewall.
  1.    ssip
  2.    iptables
  3.    dns
  4.    All of the mentioned
 Discuss Question
Answer: Option B. -> iptables


Firewalls allow administrators to filter and control access to a system by providing granular control over what network communications.


Question 9. Point out the wrong statement :
  1.    Authorization determines the verified user's access to resources and operations
  2.    MongoDB does not support authentication mechanisms
  3.    To authenticate a client in MongoDB, you must add a corresponding user to MongoDB
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> MongoDB does not support authentication mechanisms


In addition to verifying the identity of a client, MongoDB can require members of replica sets and sharded clusters to authenticate their membership.


Question 10. Which of the following code is returned by mongod if a moveChunk operation fails to confirm a commit ?
  1.    5
  2.    6
  3.    7
  4.    3
 Discuss Question
Answer: Option A. -> 5


Exit codes 6 and 7 does not exist.


Latest Videos

Latest Test Papers