MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 9

Choose a topic to test your knowledge and improve your MongoDB skills

Point out the wrong statement.





✅ Correct Answer: 2

_____ is a challenge-response mechanism that authenticates users through passwords.





✅ Correct Answer: 3

MongoDB supports _________ certificate authentication for use with a secure TLS/SSL connection.





✅ Correct Answer: 2

MongoDB __________ supports authentication using a Kerberos service.





✅ Correct Answer: 3

MongoDB Enterprise supports proxy authentication through _____





✅ Correct Answer: 2

Every MongoDB mongod and mongos instance (or mongod.exe or mongos.exe on Windows) must have an associated ______





✅ Correct Answer: 3

MongoDB employs _________ to govern access to a MongoDB system.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 2

______ consists of a specified resource and the actions permitted on the resource.





✅ Correct Answer: 1

______ provides all the privileges of the read role.





✅ Correct Answer: 3

Point out the wrong statement.





✅ Correct Answer: 3

MongoDB stores user credentials in the protected admin.system._____





✅ Correct Answer: 4

You must have the _______ action on a database to create a new user on that database.





✅ Correct Answer: 1

Data of <database>.system.indexes can be accessed using _____





✅ Correct Answer: 2

You must have the __________ action on a role’s database to grant the role to another user.





✅ Correct Answer: 1

Command listIndexes.ok returning value 1 indicates ______





✅ Correct Answer: 2

Administrators can implement collection-level access control through user-defined _____





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 2

User can grant any role in the database to any user from any database in the system through _________ action.





✅ Correct Answer: 1

User can remove any role from any user from any database in the system through _____





✅ Correct Answer: 4

Point out the wrong statement.





✅ Correct Answer: 4

____ terminates an operation as specified by the operation ID.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2

______ displays the cached query plans for the specified query shape.





✅ Correct Answer: 2

The enabled setting for mongod and mongos instances disables the ______ status page.





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 3

The net.http.RESTInterfaceEnabled setting for mongod enables a fully interactive administrative __________ interface, which is disabled by default.





✅ Correct Answer: 2

The ________ setting for mongod and mongos instances limits the network interfaces on which MongoDB programs will listen for incoming connections.





✅ Correct Answer: 3

Point out the wrong statement.





✅ Correct Answer: 4

The ________ setting for mongod and mongos instances changes the main port on which the mongod or mongos instance listens for connections.





✅ Correct Answer: 2

On Linux systems, the ________ interface provides access to the underlying netfilter firewall.





✅ Correct Answer: 2

On Windows systems _________ command line interface provides access to the underlying Windows Firewall.





✅ Correct Answer: 1

MongoDB users who use VPNs use ________ rather than IPSEC VPNs for performance issues.





✅ Correct Answer: 2

By default, the policy in ___________ Firewall allows all outbound connections and blocks all incoming connections.





✅ Correct Answer: 1

The mongo program can evaluate JavaScript expressions using the command line ________ option.





✅ Correct Answer: 3

Point out the correct statement.





✅ Correct Answer: 2

If a .mongorc.js file exists, the mongo shell will evaluate a __________ file before starting.





✅ Correct Answer: 1

On _________ mongo.exe reads the .mongorc.js file from %HOME%.mongorc.js.





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 2

The HTTP interface is always available on the port numbered _________ greater than the primary mongod port.





✅ Correct Answer: 1

The _______ API to MongoDB provides additional information and write access on top of the HTTP status interface.





✅ Correct Answer: 2

_____ instances provide query routing for sharded clusters.





✅ Correct Answer: 2

Config servers, host the _______ database that stores metadata for sharded clusters.





✅ Correct Answer: 3

Config servers listen for connections on port _____





✅ Correct Answer: 2

The auditing facility can write audit events to the console, the _________ a JSON file, or a BSON file.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 4

_____ contains the local ip address and the port number of the running instance.





✅ Correct Answer: 2

Enabling _____________ degrades performance more than logging only the authorization failures.





✅ Correct Answer: 2

Use the ______ option to enable auditing and specify where to output the audit events.





✅ Correct Answer: 3

The audit file rotates at the same time as the ________ log file.





✅ Correct Answer: 2

To view the contents of the file, pass the file to the MongoDB utility _____





✅ Correct Answer: 3

The _____________ option accepts either full path name or relative path name.





✅ Correct Answer: 3

The _________ message limit can result in the truncation of the audit messages.





✅ Correct Answer: 2