Bird
0
0

Given this command:

medium📝 Command Output Q13 of 15
Kubernetes - Secrets
Given this command:
kubectl create secret generic mysecret --from-literal=username=admin --from-literal=password=pass123
What will be the Base64 encoded value of the password key in the Secret?
AcGFzczEyMw==
BcGFzc3dvcmQ=
CcGFzc3dvcmQxMjM=
DcGFzc3dvcmQxMjM0
Step-by-Step Solution
Solution:
  1. Step 1: Identify the literal value for password

    The password literal is pass123.
  2. Step 2: Base64 encode 'pass123'

    Encoding 'pass123' in Base64 results in cGFzczEyMw==.
  3. Final Answer:

    cGFzczEyMw== -> Option A
  4. Quick Check:

    Base64('pass123') = cGFzczEyMw== [OK]
Quick Trick: Encode exact literal value, not similar words [OK]
Common Mistakes:
  • Encoding 'password' instead of 'pass123'
  • Missing padding characters '=='
  • Confusing similar Base64 strings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes