MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 17

Choose a topic to test your knowledge and improve your MongoDB skills

To provide high availability and data consistency, in a production sharded cluster, each shard is a _____





✅ Correct Answer: 1

______ interface with client applications and direct operations to the appropriate shard or shards.





✅ Correct Answer: 2

A sharded cluster can contain __________ query router to divide the client request load.





✅ Correct Answer: 3

Point out the correct statement.





✅ Correct Answer: 1

_____ servers store the cluster’s metadata.





✅ Correct Answer: 1

The query router uses __________ to target operations to specific shards.





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 1

Production sharded clusters have exactly ______ config servers.





✅ Correct Answer: 3

A _________ key is either an indexed field or an indexed compound field that exists in every document in the collection.





✅ Correct Answer: 2

To divide the shard key values into chunks, MongoDB uses _____ based partitioning.





✅ Correct Answer: 1

With hash based partitioning, two documents with _____ shard key values are unlikely to be part of the same chunk.





✅ Correct Answer: 1

__ based partitioning, by contrast, ensures an even distribution of data at the expense of efficient range queries.





✅ Correct Answer: 2

MongoDB allows administrators to direct the balancing policy using ______ aware sharding.





✅ Correct Answer: 3

Point out the correct statement.





✅ Correct Answer: 1

Tags are the primary mechanism to control the behavior of the _______ and the distribution of chunks in a cluster.





✅ Correct Answer: 1

How many background process runs behind balanced cluster?





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 2

_____ is a background process that keeps chunks from growing too large.





✅ Correct Answer: 1

The shards manage _______ migrations as a background operation between an origin shard and a destination shard.





✅ Correct Answer: 3

For most deployments, the default value of chunk is _____ megabytes is ideal.





✅ Correct Answer: 3

The ______ instances are the routers for the cluster.





✅ Correct Answer: 2

A single sharded cluster must have exclusive use of its _______ servers.





✅ Correct Answer: 3

When a chunk grows beyond the chunk size, MongoDB attempts to split the chunk into smaller chunks, always based on ranges in the _____





✅ Correct Answer: 3

Point out the correct statement.





✅ Correct Answer: 4

The index on the shard key cannot be a _________ index.





✅ Correct Answer: 2

Hashed shard keys use a ________ index of a single field as the shard key to partition data across your sharded cluster.





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 2

You can control how many chunks MongoDB will create with the ___________ parameter.





✅ Correct Answer: 2

MongoDB automatically computes the hashes when resolving queries using ______ indexes.





✅ Correct Answer: 3

MongoDB generates _______ values upon document creation to produce a unique identifier for the object.





✅ Correct Answer: 1

A shard key that increases monotonically will not hinder performance if most of your write operations are ____ operations.





✅ Correct Answer: 2

The mongos provides an interface for applications to interact with sharded clusters that hides the complexity of data ______





✅ Correct Answer: 1

The _________ process is responsible for redistributing the chunks of a sharded collection evenly among the shards for every sharded collection.





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 2

Use _______ migration to distribute data during bulk inserts.





✅ Correct Answer: 2

The balancer process sends the _______ command to the source shard.





✅ Correct Answer: 3

Point out the wrong statement.





✅ Correct Answer: 4

The source shard is responsible for incoming ______ operations for the chunk.





✅ Correct Answer: 2

_____ can alter the behavior so that the delete phase of the current migration blocks the start of the next chunk migration.





✅ Correct Answer: 2

The default value _________ becomes true for all chunk migrations.





✅ Correct Answer: 2

You can set the _________ option on the balancer configuration to set different write concern semantics.





✅ Correct Answer: 1

With __________ enabled, the source shard archives the documents in the migrated chunks in a directory named after the collection namespace.





✅ Correct Answer: 2

The ________ collection stores a document for each change to the metadata of a sharded collection.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 3

The _________ collection stores a document for each sharded collection in the cluster.





✅ Correct Answer: 3

You can return a list of the collections, with the following helper ______





✅ Correct Answer: 3

Point out the wrong statement.





✅ Correct Answer: 1

_____ is a string that holds the address of the client, a mongos instance that initiates this change.





✅ Correct Answer: 2

The _______ collection keeps track of the active components in the sharded cluster.





✅ Correct Answer: 2

If the collection is empty then MongoDB will create the index as part of the ________





✅ Correct Answer: 2