Which of the command is for master-slave replication only?
1.replSetSyncFrom
2.resync
3.applyOps
4.isMaster
Answer:2
Posted Date:-2022-01-26 07:33:25
1.1
2.2
3.3
4.4
Answer 21.hidden
2.delayed
3.priority
4.All of the Mentioned
Answer 21. replSetfinalReconfig
2.replSetReconfig
3.replSetReconfiguration
4.None of the mentioned
Answer 21. array
2. tag
3.mdimarray
4.All of the Mentioned
Answer 11.replSetSyncFrom
2.resync
3.applyOps
4.isMaster
Answer 21.slaveDelayTime
2.slaveDelay
3. slaveTime
4.rs.slave()
Answer 21.stale
2.state
3. dead
4.Secondary
Answer 11.oplogSizeMB
2.oplogSizeGB
3.opSizeMB
4.All of the Mentioned
Answer 11.oplogSizeMB
2.oplogSizeGB
3.opSizeMB
4.All of the Mentioned
Answer 11.dbPathSync
2. Path
3.dbPath
4.None of the mentioned
Answer 31.buildIndexes
2.getIndexes
3.buildpriIndexes
4.Secondary
Answer 11. tag
2.host
3. rs
4.None of the mentioned
Answer 21. 1
2.2
3.3
4.All of the Mentioned
Answer 21.shapes
2.clusters
3. sets
4.All of the Mentioned
Answer 21.sharding
2.replication
3.replica sets
4.All of the Mentioned
Answer 11.To facilitate replication, all replica set members send heartbeats (pings) to all other members
2.For proper replication operations, entries in the oplog must be idempotent
3. Any member can import oplog entries from any other member
4. Any member can import oplog entries from any other member
Answer 21. Replica sets allow a MongoDB deployment to remain available during the majority of a maintenance window
2.Always start mongod with the same user, even when restarting a replica set member as a standalone instance
3.The secondary takes time to catch up to the primary
4. All of the mentioned
Answer 41.To affect the sync target for the initial sync, run rs.syn() operation before initial sync
2. If you run rs.syncFrom() during initial sync, MongoDB produces no error messages
3.replSetSyncFrom and rs.syncFrom() provide a permanent override of default behavior
4.All of the Mentioned
Answer 21.The value of the member’s priority setting determines the member’s priority in elections
2.The default value for the priority field is 3
3.The value of priority can be any floating point (i.e. decimal) number between 0 and 500
4.None of the mentioned
Answer 11.High query rates can exhaust the CPU capacity of the server
2.Database systems with small data sets and high throughput applications can challenge the capacity of a single server
3. Smaller data sets exceed the storage capacity of a single machine
4. All of the mentioned
Answer 11.The oplog is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases
2.MongoDB applies database operations on the primary and then records the operations on the primary’s oplog
3. The primary members then copy and apply these operations in an asynchronous process
4.None of the mentioned
Answer 31.To change the size of the oplog, you must perform maintenance on each member of the replica set in turn
2. Always start rolling replica set maintenance with the secondaries, and finish with the maintenance on primary member
3. The oplog exists internally as a capped collection
4.None of the mentioned
Answer 41.Before an election the primary opens all open client connections
2. To block a member from seeking election as primary, assign it a priority of 0
3. Hidden members, delayed members, and arbiters all have priority set to 0
4. All of the mentioned
Answer 11. Scaling by adding capacity do not have limitations.
2. cloud-based providers may only allow users to provision smaller instances
3.There is a practical maximum capability for vertical scaling
4. All of the mentioned
Answer 11. rs.removeRepli()
2.rs.remove()
3.rs.removeset()
4.isMaster
Answer 21.lag
2.delay
3.latency
4. none of the mentioned
Answer 11.strict
2. strong
3.eventual
4.None of the mentioned
Answer 31.availability
2.idempotency
3. scalability
4.Secondary
Answer 21.priority
2.replication
3. Initiate
4.All of the Mentioned
Answer 11.rs.repliconfig()
2.rs.config()
3.rs.reconfig()
4.All of the Mentioned
Answer 31.rs.syncFrom()
2. rs.stepDown()
3.rs.synchrepl()
4.Secondary
Answer 21.db.getReplInfo()
2.db.getReplicationInfo()
3.rs.printReplicationInfo()
4. none of the mentioned
Answer 21.REPLICATING
2. RECOVERING
3.STALE
4.All of the Mentioned
Answer 21.sharding.archiveChunks
2.sharding.archiveMovedChunks
3.shards.archiveMovedChunks
4.rs.syncFrom()
Answer 21.1
2.2
3.3
4.0
Answer 41.chainingAllowed
2.chainingDisAllowed
3.chainingAllow
4.None of the mentioned
Answer 11.mongorestore
2.mongodump
3. bsondump
4.rs.syncFrom()
Answer 21. Vertical
2.Sharding
3.Partition
4.All of the Mentioned
Answer 21. replSetSyncFrom
2.resync
3.applyOps
4.isMaster
Answer 31. rs.printSlaveReplicationInfo()
2.rs.printReplication()
3.rs.help()
4.All of the Mentioned
Answer 31. Horizontal
2.Vertical
3.Partition
4. All of the mentioned
Answer 21. rs.reconfig()
2. rs.remove()
3. rs.stepDown()
4. rs.syncFrom()
Answer 41.replSetReconfig
2.replSetMaintenance
3.replSetStepDown
4.All of the Mentioned
Answer 11.rs.reconfig()
2. rs.slaveOk()
3.rs.stepDown()
4.rs.slave()
Answer 21.replSetReconfig
2.replSetMaintenance
3.replSetStepDown
4.All of the Mentioned
Answer 21. replSetGetStatus
2.replSetFreeze
3.replSetInitiate
4.All of the Mentioned
Answer 11.db.shutdown()
2.db.shutdownServer()
3.db.shutServer()
4.All of the Mentioned
Answer 21.Voting
2. Non-voting
3.Priority
4.All of the Mentioned
Answer 21. rs.printSlaveReplicationInfo()
2.rs.printReplication()
3.rs.help()
4.None of the mentioned
Answer 11. replSetSyncFrom
2.resync
3.applyOps
4. isMaster
Answer 1