MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 19

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

Instead of Primary Key mongoDB use?





✅ Correct Answer: 2

How to create index in mongoDB?





✅ Correct Answer: 2

Which of the following iis correct syntax of createindex?





✅ Correct Answer: 1

To create index in descending order, the value of key is?





✅ Correct Answer: 3

The default value of background Parameter is :





✅ Correct Answer: 2

The default value of default_language Parameter is :





✅ Correct Answer: 4

Which method deletes multiple (specified) indexes on a collection?





✅ Correct Answer: 1

Which method returns the description of all the indexes int the collection?





✅ Correct Answer: 3

The maximum value of weights parameter is:





✅ Correct Answer: 3

What is the type of sparse parameter in createIndex()?





✅ Correct Answer: 1

What is the type of weights parameter in createIndex()?





✅ Correct Answer: 4

The basic syntax of Aggregation is?





✅ Correct Answer: 3

Which of th following expression is used to calculates the average of all given values from all documents in the collection?





✅ Correct Answer: 2

Which of th following expression is used to gets the maximum of the corresponding values from all documents in the collection?





✅ Correct Answer: 4

Which of th following expression is used to Inserts the value to an array in the resulting document?





✅ Correct Answer: 3

Which of th following expression is used to gets the first document from the source documents according to the grouping?





✅ Correct Answer: 2

Which stages in aggregation framework Used to select some specific fields from a collection?





✅ Correct Answer: 1

What is true about $unwind stages in aggregation framework ?





✅ Correct Answer: 4

What is true about $group stages in aggregation framework ?





✅ Correct Answer: 2

What is true about $skip stages in aggregation framework ?





✅ Correct Answer: 3

Which stages in aggregation framework is a filtering operation and thus this can reduce the amount of documents that are given as input to the next stage?





✅ Correct Answer: 2

What is true about Replication?





✅ Correct Answer: 4

Replication is not used for?





✅ Correct Answer: 2

Replica set is transparent to the application.





✅ Correct Answer: 1

A replica set is a group of ___________ instances that host the same data set.





✅ Correct Answer: 3

In a replica, one node is primary node that receives?





✅ Correct Answer: 2

Which of the following is not a Replica Set Features?





✅ Correct Answer: 4

In MongoDB client, how to initiate a new replica set?





✅ Correct Answer: 1

To check the replica set configuration, issue the command rs.conf().





✅ Correct Answer: 1

Which of the following is correct syntax to Add Members to Replica Set?





✅ Correct Answer: 2

To check whether you are connected to primary or not, issue the command db.Master() in mongo client.





✅ Correct Answer: 2

______ is the process of storing data records across multiple machines and it is MongoDB's approach to meeting the demands of data growth





✅ Correct Answer: 1

Single replica set has limitation of?





✅ Correct Answer: 2

Which of the following is true about why to use Sharding?





✅ Correct Answer: 4

In production enviroment , how many sharded clusters have?





✅ Correct Answer: 2

What is true about Query Routers?





✅ Correct Answer: 4

Point out the correct statement





✅ Correct Answer: 1

_______ scaling adds more CPU and storage resources to increase capacity.





✅ Correct Answer: 2

Each shard stores ________ data as the cluster grows.





✅ Correct Answer: 1

Which command returns a document that provides an overview of the database process's state?





✅ Correct Answer: 1

Which of the following setting defines what constitutes a "slow" operation?





✅ Correct Answer: 3

_____ returns the queryPlanner information for the evaluated method.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 3

With which storage engine, MongoDB uses memory-mapped files to store data?





✅ Correct Answer: 2

_____ returns the queryPlanner and executionStats information for the evaluated method.





✅ Correct Answer: 1

If MongoDB can use an index scan to obtain the requested sort order, the result will not include a SORT stage





✅ Correct Answer: 2

In MongoDB, At which level write operations are atomic?





✅ Correct Answer: 2

The limit on the number of namespaces depend on the ?





✅ Correct Answer: 1

The namespace file defaults to ?





✅ Correct Answer: 3

_____index allows efficient retrieval of chunks using the files_id and n values.





✅ Correct Answer: 4