MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 15

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

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




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




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




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




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




6. Point out the wrong statement.




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




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




9. Point out the correct statement.




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




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




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




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




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




15. Replica sets provide high availability using automatic ________




16. Point out the wrong statement.




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




18. Sometimes the failover process may require a ____________ during operation.




19. Point out the correct statement.




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




21. The names of rollback files have the following form.




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




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




24. mongorestore recreates indexes recorded by _______




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




26. Point out the wrong statement.




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




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




29. Point out the correct statement.




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




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




32. The db.________ method does not display hidden members.




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




34. Which of the following members should be hidden?




35. Point out the wrong statement.




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




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




38. Point out the correct statement.




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




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




41. Delayed members apply operations from the _______ on a delay.




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




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




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




45. Point out the wrong statement.




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




47. ________ returns the replica set configuration document.




48. Point out the correct statement.




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




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