Bird
0
0

Why does Kubernetes allow creating ConfigMaps from files instead of only from literals?

hard📝 Conceptual Q10 of 15
Kubernetes - ConfigMaps
Why does Kubernetes allow creating ConfigMaps from files instead of only from literals?
ABecause literals are deprecated in Kubernetes
BBecause files can store complex or large configuration data easily
CBecause files are faster to process than literals
DBecause ConfigMaps cannot store literal values
Step-by-Step Solution
Solution:
  1. Step 1: Understand ConfigMap data sources

    ConfigMaps can be created from literals or files. Files allow storing larger or structured data easily.
  2. Step 2: Exclude incorrect reasons

    Literals are not deprecated, and ConfigMaps can store literals. Speed is not the main reason.
  3. Final Answer:

    Because files can store complex or large configuration data easily -> Option B
  4. Quick Check:

    Files = easier large config data [OK]
Quick Trick: Use files for complex or big configs, literals for small values [OK]
Common Mistakes:
  • Thinking literals are deprecated
  • Assuming files are faster to process
  • Believing ConfigMaps can't store literals

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes