Bird
0
0

Which of the following is the correct syntax to specify a secret key in an ExternalSecret YAML manifest?

easy📝 Syntax Q3 of 15
Kubernetes - Secrets
Which of the following is the correct syntax to specify a secret key in an ExternalSecret YAML manifest?
Aspec.secretStoreRef.name: my-store
Bspec.data[0].secretKey: password
Cspec.data[0].key: db-password
Dspec.secretKeyRef.name: api-key
Step-by-Step Solution
Solution:
  1. Step 1: Review ExternalSecret data key syntax

    The correct syntax uses spec.data with an array of objects, each having a key field for the external secret key.
  2. Step 2: Validate options

    spec.data[0].key: db-password correctly uses spec.data[0].key: db-password. Other options misuse fields or syntax.
  3. Final Answer:

    spec.data[0].key: db-password -> Option C
  4. Quick Check:

    Secret key specified with spec.data[].key [OK]
Quick Trick: Use spec.data[].key to specify external secret keys [OK]
Common Mistakes:
  • Using secretKeyRef instead of data key
  • Misplacing secretStoreRef fields
  • Incorrect array syntax for data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes