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

Question:
 How many components are present in sharded cluster?

1.1

2.2

3.3

4.4


Question:
 If the oplog is shorter than the slaveDelay window, the _______ member cannot successfully replicate operations.

1.hidden

2.delayed

3.priority

4.All of the Mentioned


Question:
 rs.reconfig() provides a wrapper around the ___________ command.

1. replSetfinalReconfig

2.replSetReconfig

3.replSetReconfiguration

4.None of the mentioned


Question:
 To modify priorities, you update the members _________ in the replica configuration object.

1. array

2. tag

3.mdimarray

4.All of the Mentioned


Question:
 Which of the command is for master-slave replication only?

1.replSetSyncFrom

2.resync

3.applyOps

4.isMaster


Question:
A delayed member may show as 0 seconds behind the primary when the inactivity period on the primary is greater than the ________ value.

1.slaveDelayTime

2.slaveDelay

3. slaveTime

4.rs.slave()


Question:
A replica set member becomes _________ when its replication process falls so far behind that the primary overwrites oplog entries the member has not yet replicated.

1.stale

2.state

3. dead

4.Secondary


Question:
Before mongod creates an oplog, you can specify its size with the __________ option.

1.oplogSizeMB

2.oplogSizeGB

3.opSizeMB

4.All of the Mentioned


Question:
Before mongod creates an oplog, you can specify its size with the __________ option.

1.oplogSizeMB

2.oplogSizeGB

3.opSizeMB

4.All of the Mentioned


Question:
During initial sync, mongod will remove the content of the _______

1.dbPathSync

2. Path

3.dbPath

4.None of the mentioned


Question:
For a member to sync from another, both members must have the same value for the _________ setting.

1.buildIndexes

2.getIndexes

3.buildpriIndexes

4.Secondary


Question:
For most replica sets, the hostnames in the _________ field never change.

1. tag

2.host

3. rs

4.None of the mentioned


Question:
How many types of sharding exist in MongoDB?

1. 1

2.2

3.3

4.All of the Mentioned


Question:
MongoDB supports sharding through the configuration of a sharded ______

1.shapes

2.clusters

3. sets

4.All of the Mentioned


Question:
MongoDB uses _________ to support deployments with very large data sets and high throughput operations.

1.sharding

2.replication

3.replica sets

4.All of the Mentioned


Question:
Point out the correct statement.

1.To facilitate replication, all replica set members send heartbeats (pings) to all other members

2.For proper replication operations, entries in the oplog must be idempotent

3. Any member can import oplog entries from any other member

4. Any member can import oplog entries from any other member


Question:
Point out the correct statement.

1. Replica sets allow a MongoDB deployment to remain available during the majority of a maintenance window

2.Always start mongod with the same user, even when restarting a replica set member as a standalone instance

3.The secondary takes time to catch up to the primary

4. All of the mentioned


Question:
Point out the correct statement.

1.To affect the sync target for the initial sync, run rs.syn() operation before initial sync

2. If you run rs.syncFrom() during initial sync, MongoDB produces no error messages

3.replSetSyncFrom and rs.syncFrom() provide a permanent override of default behavior

4.All of the Mentioned


Question:
Point out the correct statement.

1.The value of the member’s priority setting determines the member’s priority in elections

2.The default value for the priority field is 3

3.The value of priority can be any floating point (i.e. decimal) number between 0 and 500

4.None of the mentioned


Question:
Point out the correct statement.

1.High query rates can exhaust the CPU capacity of the server

2.Database systems with small data sets and high throughput applications can challenge the capacity of a single server

3. Smaller data sets exceed the storage capacity of a single machine

4. All of the mentioned


Question:
Point out the wrong statement.

1.The oplog is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases

2.MongoDB applies database operations on the primary and then records the operations on the primary’s oplog

3. The primary members then copy and apply these operations in an asynchronous process

4.None of the mentioned


Question:
Point out the wrong statement.

1.To change the size of the oplog, you must perform maintenance on each member of the replica set in turn

2. Always start rolling replica set maintenance with the secondaries, and finish with the maintenance on primary member

3. The oplog exists internally as a capped collection

4.None of the mentioned


Question:
Point out the wrong statement.

1.Before an election the primary opens all open client connections

2. To block a member from seeking election as primary, assign it a priority of 0

3. Hidden members, delayed members, and arbiters all have priority set to 0

4. All of the mentioned


Question:
Point out the wrong statement.

1. Scaling by adding capacity do not have limitations.

2. cloud-based providers may only allow users to provision smaller instances

3.There is a practical maximum capability for vertical scaling

4. All of the mentioned


Question:
Remove the secondary from the replica set by calling ___________ method.

1. rs.removeRepli()

2.rs.remove()

3.rs.removeset()

4.isMaster


Question:
Replication _______ is a delay between operation on the primary and the application of that operation from the oplog to the secondary.

1.lag

2.delay

3.latency

4. none of the mentioned


Question:
Secondaries apply operations from the primary asynchronously to provide __________ consistency

1.strict

2. strong

3.eventual

4.None of the mentioned


Question:
The oplog must translate multi-updates into individual operations in order to maintain ______

1.availability

2.idempotency

3. scalability

4.Secondary


Question:
The ________ settings of replica set members affect the outcomes of elections for primary.

1.priority

2.replication

3. Initiate

4.All of the Mentioned


Question:
The _________ shell method can force the current primary to step down, which causes an election.

1.rs.repliconfig()

2.rs.config()

3.rs.reconfig()

4.All of the Mentioned


Question:
To finish the rolling maintenance operation, step down the primary with the _________ method.

1.rs.syncFrom()

2. rs.stepDown()

3.rs.synchrepl()

4.Secondary


Question:
Use _________ from a secondary member and the replication status output to assess the current state of replication.

1.db.getReplInfo()

2.db.getReplicationInfo()

3.rs.printReplicationInfo()

4. none of the mentioned


Question:
When enabled replSetMaintenance: true, the member enters the ________ state.

1.REPLICATING

2. RECOVERING

3.STALE

4.All of the Mentioned


Question:
When ______________ is true, the mongod instance saves all documents migrated from the shard to the moveChunk directory of the storage.dbPath.

1.sharding.archiveChunks

2.sharding.archiveMovedChunks

3.shards.archiveMovedChunks

4.rs.syncFrom()


Question:
You also can force a member never to become primary by setting its priority value to ______

1.1

2.2

3.3

4.0


Question:
You can use the ________ setting in Replica Set Configuration to disable chained replication for situations where chained replication is causing lag.

1.chainingAllowed

2.chainingDisAllowed

3.chainingAllow

4.None of the mentioned


Question:
You cannot use a _________backup for the data files, only a snapshot backup.

1.mongorestore

2.mongodump

3. bsondump

4.rs.syncFrom()


Question:
____ divides the data set and distributes the data over multiple servers, or shards.

1. Vertical

2.Sharding

3.Partition

4.All of the Mentioned


Question:
____ is an internal command that applies oplog entries to the current data set.

1. replSetSyncFrom

2.resync

3.applyOps

4.isMaster


Question:
____ returns basic help text for replica set functions.

1. rs.printSlaveReplicationInfo()

2.rs.printReplication()

3.rs.help()

4.All of the Mentioned


Question:
____ scaling adds more CPU and storage resources to increase capacity.

1. Horizontal

2.Vertical

3.Partition

4. All of the mentioned


Question:
____ sets the member that this replica set member will sync from, overriding the default sync target selection logic.

1. rs.reconfig()

2. rs.remove()

3. rs.stepDown()

4. rs.syncFrom()


Question:
_____ applies a new configuration to an existing replica set.

1.replSetReconfig

2.replSetMaintenance

3.replSetStepDown

4.All of the Mentioned


Question:
_____ sets the slaveOk property for the current connection.

1.rs.reconfig()

2. rs.slaveOk()

3.rs.stepDown()

4.rs.slave()


Question:
______ enables or disables a maintenance mode, which puts a secondary node in a RECOVERING state.

1.replSetReconfig

2.replSetMaintenance

3.replSetStepDown

4.All of the Mentioned


Question:
______ returns a document that reports on the status of the replica set.

1. replSetGetStatus

2.replSetFreeze

3.replSetInitiate

4.All of the Mentioned


Question:
______ shut down the mongod instance for one of the non-primary members of your replica set.

1.db.shutdown()

2.db.shutdownServer()

3.db.shutServer()

4.All of the Mentioned


Question:
_______ members allow you to add additional members for read distribution beyond the maximum seven voting members.

1.Voting

2. Non-voting

3.Priority

4.All of the Mentioned


Question:
_______ prints a report of the status of the replica set from the perspective of the secondaries.

1. rs.printSlaveReplicationInfo()

2.rs.printReplication()

3.rs.help()

4.None of the mentioned


Question:
________ explicitly override the default logic for selecting a member to replicate from.

1. replSetSyncFrom

2.resync

3.applyOps

4. isMaster


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
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite 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!