Docker and CI/CD · Junior · Question 56 of 75
Why keep configuration such as database URLs in environment variables?
- 1Code can't read values from config files
- 2Environment variables are encrypted by the OS
- ✓Correct answer: The same build can then run in every environment
Explanation
Twelve-factor apps separate config from code, so one artifact is promoted from staging to production with different settings.