Google News
logo
MongoDB - Quiz(MCQ)
_________ re-configures a replica set by applying a new replica set configuration object.
A)
rs.remove()
B)
rs.stepDown()
C)
rs.reconfig()
D)
None of the above

Correct Answer :   rs.reconfig()


Explanation : To reconfigure an existing replica set, first retrieve the current configuration with rs.conf(), modify the configuration document as needed, and then pass the modified document to rs.reconfig().

Advertisement