Google News
logo
MongoDB - Quiz(MCQ)
________ sets the slaveOk property for the current connection.
A)
rs.slaveOk()
B)
rs.slave()
C)
rs.stepDown()
D)
rs.reconfig()

Correct Answer :   rs.slaveOk()


Explanation : Use readPref() and Mongo.setReadPref() to set read preference.

Advertisement