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

Posted Date:-2022-01-26 14:05:14


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

Posted Date:-2022-01-26 13:47:17


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

1.mongod

2.mongos

3.mongostore

4.All of the Mentioned

Posted Date:-2022-01-26 14:01:20


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

Posted Date:-2022-01-26 13:59:51


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

Posted Date:-2022-01-26 14:02:51


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

Posted Date:-2022-01-26 14:07:05


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

Posted Date:-2022-01-26 14:05:58


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

1.0

2.1

3.2

4.None of the mentioned

Posted Date:-2022-01-26 13:59:25


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

1.10

2.30

3.50

4. 70

Posted Date:-2022-01-26 13:46:34


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

Posted Date:-2022-01-26 13:59:07


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

1.primary

2.write

3.view

4.Secondary

Posted Date:-2022-01-26 14:00:14


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

Posted Date:-2022-01-26 14:00:38


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

1. read

2.write

3.read write

4.All of the Mentioned

Posted Date:-2022-01-26 13:47:38


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

Posted Date:-2022-01-26 14:04:48


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

1.Hidden

2.Primary

3.ViewState

4.Secondary

Posted Date:-2022-01-26 13:54:03


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

1.Balancer

2. Collector

3.Emitter

4.None of the mentioned

Posted Date:-2022-01-26 14:05:36


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

Posted Date:-2022-01-26 13:55:18


Question:
mongorestore recreates indexes recorded by _______

1.bsondump

2. mongodump

3. mongostore

4. All of the mentioned

Posted Date:-2022-01-26 13:56:53


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

Posted Date:-2022-01-26 13:50:39


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

Posted Date:-2022-01-26 13:54:54


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

Posted Date:-2022-01-26 14:04:02


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

Posted Date:-2022-01-26 14:08:18


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

Posted Date:-2022-01-26 13:53:38


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

Posted Date:-2022-01-26 13:49:27


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

Posted Date:-2022-01-26 13:58:47


Question:
Replica sets provide high availability using automatic ________

1.failover

2. replication

3.failure

4.All of the Mentioned

Posted Date:-2022-01-26 13:53:00


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

1. savepoint

2. rollback

3.commit

4.None of the mentioned

Posted Date:-2022-01-26 13:54:25


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

1. scalability

2.capacity

3.performance

4.All of the Mentioned

Posted Date:-2022-01-26 13:48:51


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

1. isPrima ry()

2.isMaster()

3.Master()

4.None of the mentioned

Posted Date:-2022-01-26 14:00:58


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

Posted Date:-2022-01-26 13:55:43


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

1.two

2.three

3.four

4.five

Posted Date:-2022-01-26 13:49:49


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

1.deployment

2. architecture

3.structure

4.All of the Mentioned

Posted Date:-2022-01-26 13:58:21


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

Posted Date:-2022-01-26 13:51:49


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

1.mongostore

2.mongorestore

3. restore

4.None of the mentioned

Posted Date:-2022-01-26 13:56:30


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

1.0

2.1

3.2

4.3

Posted Date:-2022-01-26 13:52:07


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

Posted Date:-2022-01-26 14:06:36


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

1.center

2. secondary

3.primary

4.None of the mentioned

Posted Date:-2022-01-26 13:46:54


Question:
Which of the following members should be hidden?

1. Delayed

2. Hidden

3.Primary

4.All of the Mentioned

Posted Date:-2022-01-26 14:02:25


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

1. read

2.write

3. read write

4.All of the Mentioned

Posted Date:-2022-01-26 13:51:02


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

1.db.lockall()

2.db.fsyncLock()

3. db,lockreads()

4. none of the mentioned

Posted Date:-2022-01-26 14:03:34


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

Posted Date:-2022-01-26 13:50:09


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

Posted Date:-2022-01-26 14:08:42


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

Posted Date:-2022-01-26 14:09:03


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

Posted Date:-2022-01-26 14:04:27


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

1.bsondumpdata

2.bsondp

3.bsondump

4.None of the mentioned

Posted Date:-2022-01-26 13:56:06


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

1.Hidden

2.Primary

3.ViewState

4.None of the mentioned

Posted Date:-2022-01-26 13:51:26


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

1.db.lockl()

2.db.synclock()

3. db.fsyncUnlock()

4.Secondary

Posted Date:-2022-01-26 14:03:14


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

Posted Date:-2022-01-26 14:07:28


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

1.Field

2.Read

3.Tag

4.All of the Mentioned

Posted Date:-2022-01-26 13:52:28


Question:
________ returns the replica set configuration document.

1.rs.freeze()

2. rs.conf()

3. rs.printReplicationInfo()

4. none of the mentioned

Posted Date:-2022-01-26 14:07:48


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!