Bird
0
0

If you run the command:

medium📝 Command Output Q5 of 15
Kubernetes - ConfigMaps
If you run the command:
kubectl create configmap test-config --from-literal=app=web --from-literal=version=1.0

What will be the result of kubectl describe configmap test-config?
AName: test-config Data ==== app: web version: 1.0
BName: test-config Data ==== app=web version=1.0
CName: test-config Data ==== app: web version: 1.0
DError: ConfigMap not found
Step-by-Step Solution
Solution:
  1. Step 1: Understand describe output format

    The describe command shows keys and values separated by colon and newline.
  2. Step 2: Match output format

    Name: test-config Data ==== app: web version: 1.0 correctly shows keys and values each on separate lines with colon separator.
  3. Final Answer:

    Name: test-config Data ==== app: web version: 1.0 -> Option A
  4. Quick Check:

    Describe shows key: value pairs line by line [OK]
Quick Trick: Describe shows key: value pairs, not key=value [OK]
Common Mistakes:
  • Using equal signs instead of colons
  • Putting all data on one line
  • Expecting error for existing ConfigMap

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes