Question
Configuration file versus command-line startup options: how should each be used?
Answer
Both express equivalent startup settings. Use a reviewed YAML configuration file for managed production state; use command-line options for controlled launches where that state is supplied externally. Applies to self-managed MongoDB only.