Bird
0
0

Given the command kubectl create secret tls mytlssecret --cert=cert.pem --key=key.pem, what will be the type of the created secret?

medium📝 Command Output Q13 of 15
Kubernetes - Secrets
Given the command kubectl create secret tls mytlssecret --cert=cert.pem --key=key.pem, what will be the type of the created secret?
AOpaque
Bdocker-registry
CTLS
Dgeneric
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the command

    The command uses 'create secret tls' with certificate and key files specified.
  2. Step 2: Match secret type

    Secrets created with 'tls' type store TLS certificates and keys, so the type is TLS.
  3. Final Answer:

    TLS -> Option C
  4. Quick Check:

    kubectl create secret tls = TLS type secret [OK]
Quick Trick: TLS secrets use 'kubectl create secret tls' with cert and key [OK]
Common Mistakes:
  • Assuming TLS secrets are Opaque
  • Confusing generic secret type with TLS
  • Not specifying cert and key files properly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes