Bird
0
0

Given this ExternalSecret YAML snippet, what will be the value of the Kubernetes Secret key 'db-password' after syncing?

medium📝 Predict Output Q4 of 15
Kubernetes - Secrets
Given this ExternalSecret YAML snippet, what will be the value of the Kubernetes Secret key 'db-password' after syncing?
spec:
  secretStoreRef:
    name: vault-store
  data:
  - key: prod/db-password
    name: db-password
AThe value stored at 'prod/db-password' in Vault
BThe literal string 'prod/db-password'
CAn empty string because key is missing
DThe name of the secret store 'vault-store'
Step-by-Step Solution
Solution:
  1. Step 1: Understand ExternalSecret data mapping

    The key field points to the external secret path 'prod/db-password' in Vault, which is fetched and stored in Kubernetes Secret.
  2. Step 2: Determine the stored value

    The Kubernetes Secret key 'db-password' will contain the actual secret value retrieved from Vault at 'prod/db-password'.
  3. Final Answer:

    The value stored at 'prod/db-password' in Vault -> Option A
  4. Quick Check:

    Secret key value = external store value [OK]
Quick Trick: ExternalSecret keys map to external store values [OK]
Common Mistakes:
  • Assuming key stores literal string
  • Expecting empty string if key missing
  • Confusing secret store name with secret value

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes