Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 4
Applications sometimes store configuration as constants in the code, which is a violation of the strict separation of configuration from code.
Where should application configuration be stored?
Answer options
- A. environment variables
- B. YAML files
- C. Python libraries
- D. Dockerfiles
- E. INI files
Correct answer: A
Explanation
The correct answer is A, as environment variables provide a secure and flexible way to manage configuration outside of the application code. Other options like YAML files, Python libraries, Dockerfiles, and INI files can be used for configuration, but they do not offer the same level of separation and security as environment variables.