I am really having a bit of a hard time wrapping my mind around how MongoDB uses the configuration file and the shell helper commands when it comes to configuration.
My understanding thus far is: the configuration file is a way of documenting the parameters we need to start the server/topology, and the great advantage they offer is their reusability. The shell helper commands allow us to do the configuration on the fly, however the configuration does not persist in case the db process is restarted.
My question is, where are these configuration stored within mongodb once the server is started, is there a special collection to hold them?
And, When changing the topology using the mongo shell, like in the lecture, I assume we loose all of them if something goes wrong with the server. So, should we edit the config file and restart the mongodb process (to reload them)?