Check out the solution in the video MongoDB: How To Create A Configuration File. We look at creating a .conf file and in later versions of MongoDB, we can use a YAML file for configuration. We want to make sure that the configuration file uses the correct pointers, otherwise it may not point to the correct location..
Check out the highest-rated Automating ETL course on Udemy, if you're interested in data.
Remember that developers will sometimes use configuration files for everything without considering anything regarding other contexts. Configuration files add complexity, but they may be required. Keep this in mind, as anytime we set up configurations - especially outside an environment or using other tools - we set into motion more complexity for our development.