MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 8

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

MongoDB’s _______ is a database profiling system that can help identify inefficient queries and operations.





✅ Correct Answer: 3

With the _______ storage engine, MongoDB uses memory-mapped files to store data.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 2

The memory usage statuses metrics of the _________ output can provide insight into MongoDB’s memory use.





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 1

You can inspect __________ to check the amount of mapped memory that mongod is using.





✅ Correct Answer: 1

MongoDB reports its triggered page faults as the total number of page faults in ________ second.





✅ Correct Answer: 1

Which of the operator is used to access the query field of documents within system.profile?





✅ Correct Answer: 3

____ returns information on the query plan for aggregate function.





✅ Correct Answer: 2

By default, db.collection.explain() runs in ___________ verbosity mode.





✅ Correct Answer: 2

____ does not provide query execution information for the rejected plans.





✅ Correct Answer: 3

Which of the following provides information on the MongoDB instance?





✅ Correct Answer: 1

_____ corresponds to the millis field returned by cursor.explain() in earlier versions of MongoDB.





✅ Correct Answer: 2

For sharded collections, explain returns the __________ for each accessed shard.





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 1

If the query planner selects a collection scan, the explain result includes a _________ stage.





✅ Correct Answer: 1

Which of the following parameter specifies the verbosity mode for the explain output?





✅ Correct Answer: 2

In _____________ mode, MongoDB returns statistics describing the execution of the winning plan as well as statistics for the other candidate plans captured during plan selection.





✅ Correct Answer: 2

If the query planner selects a _________ the explain result includes an IXSCAN stage.





✅ Correct Answer: 1

MongoDB stores additional instance-local metadata in the _______ database.





✅ Correct Answer: 3

Point out the correct statement.





✅ Correct Answer: 2

In replica sets, each ________ maintains a connection to all other members of the set.





✅ Correct Answer: 2

The ___________ collection stores the user’s authentication credentials as well as any roles assigned to the user.





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 2

The <database>.system.indexes collection lists all the _________ in the database.





✅ Correct Answer: 2

Which of the following The collection holds special JavaScript code for use in server side JavaScript?





✅ Correct Answer: 3

Which of the following can store JavaScript functions for reuse?





✅ Correct Answer: 2

___ is used to load all the scripts saved in the system.js collection for the current database.





✅ Correct Answer: 1

Which of the following information is captured by database profiler?





✅ Correct Answer: 4

Point out the correct statement.





✅ Correct Answer: 4

Which of the following collection is capped?





✅ Correct Answer: 3

The ___________ provides information for various lock types and lock modes held during the operation.





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 4

Which of the following keyword represents lock on the collection?





✅ Correct Answer: 2

How many types of locking modes exist in MongoDB?





✅ Correct Answer: 4

Which of the following represents number of times the operation acquired the lock in the specified mode?





✅ Correct Answer: 1

____ can be used to limit the size of the result document for a query operation.





✅ Correct Answer: 1

Which of the following code is used for the successful exit of task?





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 1

Instance exits cleanly are represented by ___ exit code.





✅ Correct Answer: 1

Which of the following code is returned by mongod if a moveChunk operation fails to confirm a commit?





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 2

Which of the following code represents exit cleanly following a large clock skew (32768 milliseconds) event?





✅ Correct Answer: 3

49 code is returned by mongod from _________ Service control Manager.





✅ Correct Answer: 1

Which of the following code is returned when a MongoDB application cannot open a file?





✅ Correct Answer: 1

Identify the message returned by MongoDB applications for Windows due to failures installing?





✅ Correct Answer: 2

Which of the following document represents uncaught exception?





✅ Correct Answer: 4

Which of the following method is used for managing user?





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 4

MongoDB stores user information in the _________ collection.





✅ Correct Answer: 2