MongoDB — Learn

MongoDB Mcq Question Set 19

Review each question and reveal answers to strengthen your understanding

1 Instead of Primary Key mongoDB use?
✅ Correct Answer: 2
2 How to create index in mongoDB?
✅ Correct Answer: 2
3 Which of the following iis correct syntax of createindex?
✅ Correct Answer: 1
4 To create index in descending order, the value of key is?
✅ Correct Answer: 3
5 The default value of background Parameter is :
✅ Correct Answer: 2
6 The default value of default_language Parameter is :
✅ Correct Answer: 4
7 Which method deletes multiple (specified) indexes on a collection?
✅ Correct Answer: 1
8 Which method returns the description of all the indexes int the collection?
✅ Correct Answer: 3
9 The maximum value of weights parameter is:
✅ Correct Answer: 3
10 What is the type of sparse parameter in createIndex()?
✅ Correct Answer: 1
11 What is the type of weights parameter in createIndex()?
✅ Correct Answer: 4
12 The basic syntax of Aggregation is?
✅ Correct Answer: 3
13 Which of th following expression is used to calculates the average of all given values from all documents in the collection?
✅ Correct Answer: 2
14 Which of th following expression is used to gets the maximum of the corresponding values from all documents in the collection?
✅ Correct Answer: 4
15 Which of th following expression is used to Inserts the value to an array in the resulting document?
✅ Correct Answer: 3
16 Which of th following expression is used to gets the first document from the source documents according to the grouping?
✅ Correct Answer: 2
17 Which stages in aggregation framework Used to select some specific fields from a collection?
✅ Correct Answer: 1
18 What is true about $unwind stages in aggregation framework ?
✅ Correct Answer: 4
19 What is true about $group stages in aggregation framework ?
✅ Correct Answer: 2
20 What is true about $skip stages in aggregation framework ?
✅ Correct Answer: 3
21 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
22 What is true about Replication?
✅ Correct Answer: 4
23 Replication is not used for?
✅ Correct Answer: 2
24 Replica set is transparent to the application.
✅ Correct Answer: 1
25 A replica set is a group of ___________ instances that host the same data set.
✅ Correct Answer: 3
26 In a replica, one node is primary node that receives?
✅ Correct Answer: 2
27 Which of the following is not a Replica Set Features?
✅ Correct Answer: 4
28 In MongoDB client, how to initiate a new replica set?
✅ Correct Answer: 1
29 To check the replica set configuration, issue the command rs.conf().
✅ Correct Answer: 1
30 Which of the following is correct syntax to Add Members to Replica Set?
✅ Correct Answer: 2
31 To check whether you are connected to primary or not, issue the command db.Master() in mongo client.
✅ Correct Answer: 2
32 ______ 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
33 Single replica set has limitation of?
✅ Correct Answer: 2
34 Which of the following is true about why to use Sharding?
✅ Correct Answer: 4
35 In production enviroment , how many sharded clusters have?
✅ Correct Answer: 2
36 What is true about Query Routers?
✅ Correct Answer: 4
37 Point out the correct statement
✅ Correct Answer: 1
38 _______ scaling adds more CPU and storage resources to increase capacity.
✅ Correct Answer: 2
39 Each shard stores ________ data as the cluster grows.
✅ Correct Answer: 1
40 Which command returns a document that provides an overview of the database process's state?
✅ Correct Answer: 1
41 Which of the following setting defines what constitutes a "slow" operation?
✅ Correct Answer: 3
42 _____ returns the queryPlanner information for the evaluated method.
✅ Correct Answer: 2
43 Point out the correct statement.
✅ Correct Answer: 3
44 With which storage engine, MongoDB uses memory-mapped files to store data?
✅ Correct Answer: 2
45 _____ returns the queryPlanner and executionStats information for the evaluated method.
✅ Correct Answer: 1
46 If MongoDB can use an index scan to obtain the requested sort order, the result will not include a SORT stage
✅ Correct Answer: 2
47 In MongoDB, At which level write operations are atomic?
✅ Correct Answer: 2
48 The limit on the number of namespaces depend on the ?
✅ Correct Answer: 1
49 The namespace file defaults to ?
✅ Correct Answer: 3
50 _____index allows efficient retrieval of chunks using the files_id and n values.
✅ Correct Answer: 4
Back to All Quizzes