Study. uk . com
  1. Home
  2. All questions
  3. Question 103

CKA study material · question 103 of 1000

In configMapGenerator, what is the difference between listing a file under files and under envs?

  1. files base64 encodes the content; envs does not
  2. files embeds the file as one key; envs makes each line its own key
  3. files is namespaced; envs is cluster-scoped
  4. files creates a Secret; envs creates a ConfigMap
Show the answer

Answer: B. files embeds the file as one key; envs makes each line its own key

A file under files becomes the value of a single key, while an env file's lines each become keys.

Source: Declarative Management of Kubernetes Objects Using Kustomize (Kubernetes) — configMapGenerator

Challenge yourself on this topic → Study as cards