Bird
0
0

What will be the output of this command?

medium📝 Command Output Q5 of 15
Kubernetes - Secrets
What will be the output of this command?
echo -n 'admin123' | base64
A=MjMx4WatRWY
BYWRtaW4xMjM=
Cadmin123
DYWRtaW4xMjM
Step-by-Step Solution
Solution:
  1. Step 1: Base64 encode 'admin123'

    Encoding 'admin123' results in 'YWRtaW4xMjM=' with '=' padding.
  2. Step 2: Compare output with options

    YWRtaW4xMjM= matches the exact Base64 output including padding.
  3. Final Answer:

    YWRtaW4xMjM= -> Option B
  4. Quick Check:

    Base64 encode 'admin123' = 'YWRtaW4xMjM=' [OK]
Quick Trick: Base64 output often ends with '=' padding [OK]
Common Mistakes:
  • Missing padding '=' characters
  • Confusing encoded and original strings
  • Truncating Base64 output

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes