adplus-dvertising
frame-decoration

Question

________ associates a shard with a tag or identifier.

a.

sh.collects()

b.

sh.addShardTag

c.

sh.results()

d.

all of the mentioned

Posted under MongoDB

Answer: (b).sh.addShardTag

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. ________ associates a shard with a tag or identifier.

Similar Questions

Discover Related MCQs

Q. Point out the wrong statement.

Q. To assign a tag to a range of shard keys use the _________ method when connected to a mongos instance.

Q. Each document in the tags holds the ________ of the sharded collection and a minimum shard key value.

Q. Which of the following parameter represents minimum value of the shard key range to include in the tag?

Q. Use ________ to ensure that the balancer migrates documents that exist within the specified range to a specific shard.

Q. Which of the following parameter denotes name of the shard from which to remove a tag?

Q. _______ runs a database command against the admin database of a mongos instance.

Q. Point out the correct statement.

Q. ________ tests to see if the mongo shell is connected to a mongos instance.

Q. _______ reports on the active balancer lock, if it exists.

Q. Point out the wrong statement.

Q. _________ reports on the last chunk migration.

Q. _________ removes an association between a range shard keys and a shard tag.

Q. _________ disable balancing on a single collection in a sharded database.

Q. _______ activates the sharded collection balancer process if previously disabled using sh.disableBalancing().

Q. ________ returns a boolean to report if the balancer is currently enabled.

Q. _______ enables the balancer and waits for balancing to start.

Q. Point out the correct statement.

Q. _________ waits for a change in ping state from one of the mongos in the sharded cluster.

Q. _______ forces an update to the cluster metadata cached by a mongos.