Bird
0
0

Given a file app.properties with content key=value, what will be the output of kubectl create configmap app-config --from-file=app.properties?

medium📝 Command Output Q4 of 15
Kubernetes - ConfigMaps
Given a file app.properties with content key=value, what will be the output of kubectl create configmap app-config --from-file=app.properties?
AError: file not found
BNo output, command hangs
CConfigMap "app.properties" created
DConfigMap "app-config" created
Step-by-Step Solution
Solution:
  1. Step 1: Understand command behavior

    The command creates a ConfigMap named app-config using the file content.
  2. Step 2: Expected output

    On success, Kubernetes prints: ConfigMap "app-config" created.
  3. Final Answer:

    ConfigMap "app-config" created -> Option D
  4. Quick Check:

    Command output = Success message [OK]
Quick Trick: Success message confirms ConfigMap creation [OK]
Common Mistakes:
  • Expecting file name as ConfigMap name
  • Assuming error without checking file existence
  • Thinking command produces no output

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes