MongoDB/MongoDB Mcq Question Set 18 Sample Test,Sample questions

Question:
 Point out the correct statement.

1.sh.deadForDLock() waits for a specified distributed sharded cluster lock

2. sh.waitForBalancerOff() waits until the balancer stops running

3.sh.statusserver() reports on the status of a sharded cluster, as db.printShardingStatus()

4.All of the Mentioned


Question:
 Point out the wrong statement.

1. You cannot overlap defined ranges, or tag the same range more than once

2.The mongod provides a helper for removing a tag range

3. The output from sh.status() lists tags associated with a shard, if any, for each shard

4.None of the mentioned


Question:
 Which of the following parameter denotes name of the shard from which to remove a tag?

1.shard

2.tag

3.chunk

4.None of the mentioned


Question:
A developer want to develop a database for LFC system where the data stored is mostly in similar manner. Which database should use?

1. Relational

2.NoSQL

3.Both A and B can be used

4.none of the above


Question:
Collection is a group of MongoDB ______?

1. Database

2.Document

3.Field

4.none of the above


Question:
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 ?

1.dynamic schema

2. mongod

3. mongo

4.Embedded Documents


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

1.tag

2. chunk

3.namespace

4.size


Question:
MongoDB provides the _________ command to combine contiguous chunk ranges into a single chunk.

1.helpchunks

2.moveChunks

3.mergeChunks

4.All of the Mentioned


Question:
Point out the correct statement.

1. Pre-splitting the chunk ranges in an empty sharded collection allows clients to insert data into an already partitioned collection

2.MongoDB cannot create enough chunks or distribute data fast enough to support required throughput

3.Chunk migration does not require copying all the data in the chunk from one shard to another

4.All of the Mentioned


Question:
Point out the correct statement.

1.In some instances, MongoDB cannot split the no-longer jumbo chunk, such as a chunk with a range of single shard key value

2. To ensure that mongos instances update their cluster information cache, run flushConfig in the admin database

3. In a sharded cluster, you cannot use tags to associate specific ranges of a shard key with a specific shard or subset of shards

4.All of the Mentioned


Question:
Point out the correct statement.

1.The unique constraint on indexes ensures that only one document can have a value for a field in a collection

2. MongoDB support creating new unique indexes in sharded collections

3. If you use a compound shard key, you cannot enforce uniqueness on the combination of component keys in the shard key

4. All of the mentioned


Question:
Point out the wrong statement.

1.If a collection already has data, MongoDB automatically splits the collection’s data when you enable sharding for the collection

2.Subsequent attempts to manually create splits can lead to unpredictable chunk ranges and sizes as well as inefficient or ineffective balancing behavior

3. MongoDB creates splits only after an insert operation

4.None of the mentioned


Question:
Point out the wrong statement.

1.The best way to ensure a field has unique values is to generate universally unique identifiers (UUID,) such as MongoDB’s ‘ObjectId values

2.Most deployments will not need to shard the files collection

3.The files collection is typically small, and only contains metadata

4.None of the mentioned


Question:
Point out the wrong statement.

1.moveChunks provides the ability to combine chunks on a single shard

2.setShardVersion is used to set the config server version

3. shardCollection enables the sharding functionality for a collection, allowing the collection to be sharded

4.None of the mentioned


Question:
sh.splitFind () Splits the chunk that contains the shard key value specified by the query at the chunk’s ______ point.

1. smean

2.stdev

3.median

4. All of the mentioned


Question:
Split empty chunks in your collection by manually performing the ______ command on chunks.

1.distrbute

2.split

3.change

4.All of the Mentioned


Question:
The chunkSize and ________ options, passed at startup to the mongos, do not affect the chunk size after you have initialized the cluster.

1. –Size

2. –chunkSize

3.–chunk

4. none of the mentioned


Question:
The mergeChunks command requires at least _______ empty input chunk.

1.one

2. two

3.three

4.all of the mentioned


Question:
The preferred way to clear the _________ flag from a chunk is to attempt to split the chunk.

1.boolean

2.jumbo

3.change

4.All of the Mentioned


Question:
The system generated _id field is?

1.A 12 byte hexadecimal value

2.A 16 byte octal value

3.A 12 byte decimal value

4.A 10 bytes binary value


Question:
The _______ collection holds documents for each tagged shard key range in the cluster.

1.tags

2.databases

3.version

4.None of the mentioned


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

1.sh.addTagRange()

2.sh.splitFind()

3.sh.Range()

4.All of the Mentioned


Question:
Use ________ to determine the current chunk ranges across the cluster.

1.sh.collects()

2.sh.status()

3.sh.results()

4.All of the Mentioned


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

1.sh.addShardTag()

2.sh.addTag()

3.sh.aShardTag()

4.All of the Mentioned


Question:
Which of the following command is used to determine split points?

1.splitVector

2.medianKey

3.movePrimary

4.None of the mentioned


Question:
Which of the following command that validates index on shard key?

1. checkShardingIndex

2.checkSIndex

3.enableSharding

4.All of the Mentioned


Question:
Which of the following is not a feature for NoSQL databases?

1.Data can be easily held across multiple servers

2.Relational Data

3.Scalability

4.Faster data access than SQL databases


Question:
Which of the following is/are feature of mongoDB?

1.Vertically scalable

2.Centralised database

3.c

4.All of the above


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

1.min

2.max

3.maximum

4.Minimum


Question:
Which of the following represent column in mongoDB?

1. document

2.database

3.collection

4. field


Question:
Which of the following statement is correct with respect to mongoDB?

1.MongoDB is a NoSQL Database

2.MongoDB used XML over JSON for data exchange

3.MongoDB is not scalable

4. All of the above


Question:
Which of the following true about mongoDB?

1.MongoDB is a cross-platform

2.MongoDB is a document oriented database

3.MongoDB provides high performance

4. All of the above


Question:
You can only issue listShards against the ________ database.

1.local

2.admin

3. temp

4.None of the mentioned


Question:
____ enables the balancer and waits for balancing to start.

1.sh.waitForBalancer()

2. sh.startBalancer()

3.sh.waitForDLock()

4. All of the mentioned


Question:
____ forces an update to the cluster metadata cached by a mongos.

1.config

2.flushconf

3.flushRouterConfig

4.All of the Mentioned


Question:
____ is used to remove tags from a particular shard.

1.sh.removeTag()

2. sh.removeShard()

3.sh.removeShardTag()

4.All of the Mentioned


Question:
____ reports on the active balancer lock, if it exists.

1. sh._checkFullName()

2.sh._adminCommand()

3. sh.getBalancerLockDetails()

4.All of the Mentioned


Question:
____ runs a database command against the admin database of a mongos instance.

1. sh._checkFullName()

2. sh._adminCommand()

3.sh.getBalancerLockDetails()

4.All of the Mentioned


Question:
____ tests to see if the mongo shell is connected to a mongos instance.

1. sh._checkMongos()

2. sh.addShard()

3.sh._lastMigration()

4.All of the Mentioned


Question:
____ waits for a change in ping state from one of the mongos in the sharded cluster.

1.sh.waitForBalancer()

2. sh.startBalancer()

3.sh.waitForPingChange()

4.All of the Mentioned


Question:
_____ activates the sharded collection balancer process if previously disabled using sh.disableBalancing().

1. sh.getBalancerHost()

2. sh.enableBalancing()

3.sh.enableSharding()

4. All of the mentioned


Question:
_____ associates a shard with a tag or identifier.

1. sh.collects()

2.sh.addShardTag

3.sh.results()

4. All of the mentioned


Question:
_____ command verifies that a process is a mongos.

1.medianKey

2. isdbgrid

3.movePrimary

4. none of the mentioned


Question:
_____ removes an association between a range shard keys and a shard tag.

1.sh.removeTagRange()

2.sh._checkMongos()

3.sh.disableBalancing()

4.None of the mentioned


Question:
_____ reports on the last chunk migration.

1.sh._checkMongos()

2. sh.addShard()

3. sh._lastMigration()

4.All of the Mentioned


Question:
_____ returns a boolean to report if the balancer is currently enabled.

1.sh.getBalancerHost()

2.sh.enableBalancing()

3.sh.getBalancerState()

4. none of the mentioned


Question:
_____ splits a chunk at the shard key value specified by the query.

1.sh.Find()

2. sh.splitFind()

3.sh.split()

4.sh.splitAt


Question:
______ disable balancing on a single collection in a sharded database.

1. sh.removeTagRange()

2.sh._checkMongos()

3.sh.disableBalancing()

4.None of the mentioned


Question:
______ is an internal command that supports the sharding functionality.

1.getBalancerHost()

2.getShardMap

3.enableSharding()

4.All of the Mentioned


Question:
______ splits the chunk that contains the shard key value specified by the query at the chunk’s median point.

1.sh.Find()

2.sh.splitFind()

3. sh.split()

4.All of the mentioned


More MCQS

  1. MongoDB Mcq Question Set 1
  2. MongoDB Mcq Question Set 2
  3. MongoDB Mcq Question Set 3
  4. MongoDB Mcq Question Set 4
  5. MongoDB Mcq Question Set 5
  6. MongoDB Mcq Question Set 6
  7. MongoDB Mcq Question Set 7
  8. MongoDB Mcq Question Set 8
  9. MongoDB Mcq Question Set 9
  10. MongoDB Mcq Question Set 10
  11. MongoDB Mcq Question Set 11
  12. MongoDB Mcq Question Set 12
  13. MongoDB Mcq Question Set 13
  14. MongoDB Mcq Question Set 14
  15. MongoDB Mcq Question Set 15
  16. MongoDB Mcq Question Set 16
  17. MongoDB Mcq Question Set 17
  18. MongoDB Mcq Question Set 18
  19. MongoDB Mcq Question Set 19
  20. MongoDB Mcq Question Set 20
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!