aInfoEra
Home
MCQs
MongoDB — Quiz
MongoDB Mcq Question Set 18
50 questions · Test your knowledge
Home
/
MCQs
/
MongoDB Mcq Question Set 18
1
The _______ collection holds documents for each tagged shard key range in the cluster.
A
tags
B
databases
C
version
D
None of the mentioned
2
Split empty chunks in your collection by manually performing the ______ command on chunks.
A
distrbute
B
split
C
change
D
All of the Mentioned
3
Point out the correct statement.
A
Pre-splitting the chunk ranges in an empty sharded collection allows clients to insert data into an already partitioned collection
B
MongoDB cannot create enough chunks or distribute data fast enough to support required throughput
C
Chunk migration does not require copying all the data in the chunk from one shard to another
D
All of the Mentioned
4
MongoDB provides the _________ command to combine contiguous chunk ranges into a single chunk.
A
helpchunks
B
moveChunks
C
mergeChunks
D
All of the Mentioned
5
Use ________ to determine the current chunk ranges across the cluster.
A
sh.collects()
B
sh.status()
C
sh.results()
D
All of the Mentioned
6
Point out the wrong statement.
A
If a collection already has data, MongoDB automatically splits the collection’s data when you enable sharding for the collection
B
Subsequent attempts to manually create splits can lead to unpredictable chunk ranges and sizes as well as inefficient or ineffective balancing behavior
C
MongoDB creates splits only after an insert operation
D
None of the mentioned
7
______ splits the chunk that contains the shard key value specified by the query at the chunk’s median point.
A
sh.Find()
B
sh.splitFind()
C
sh.split()
D
All of the mentioned
8
_____ splits a chunk at the shard key value specified by the query.
A
sh.Find()
B
sh.splitFind()
C
sh.split()
D
sh.splitAt
9
sh.splitFind () Splits the chunk that contains the shard key value specified by the query at the chunk’s ______ point.
A
smean
B
stdev
C
median
D
All of the mentioned
10
The mergeChunks command requires at least _______ empty input chunk.
A
one
B
two
C
three
D
all of the mentioned
11
The chunkSize and ________ options, passed at startup to the mongos, do not affect the chunk size after you have initialized the cluster.
A
–Size
B
–chunkSize
C
–chunk
D
none of the mentioned
12
The preferred way to clear the _________ flag from a chunk is to attempt to split the chunk.
A
boolean
B
jumbo
C
change
D
All of the Mentioned
13
Point out the correct statement.
A
In some instances, MongoDB cannot split the no-longer jumbo chunk, such as a chunk with a range of single shard key value
B
To ensure that mongos instances update their cluster information cache, run flushConfig in the admin database
C
In a sharded cluster, you cannot use tags to associate specific ranges of a shard key with a specific shard or subset of shards
D
All of the Mentioned
14
____ is used to remove tags from a particular shard.
A
sh.removeTag()
B
sh.removeShard()
C
sh.removeShardTag()
D
All of the Mentioned
15
_____ associates a shard with a tag or identifier.
A
sh.collects()
B
sh.addShardTag
C
sh.results()
D
All of the mentioned
16
Point out the wrong statement.
A
You cannot overlap defined ranges, or tag the same range more than once
B
The mongod provides a helper for removing a tag range
C
The output from sh.status() lists tags associated with a shard, if any, for each shard
D
None of the mentioned
17
To assign a tag to a range of shard keys use the _________ method when connected to a mongos instance.
A
sh.addTagRange()
B
sh.splitFind()
C
sh.Range()
D
All of the Mentioned
18
Each document in the tags holds the ________ of the sharded collection and a minimum shard key value.
A
tag
B
chunk
C
namespace
D
size
19
Which of the following parameter represents minimum value of the shard key range to include in the tag?
A
min
B
max
C
maximum
D
Minimum
20
Use ________ to ensure that the balancer migrates documents that exist within the specified range to a specific shard.
A
sh.addShardTag()
B
sh.addTag()
C
sh.aShardTag()
D
All of the Mentioned
21
Which of the following parameter denotes name of the shard from which to remove a tag?
A
shard
B
tag
C
chunk
D
None of the mentioned
22
____ runs a database command against the admin database of a mongos instance.
A
sh._checkFullName()
B
sh._adminCommand()
C
sh.getBalancerLockDetails()
D
All of the Mentioned
23
Point out the correct statement.
A
The unique constraint on indexes ensures that only one document can have a value for a field in a collection
B
MongoDB support creating new unique indexes in sharded collections
C
If you use a compound shard key, you cannot enforce uniqueness on the combination of component keys in the shard key
D
All of the mentioned
24
____ tests to see if the mongo shell is connected to a mongos instance.
A
sh._checkMongos()
B
sh.addShard()
C
sh._lastMigration()
D
All of the Mentioned
25
____ reports on the active balancer lock, if it exists.
A
sh._checkFullName()
B
sh._adminCommand()
C
sh.getBalancerLockDetails()
D
All of the Mentioned
26
Point out the wrong statement.
A
The best way to ensure a field has unique values is to generate universally unique identifiers (UUID,) such as MongoDB’s ‘ObjectId values
B
Most deployments will not need to shard the files collection
C
The files collection is typically small, and only contains metadata
D
None of the mentioned
27
_____ reports on the last chunk migration.
A
sh._checkMongos()
B
sh.addShard()
C
sh._lastMigration()
D
All of the Mentioned
28
_____ removes an association between a range shard keys and a shard tag.
A
sh.removeTagRange()
B
sh._checkMongos()
C
sh.disableBalancing()
D
None of the mentioned
29
______ disable balancing on a single collection in a sharded database.
A
sh.removeTagRange()
B
sh._checkMongos()
C
sh.disableBalancing()
D
None of the mentioned
30
_____ activates the sharded collection balancer process if previously disabled using sh.disableBalancing().
A
sh.getBalancerHost()
B
sh.enableBalancing()
C
sh.enableSharding()
D
All of the mentioned
31
_____ returns a boolean to report if the balancer is currently enabled.
A
sh.getBalancerHost()
B
sh.enableBalancing()
C
sh.getBalancerState()
D
none of the mentioned
32
____ enables the balancer and waits for balancing to start.
A
sh.waitForBalancer()
B
sh.startBalancer()
C
sh.waitForDLock()
D
All of the mentioned
33
Point out the correct statement.
A
sh.deadForDLock() waits for a specified distributed sharded cluster lock
B
sh.waitForBalancerOff() waits until the balancer stops running
C
sh.statusserver() reports on the status of a sharded cluster, as db.printShardingStatus()
D
All of the Mentioned
34
____ waits for a change in ping state from one of the mongos in the sharded cluster.
A
sh.waitForBalancer()
B
sh.startBalancer()
C
sh.waitForPingChange()
D
All of the Mentioned
35
____ forces an update to the cluster metadata cached by a mongos.
A
config
B
flushconf
C
flushRouterConfig
D
All of the Mentioned
36
Point out the wrong statement.
A
moveChunks provides the ability to combine chunks on a single shard
B
setShardVersion is used to set the config server version
C
shardCollection enables the sharding functionality for a collection, allowing the collection to be sharded
D
None of the mentioned
37
Which of the following command that validates index on shard key?
A
checkShardingIndex
B
checkSIndex
C
enableSharding
D
All of the Mentioned
38
Which of the following command is used to determine split points?
A
splitVector
B
medianKey
C
movePrimary
D
None of the mentioned
39
You can only issue listShards against the ________ database.
A
local
B
admin
C
temp
D
None of the mentioned
40
______ is an internal command that supports the sharding functionality.
A
getBalancerHost()
B
getShardMap
C
enableSharding()
D
All of the Mentioned
41
_____ command verifies that a process is a mongos.
A
medianKey
B
isdbgrid
C
movePrimary
D
none of the mentioned
42
Which of the following is not a feature for NoSQL databases?
A
Data can be easily held across multiple servers
B
Relational Data
C
Scalability
D
Faster data access than SQL databases
43
Which of the following statement is correct with respect to mongoDB?
A
MongoDB is a NoSQL Database
B
MongoDB used XML over JSON for data exchange
C
MongoDB is not scalable
D
All of the above
44
Which of the following is/are feature of mongoDB?
A
Vertically scalable
B
Centralised database
C
c
D
All of the above
45
Which of the following represent column in mongoDB?
A
document
B
database
C
collection
D
field
46
The system generated _id field is?
A
A 12 byte hexadecimal value
B
A 16 byte octal value
C
A 12 byte decimal value
D
A 10 bytes binary value
47
Which of the following true about mongoDB?
A
MongoDB is a cross-platform
B
MongoDB is a document oriented database
C
MongoDB provides high performance
D
All of the above
48
Collection is a group of MongoDB ______?
A
Database
B
Document
C
Field
D
none of the above
49
A developer want to develop a database for LFC system where the data stored is mostly in similar manner. Which database should use?
A
Relational
B
NoSQL
C
Both A and B can be used
D
none of the above
50
Documents in the same collection do not need to have the same set of fields or structure, and common fields in a collection's documents may hold different types of data is known as ?
A
dynamic schema
B
mongod
C
mongo
D
Embedded Documents
Submit Quiz
Back to All Quizzes