Generally, using a configuration file to start the mongod is a good practice - so that you don’t have to type the options on the command-line each time when starting the server. While typing the options there can be a typo or can miss an option - there can be many options for a fully configured production system.