MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 16

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

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




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




3. _____ sets the slaveOk property for the current connection.




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




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




6. Point out the wrong statement.




7. The oplog must translate multi-updates into individual operations in order to maintain ______




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




9. Point out the correct statement.




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




11. Secondaries apply operations from the primary asynchronously to provide __________ consistency




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




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




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




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




16. Point out the wrong statement.




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




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




19. Point out the correct statement.




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




21. During initial sync, mongod will remove the content of the _______




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




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




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




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




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




27. Point out the correct statement.




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




29. _____ applies a new configuration to an existing replica set.




30. Which of the command is for master-slave replication only?




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




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




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




34. Point out the correct statement.




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




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




37. Point out the wrong statement.




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




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




40. Remove the secondary from the replica set by calling ___________ method.




41. ____ returns basic help text for replica set functions.




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




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




44. Point out the correct statement.




45. How many types of sharding exist in MongoDB?




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




47. Point out the wrong statement.




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




49. MongoDB supports sharding through the configuration of a sharded ______




50. How many components are present in sharded cluster?