Question 16
Selectable Answer
Select all true statements about the differences between mongoexport and mongodump.
Show Answer
Answer: Explanation:
https://docs.mongodb.com/database-tools/mongoexport/ https://docs.mongodb.com/database-tools/mongodump/
Question 17
Selectable Answer
Select all true statements about the update operation. (select 2)
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/reference/method/db.collection.updateOne/
Question 18
Selectable Answer
Suppose you have a developers collection with the following document structure:
{
_id: 1,
fname: 'Bob',
lname: 'Smith',
tech_stack: [ 'git', 'c++', 'sqlite', 'linux' ]
}
Select a query that can be executed without errors.
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/reference/method/db.collection.updateOne/
Question 19
Selectable Answer
How to display MongoDB configuration file from command line?
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/reference/configuration-options/#use-the-configuration-file
Question 20
Selectable Answer
You have the following replica set configuration:
conf = {
"_id": "replset",
"version": 1,
"protocolVersion": 1,
"members": [
{
"_id": 0,
"host": "192.168.120.24:27017",
"priority": 2,
"votes": 1
},
{
"_id": 1,
"host": "192.168.120.24:27018",
"priority": 1,
"votes": 1
},
{
"_id": 1,
"host": "192.168.120.24:27019",
"priority": 1,
"votes": 1
}
]
}
Select all true statements about this configuration.
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/replication/#replication
Question 21
Selectable Answer
How to create a new user with the root role named root_user with password root123?
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/reference/method/db.createUser/
Question 22
Selectable Answer
Given the following example document from an artists collection:
{
_id: 5,
last_name: 'Maurer',
first_name: 'Alfred',
year_born: 1868,
year_died: 1932,
nationality: 'USA'
}
and the following index:
db.artists.createIndex( { "last_name": 1, "nationality": 1 } )
How MongoDB will handle the query below?
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/indexes/
Question 23
Selectable Answer
Which of the following scenarios best suits the use of the Tree Pattern?
Show Answer
Answer: Explanation:
https://www.mongodb.com/blog/post/building-with-patterns-the-tree-pattern
Question 24
Selectable Answer
Which of the following commands can you use to exports data in BSON format from a MongoDB cluster?
Show Answer
Answer: Explanation:
https://docs.mongodb.com/database-tools/mongodump/
Question 25
Selectable Answer
What is the best practice in using the $match operator?
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/reference/operator/aggregation/match/
Question 26
Selectable Answer
Select all true statements regarding to Aggregation Framework.
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/aggregation/
Question 27
Selectable Answer
Select all true statements about indexes on a field with values of varying data types.
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/indexes/
Question 28
Selectable Answer
Select all true statements regarding to $out stage.
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/reference/operator/aggregation/out/
Question 29
Selectable Answer
Which of the following actions are granted to the built-in read role?
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/reference/built-in-roles/#mongodb-authrole-read
Question 30
Selectable Answer
Why is high cardinality important when choosing a shard key?
Show Answer
Answer: Explanation:
https://docs.mongodb.com/manual/core/sharding-shard-key/