

MCQOPTIONS
Saved Bookmarks
This section includes 41 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.
1. |
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 |
Answer» E. | |
2. |
Changing the _______ option will change the port that mongod listens for incoming connections on. |
A. | –shardsrvkey |
B. | –shardsrv |
C. | –shard |
D. | All of the mentioned |
Answer» C. –shard | |
3. |
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 |
Answer» D. all of the mentioned | |
4. |
For most deployments, the default value of chunk is _____ megabytes is ideal. |
A. | 16 |
B. | 32 |
C. | 64 |
D. | 72 |
Answer» D. 72 | |
5. |
With hash based partitioning, two documents with _____ shard key values are unlikely to be part of the same chunk. |
A. | close |
B. | open |
C. | partially close |
D. | all of the mentioned |
Answer» B. open | |
6. |
With __________ enabled, the source shard archives the documents in the migrated chunks in a directory named after the collection namespace. |
A. | sharding.archiveChunks |
B. | sharding.archiveMovedChunks |
C. | shard.archiveMovedChunks |
D. | none of the mentioned |
Answer» C. shard.archiveMovedChunks | |
7. |
You can set the _________ option on the balancer configuration to set different write concern semantics. |
A. | writeConcern |
B. | updateConcern |
C. | readConcern |
D. | all of the mentioned |
Answer» B. updateConcern | |
8. |
_______ forces an update to the cluster metadata cached by a mongos. |
A. | config |
B. | flushconf |
C. | flushRouterConfig |
D. | all of the mentioned |
Answer» D. all of the mentioned | |
9. |
_______ enables the balancer and waits for balancing to start. |
A. | sh.waitForBalancer() |
B. | sh.startBalancer() |
C. | sh.waitForDLock() |
D. | all of the mentioned |
Answer» C. sh.waitForDLock() | |
10. |
The ______ instances are the routers for the cluster. |
A. | mongod |
B. | mongos |
C. | collection |
D. | all of the mentioned |
Answer» C. collection | |
11. |
_________ disable balancing on a single collection in a sharded database. |
A. | sh.removeTagRange() |
B. | sh._checkMongos() |
C. | sh.disableBalancing() |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
12. |
When a chunk grows beyond the chunk size, MongoDB attempts to split the chunk into smaller chunks, always based on ranges in the _____________ |
A. | replica set |
B. | shard key |
C. | tag sets |
D. | all of the mentioned |
Answer» D. all of the mentioned | |
13. |
A single sharded cluster must have exclusive use of its _______ servers. |
A. | local |
B. | global |
C. | config |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
14. |
How many background process runs behind balanced cluster? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | All of the mentioned |
Answer» C. 3 | |
15. |
The _____________ collection holds documents for each tagged shard key range in the cluster. |
A. | tags |
B. | databases |
C. | version |
D. | none of the mentioned |
Answer» B. databases | |
16. |
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 |
Answer» B. tag | |
17. |
_________ 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 |
Answer» D. all of the mentioned | |
18. |
Which of the following command is used to determine split points? |
A. | splitVector |
B. | medianKey |
C. | movePrimary |
D. | none of the mentioned |
Answer» B. medianKey | |
19. |
Which of the following command that validates index on shard key? |
A. | checkShardingIndex |
B. | checkSIndex |
C. | enableSharding |
D. | all of the mentioned |
Answer» B. checkSIndex | |
20. |
You can return a list of the collections, with the following helper ______________ |
A. | show collects |
B. | show collection |
C. | show collections |
D. | all of the mentioned |
Answer» D. all of the mentioned | |
21. |
The mongos provides an interface for applications to interact with sharded clusters that hides the complexity of data ______ |
A. | partitioning |
B. | replication |
C. | sharding |
D. | none of the mentioned |
Answer» B. replication | |
22. |
If the collection is empty then MongoDB will create the index as part of the ________ |
A. | shardCollectionkey() |
B. | shardCollection() |
C. | keyCollection() |
D. | all of the mentioned |
Answer» C. keyCollection() | |
23. |
The mergeChunks command requires at least _______ empty input chunk. |
A. | one |
B. | two |
C. | three |
D. | all of the mentioned |
Answer» B. two | |
24. |
__________ 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 |
Answer» C. sh.split() | |
25. |
_______ 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 |
Answer» B. sh.enableBalancing() | |
26. |
You can only issue listShards against the ________ database. |
A. | local |
B. | admin |
C. | temp |
D. | none of the mentioned |
Answer» C. temp | |
27. |
________ servers store the cluster’s metadata. |
A. | Local |
B. | Config |
C. | Master |
D. | All of the mentioned |
Answer» B. Config | |
28. |
MongoDB generates _______ values upon document creation to produce a unique identifier for the object. |
A. | ObjectId |
B. | CompId |
C. | DoctId |
D. | All of the mentioned |
Answer» B. CompId | |
29. |
A shard key that increases monotonically will not hinder performance if most of your write operations are ____ operations. |
A. | insert() |
B. | update() |
C. | delete() |
D. | all of the mentioned |
Answer» C. delete() | |
30. |
The default value _________ becomes true for all chunk migrations. |
A. | secThrottle |
B. | secondaryThrottle |
C. | primaryThrottle |
D. | all of the mentioned |
Answer» C. primaryThrottle | |
31. |
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 |
Answer» C. –chunk | |
32. |
_______ based partitioning, by contrast, ensures an even distribution of data at the expense of efficient range queries. |
A. | Hash |
B. | Range |
C. | Table |
D. | None of the mentioned |
Answer» C. Table | |
33. |
________ 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 |
Answer» D. none of the mentioned | |
34. |
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 |
Answer» B. sh.addTag() | |
35. |
________ command verifies that a process is a mongos. |
A. | medianKey |
B. | isdbgrid |
C. | movePrimary |
D. | none of the mentioned |
Answer» C. movePrimary | |
36. |
To divide the shard key values into chunks, MongoDB uses _____ based partitioning. |
A. | range |
B. | b tree |
C. | document |
D. | isMaster |
Answer» B. b tree | |
37. |
_________ is an internal command that supports the sharding functionality. |
A. | getBalancerHost() |
B. | getShardMap |
C. | enableSharding() |
D. | all of the mentioned |
Answer» C. enableSharding() | |
38. |
_________ interface with client applications and direct operations to the appropriate shard or shards. |
A. | Query Parsers |
B. | Query Routers |
C. | Query Executors |
D. | None of the mentioned |
Answer» C. Query Executors | |
39. |
How many types of sharding exist in MongoDB? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | All of the mentioned |
Answer» C. 3 | |
40. |
To provide high availability and data consistency, in a production sharded cluster, each shard is a ___________ |
A. | replica set |
B. | cluster |
C. | partition |
D. | all of the mentioned |
Answer» B. cluster | |
41. |
How many components are present in sharded cluster? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» C. 3 | |