Implementing DevOps Solutions and Practices Using Cisco Platforms (DEVOPS) — Question 106
A development team uses Kubernetes for application development. Any changes on ConfigMap are performed manually for each development, test, and production environment. The edits are performed to deploy applications. This approach causes inconsistent deployments across all environments.
Which practice improves the consistency of the deployments?
Answer options
- A. Implement environment variables within the ConfigMaps and store the variable definitions separately from the master branch where the ConfigMaps are stored
- B. Generate the ConfigMaps specific to the environment by using a templating language such as Jinja2 and store the ConfigMaps in unique branches of a repository
- C. In the master branch where the ConfigMaps are stored, create a branch for each environment that contains an environment-specific ConfigMap.
- D. Create a unique repository for each environment that contains ConfigMaps for that environment to ensure that each environment can be deployed independently
Correct answer: A
Explanation
Option A is correct because using environment variables in ConfigMaps allows for consistent configuration management across different environments while keeping the core ConfigMap unchanged. The other options introduce additional complexity or separate configurations, which can lead to further inconsistencies instead of resolving the issue.