nerdexam
CiscoCisco

300-910 · Question #101

300-910 Question #101: Real Exam Question with Answer & Explanation

The correct answer is A: Use a config-map in each environment.. To manage environment-specific configuration data separately from application code in Kubernetes, a developer should use ConfigMaps, deploying a different ConfigMap for each environment (preproduction and production) containing the respective database configurations.

Application Deployment and Operations

Question

A developer is responsible for application configuration to be deployed in the preproduction and production environment Kubernetes cluster. For this configuration, two different databases are used in each of the environments. The configuration data must be separate from the application code. Which approach must the developer take to accomplish this configuration?

Options

  • AUse a config-map in each environment.
  • BUse a Kubernetes label.
  • CImplement a Kubernetes DaemonSet.
  • DUse a properties file.

Explanation

To manage environment-specific configuration data separately from application code in Kubernetes, a developer should use ConfigMaps, deploying a different ConfigMap for each environment (preproduction and production) containing the respective database configurations.

Common mistakes.

  • B. Kubernetes labels are used for organizing and selecting Kubernetes objects, not for storing application configuration data that needs to be injected into pods.
  • C. A Kubernetes DaemonSet ensures that a copy of a pod runs on every (or some) node in a cluster, which is a deployment strategy for cluster-wide services, not a method for managing environment-specific application configuration data.
  • D. Using a properties file directly within the application code or image makes it harder to manage environment-specific configurations without rebuilding or modifying the image, contradicting the requirement to separate configuration data from application code.

Concept tested. Kubernetes ConfigMaps for configuration management

Reference. https://kubernetes.io/docs/concepts/configuration/configmap/

Topics

#Kubernetes#ConfigMaps#Application Configuration#Environment Configuration

Community Discussion

No community discussion yet for this question.

Full 300-910 PracticeBrowse All 300-910 Questions