Doubts on Lab - Read Concern and Read Preferences

Hi to everyone,
I’m trying to ask the Read Concern labs, I’ll down two of the third nodes for take the response, but couldn’t see the response.
Some ideas on how to front facing this lab?
Thanks so very much

So you were able to terminate 2 nodes.

Were you able to connect to the third node? If not, then that’s the first thing you have to accomplish.

Once you are connected to the 3rd node, experiment with the different read concern values to see which one allows you to read data. That will be the answer

Hi Steve,
In my case was able to terminate 2 nodes and then was able to connect to third node which was primary earlier and now becomes the secondary as it steps down because both the secondaries have been terminated.

Is db.getMongo().setReadPref(‘primaryPreferred’) should be the command that I should use on my third node to experiment with the different read concern values to see which one allows you to read data by using db.products.find( {} ) by changing the read preference values.

Thanks

Hi Rafeeq_01820,

Yes, this command:

db.getMongo().setReadPref()

can be used to set the read preference in the Mongo shell.

For this lab, you should connect to your third node, try the different read preferences, and see which ones allow you to read data!

Matt