Correct Answer : sh._checkMongos()
Explanation : The sh._checkMongos() method throws an error message if the mongo shell is not connected to a mongos instance.