Complete the code to check the current primary in a MongoDB replica set.
rs.isMaster().[1]The primary field in rs.isMaster() output shows the current primary node.
Complete the command to force a step down of the current primary in MongoDB.
rs.[1](60)
The stepDown() command forces the primary to step down for the specified seconds.
Fix the error in the command to check replica set status.
rs.[1]()The correct command to check replica set status is rs.status().
Fill both blanks to create a MongoDB query that reads from a secondary node with a max staleness of 90 seconds.
db.getMongo().setReadPref('[1]', [2])
To read from a secondary with a max staleness of 90 seconds, use read preference 'secondary' and set maxStalenessSeconds to 90.
Fill all three blanks to configure a replica set member as an arbiter with priority 0 and votes 1.
{ _id: 2, host: '[1]', arbiterOnly: [2], priority: [3] }An arbiter member has arbiterOnly: true, priority: 0, and a host address.