MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 15

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

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





✅ Correct Answer: 4

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

____ 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.





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

Replica sets provide high availability using automatic ________





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 3

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





✅ Correct Answer: 4

Sometimes the failover process may require a ____________ during operation.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 1

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





✅ Correct Answer: 1

The names of rollback files have the following form.





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2

mongorestore recreates indexes recorded by _______





✅ Correct Answer: 2

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





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

The db.________ method does not display hidden members.





✅ Correct Answer: 2

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





✅ Correct Answer: 2

Which of the following members should be hidden?





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

Delayed members apply operations from the _______ on a delay.





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 3

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





✅ Correct Answer: 1

________ returns the replica set configuration document.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1