Bird
0
0

What will be the output of this command if encryption is NOT enabled?

medium📝 Command Output Q4 of 15
Kubernetes - Secrets
What will be the output of this command if encryption is NOT enabled?
kubectl get secret mysecret -o yaml
AThe Secret data will be shown as base64 encoded strings
BThe Secret data will be shown as plain text
CThe command will fail with permission denied
DThe Secret data will be encrypted and unreadable
Step-by-Step Solution
Solution:
  1. Step 1: Understand kubectl get secret output

    kubectl shows Secret data base64 encoded by default, regardless of encryption.
  2. Step 2: Consider encryption effect

    Encryption affects storage in etcd, not kubectl output which decodes data for display.
  3. Final Answer:

    The Secret data will be shown as base64 encoded strings -> Option A
  4. Quick Check:

    kubectl get secret output = base64 encoded data [OK]
Quick Trick: kubectl shows Secrets base64 encoded, not plain text [OK]
Common Mistakes:
  • Expecting plain text output from kubectl
  • Assuming encryption changes kubectl output
  • Thinking command fails without encryption

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes