I followed the homework instructions to set up my replica set using a generated keyfile. And I managed to create the required admin user account and I verified the replica set status by running rs.status(). So all good in the mongo shell.
I then run the shell script to get my answer. I can see the output is correct. There are two keys - one is “unauthorizedStatus” which is what server says when the user is not authenticated, and one is “memberStatuses” when the user is authenticated. Both messages are correct as far as I can tell from reading the shell script. The first one gave me the “not authorized” error message while the second one gave me the expected status of each member in the replica set.
But for unknown reason, the grading system just didn’t like my answer and rejected my submit.
My mongo shell version is 3.6.8 and mongod version is 3.6.8. Not sure if the version makes any difference?
Please help. Thanks!