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

Question:
 Delayed members apply operations from the _______ on a delay.

1. oplog

2. log

3.mlog

4.None of the mentioned


Question:
 If the current primary becomes unavailable, the replica set holds an ______ to choose which of the secondaries becomes the new primary.

1.election

2.replication

3.clasification

4.None of the mentioned


Question:
 In a sharded cluster _______ do not interact with hidden members.

1.mongod

2.mongos

3.mongostore

4.All of the Mentioned


Question:
 Point out the correct statement.

1. Elections does not occur when the primary becomes unavailable and the replica set members autonomously select a new primary

2.A priority 1 member maintains a copy of the data set, accepts read operations, and votes in elections

3.In a two-member replica set, in one data center hosts the primary and a secondary.

4.None of the mentioned


Question:
 Point out the wrong statement.

1.Clients will not distribute reads with the appropriate read preference to hidden members

2.Hidden members cannot vote in replica set elections

3. If you stop a voting hidden member, ensure that the set has an active majority or the primary will step down

4.None of the mentioned


Question:
 Point out the wrong statement.

1.The rs.status() method is a wrapper that runs the replSetGetStatus database command

2.rs.freeze() provides a wrapper around the database command replSetFreeze

3.rs.init() initializes a new replica set

4.None of the mentioned


Question:
A delayed member has its priority equal to 0 and hidden equal to ______

1.0

2. flase

3. true

4.All of the Mentioned


Question:
A priority __ member is a secondary that cannot become primary.

1.0

2.1

3.2

4.None of the mentioned


Question:
A replica set can have up to ______ members but only 7 voting members.

1.10

2.30

3.50

4. 70


Question:
A rollback reverts _______ operations on a former primary when the member rejoins the replica set after a failover.

1.read

2.write

3.view

4.Secondary


Question:
A second data center hosts one priority 0 member that cannot become _____

1.primary

2.write

3.view

4.Secondary


Question:
A ______ member maintains a copy of the primary’s data set but is invisible to client applications.

1.primary

2.delayed

3.hidden

4. none of the mentioned


Question:
By default, an application directs its ____ operations to the primary member.

1. read

2.write

3.read write

4.All of the Mentioned


Question:
Delayed members are a ________ or a running “historical” snapshot of the data set.

1.“rolling backup”

2. “roll backup”

3.“rolling commit”

4.None of the mentioned


Question:
Failover allows a ________ member to become primary if primary is unavailable.

1.Hidden

2.Primary

3.ViewState

4.Secondary


Question:
In sharded clusters, delayed members have limited utility when the __________ is enabled.

1.Balancer

2. Collector

3.Emitter

4.None of the mentioned


Question:
MongoDB writes the rollback data to BSON files in the rollback/ folder under the database’s ________ directory.

1.dbPath

2. logPath

3. dataPath

4.All of the Mentioned


Question:
mongorestore recreates indexes recorded by _______

1.bsondump

2. mongodump

3. mongostore

4. All of the mentioned


Question:
Point out the correct statement.

1.Removing a member to the replica set does not always increase the fault tolerance

2.The secondary is the only member in the replica set that receives write operations

3.Fault tolerance is an effect of replica set size, but the relationship is not direct

4.None of the mentioned


Question:
Point out the correct statement.

1.A rollback does not occur if the write operations replicate to another member of the replica set before the primary steps down

2.Secondaries that can not keep up with the throughput of operations on the former primary, decrease the size and impact of the rollback

3. Fault tolerance is an effect of replica set size, but the relationship is not direct

4.None of the mentioned


Question:
Point out the correct statement.

1. In MongoDB, clients cannot see the results of writes before they are made durable

2.Users may configure read preference on a per-connection basis to prefer that the read operations return results from the secondary members

3.Clients cannot read data which may be subsequently rolled back

4.None of the mentioned


Question:
Point out the correct statement.

1. rs.printinfo() prints a formatted report of the replica set member’s oplog

2.The output of rs.printReplicationInfo() is identical to that of db.printReplicationInfo()

3.rs.printReplicationInfo() formats and prints the data returned by db.allReplicationInfo()

4. none of the mentioned


Question:
Point out the wrong statement.

1.When the primary rejoins the set as a secondary, it reverts, or “rolls back,” its write operations to maintain database consistency with the other members

2.A rollback is necessary only if the primary had accepted write operations that the secondaries had not successfully replicated before the primary stepped down

3.MongoDB attempts for rollbacks, which should be rare

4.None of the mentioned


Question:
Point out the wrong statement.

1. Even number of members ensures that the replica set is always able to elect a primary

2.Arbiters do not store a copy of the data and require fewer resources

3. You may run an arbiter on an application server or other shared process

4. none of the mentioned


Question:
Point out the wrong statement.

1.Administrators must apply or discard rollback data manually

2.Network partitions could not prevent the set from being able to form a majority

3.Replica sets remove “rollback” data when needed without intervention

4.None of the mentioned


Question:
Replica sets provide high availability using automatic ________

1.failover

2. replication

3.failure

4.All of the Mentioned


Question:
Sometimes the failover process may require a ____________ during operation.

1. savepoint

2. rollback

3.commit

4.None of the mentioned


Question:
The architecture of a replica set affects the set’s _________ and capability.

1. scalability

2.capacity

3.performance

4.All of the Mentioned


Question:
The db.________ method does not display hidden members.

1. isPrima ry()

2.isMaster()

3.Master()

4.None of the mentioned


Question:
The names of rollback files have the following form.

1.<database>.<collection>.<timestamp>.bson.

2.<database>.<collection>.<tp>.bson.

3.<database>.<collection>.<timestamp>.json.

4.None of the mentioned


Question:
The standard replica set deployment for production system is a ___-member replica set.

1.two

2.three

3.four

4.five


Question:
The __________ of a replica set affects the outcome of failover situations.

1.deployment

2. architecture

3.structure

4.All of the Mentioned


Question:
To protect your data if your main data center fails, keep at least _______ member in an alternate data center.

1.one

2. two

3. three

4.None of the mentioned


Question:
Use ______ to apply the changes to the new primary after rollback.

1.mongostore

2.mongorestore

3. restore

4.None of the mentioned


Question:
What should be the priority of member to prevent them from becoming primary?

1.0

2.1

3.2

4.3


Question:
Which of the following ddds an arbiter to a replica set?

1.rs.addArb()

2.rs.addArbiter()

3.rs.addtoArb()

4.All of the Mentioned


Question:
Which of the following may be non-voting or priority 0?

1.center

2. secondary

3.primary

4.None of the mentioned


Question:
Which of the following members should be hidden?

1. Delayed

2. Hidden

3.Primary

4.All of the Mentioned


Question:
Without a primary, a replica set cannot accept ________ operations.

1. read

2.write

3. read write

4.All of the Mentioned


Question:
___ may block reads, including those necessary to verify authentication.

1.db.lockall()

2.db.fsyncLock()

3. db,lockreads()

4. none of the mentioned


Question:
____ for a replica set is the number of members that can become unavailable and still leave enough members in the set to elect a primary.

1. Fault tolerance

2. Reliability

3. Security

4.None of the mentioned


Question:
____ prints a report of the status of the replica set from the perspective of the primary.

1. rs.freeze()

2.rs.printconf()

3. rs.printReplicationInfo()

4.Secondary


Question:
____ re-configures a replica set by applying a new replica set configuration object.

1. rs.reconfig()

2.rs.remove()

3.rs.stepDown()

4.None of the mentioned


Question:
____ unlocks a mongod instance to allow writes and reverses the operation of a db.fsyncLock() operation.

1.db.fsyncUnlock()

2.db.fsynclock()

3.db.syncUnlock()

4.Secondary


Question:
______ is used to read the contents of the rollback files.

1.bsondumpdata

2.bsondp

3.bsondump

4.None of the mentioned


Question:
______ member is used to support dedicated functions, such as backup or reporting.

1.Hidden

2.Primary

3.ViewState

4.None of the mentioned


Question:
______ operations cannot guarantee that the data files do not change.

1.db.lockl()

2.db.synclock()

3. db.fsyncUnlock()

4.Secondary


Question:
______ prevents the current member from seeking election as primary for a period of time.

1. rs.freeze()

2. rs.conf()

3. rs.printReplicationInfo()

4.Secondary


Question:
______ sets also allow the routing of read operations to specific machines.

1.Field

2.Read

3.Tag

4.All of the Mentioned


Question:
________ returns the replica set configuration document.

1.rs.freeze()

2. rs.conf()

3. rs.printReplicationInfo()

4. none 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!