Home
MCQS
MongoDB MCQ Quiz Hub
MongoDB Mcq Question Set 10
Choose a topic to test your knowledge and improve your MongoDB skills
1. For each _______ the Kerberos Key Distribution Center (KDC) maintains a database of the realm’s principal and the principal’s associated “secret keys”.
key
realm
document
None of the mentioned
2. Point out the correct statement.
MongoDB Enterprise provides support for Kerberos authentication of MongoDB clients to mongod and mongos
beros is an industry standard authentication protocol for large client/server systems
Kerberos allows MongoDB and applications to take advantage of existing authentication infrastructure and processes
All of the mentioned
3. For a client-server authentication, the client requests from the KDC a ________ for access to a specific asset.
ticket
local
token
users
4. To authenticate using Kerberos, you must add the Kerberos user principals to MongoDB to the _________ database.
$internal
$external
$extern
None of the mentioned
5. To specify a different value for <service>, use ________ during the start up of mongod.
servicepwd
serviceName
servicelogin
None of the mentioned
6. Linux systems can store Kerberos authentication keys for a service principal in ______ files.
Client
Server
keytab
All of the mentioned
7. On Linux, MongoDB clients can use Kerberos’s _______ program to initialize a credential cache for authenticating the user principal to servers.
knight
kinit
Knite
None of the mentioned
8. The MongoDB _________ Console interface does not support Kerberos authentication.
TCP
TCP
HTTPS
None of the mentioned
9. Use __________ to encrypt communication between mongod and mongos components of a MongoDB client as well as between all applications and MongoDB.
SSD
TLS
MEAN
None of the mentioned
10. With ___________ enabled, MongoDB forces all clients to identify themselves before granting access to the server.
access
authentication
authorization
All of the Mentioned
11. _______ allows administrators to define and limit the resources and operations that a user can access.
Access
Authentication
Authorization
All of the Mentioned
12. Point out the wrong statement.
User principal names have the form: &lt;userpwd&gt;@&lt;KERBEROS PRINCIPAL&gt;
For MongoDB, the &lt;service&gt; defaults to mongodb
Every MongoDB mongod and mongos instance must have an associated service principal
All of the mentioned
13. Use the __________ option to ensure that MongoDB listens for connections from applications on configured addresses.
bind_ipadd
bind_ip
bind_service
None of the mentioned
14. To generate pseudo-random data to use for a keyfile, issue the following __________ command.
openhss
openssd
openssl
All of the Mentioned
15. _______ is used to initiate relica member set.
rs.rep()
rs.init()
rs.initiate()
None of the mentioned
16. Which of the following is used to display the replica set configuration object?
rs.config
rs.conf
rs.confrepl
None of the mentioned
17. MongoDB supports the execution of JavaScript code for certain server-side operations like ______
where
group
mapreduce
All of the Mentioned
18. If you create the user administrator before enabling access control, MongoDB disables the ________ exception.
localhost
server
runtime
None of the mentioned
19. Point out the correct statement.
After you create the user administrator, the localhost exception is no longer available
Enabling access control on a MongoDB instance restricts access to the instance by requiring that users identify themselves when connecting
The mongo shell executes a number of commands at start up
All of the Mentioned
20. If you use the localhost exception when deploying a new MongoDB system, the first user you create must be in the _____ database.
head
local
admin
All of the Mentioned
21. If you need to disable access control for any reason, restart the process with ______ setting.
KeyFile
Authentication
Authorization
All of the Mentioned
22. Point out the wrong statement.
Authentication does not require an authentication mechanism
To enable authentication on a sharded cluster, you must enable authentication individually on each component of the cluster
The content of the key file must be the same on all cluster members
All of the mentioned
23. The ________ client authentication allows clients to authenticate to servers with certificates rather than with a username and password.
x.209
x.509
x.709
None of the mentioned
24. enableLocalhostAuthBypass is not available using _________ database command.
setParameter
enableParameter
removeParameter
None of the mentioned
25. ________ enables a set of internal commands useful for internal testing operations.
enableTestAll
enableTest
enableTestCommands
All of the Mentioned
26. To view a role’s information, you must be explicitly granted the role or must have the _________ action on the role’s database.
viewUser
viewRole
grantRole
None of the mentioned
27. Point out the correct statement.
To provide user administrators, MongoDB has userAdmin and userAdminAnyDatabase roles
A user administrator can grant any privilege in the database and can create new ones
Specifically, a user with the userAdmin role can grant itself any privilege in the database
All of the mentioned
28. Grant the user the role using the ________ method.
db.grantRole()
db.grantRolesToUser()
db.grantToUser()
All of the Mentioned
29. Which of the following method is used to identify the privileges granted by the roles?
rolesUser
rolesInfo
rolesView
All of the Mentioned
30. Point out the wrong statement.
You must have the createUser action on a database to create a new user on that database
You must have the grantRole action on a role’s database to grant the role to another user
If your MongoDB deployment has no users, you must connect to mongod using the localhost exception
None of the mentioned
31. _______ removes a one or more roles from a user on the current database.
db.revokeRolesUser()
db.revokeRoles()
db.revokeRolesFromUser()
None of the mentioned
32. You must have the __________ action on a database to revoke a role on that database.
revokePrivelege
revokeUser
revokeRole
All of the mentioned
33. You must have the _________ action on a database to modify the password of any user on that database
changePassword
changeAnyPassword
removePassword
None of the mentioned
34. Which of the following can be used to generate unique strings for use in passwords?
openssl
openssd
oppstringpwd
none of the mentioned
35. The ________ field contains optional custom information about the user.
customDataAll
OptmData
customData
All of the mentioned
36. ______ are operations that process data records and return computed results.
ReplicaAgg
SumCalculation
Aggregations
None of the mentioned
37. Point out the wrong statement.
Map-reduce cannot have a finalize stage to make final modifications to the result
Map-reduce is less efficient and more complex than the aggregation pipeline
Specifically, a user with the userAdmin role can grant itself any privilege in the database
All of the Mentioned
38. Running data aggregation on the ________ instance simplifies application code and limits resource requirements.
document
mongod
mongos
All of the Mentioned
39. Documents enter a multi-stage __________ that transforms the documents into an aggregated result.
pipeline
pipelineView
pipelineUser
All of the Mentioned
40. Point out the wrong statement.
MongoDB also provides map-reduce operations to perform aggregation
The pipeline provides efficient data aggregation using native operations within MongoDB
Map-reduce can specify a query condition to select the input documents as well as sort and limit the results
none of the mentioned
41. The most basic pipeline stages provide __________ that operate like queries.
methods
filters
stored procedure
none of the mentioned
42. Pipeline stages can use __________ for tasks such as calculating the average or concatenating a string.
replicas
operators
roles
All of the mentioned
43. Map-reduce uses custom __________ functions to perform the map and reduce operations.
Java
Javascript
JSON
None of the mentioned
44. Which of the following operation can be optionally used for map reduce?
finally
final
static
none of the mentioned
45. The aggregation pipeline can use ___________ to improve its performance during some of its stages.
indexes
OptmData
functions
All of the mentioned
46. Aggregation pipeline was introduced in MongoDB version ______
2.1
2.2
2.4
3.0
47. Point out the wrong statement.
Aggregation pipeline have some limitations on value types and result size
The aggregation pipeline is a framework for data aggregation modeled on the concept of data processing pipelines
Documents enter a multi-stage pipeline that transforms the documents into an aggregated results
All of the Mentioned
48. _____ calculates aggregate values for the data in a collection.
db.collection.aggregate
db.collection.agg
db.collection.pipeline
All of the Mentioned
49. Cursors returned from aggregation only supports cursor methods like ______
cursor.hasNext()
cursor.Next()
cursor.has()
All of the mentioned
50. Point out the wrong statement.
Some pipeline stages may generate new documents or filter out documents
Pipeline stages do need to produce one output document for every input document
Pipeline stages can appear multiple times in the pipeline
none of the mentioned
Submit