Bird
0
0

If an ExternalSecret references a non-existent secret key in the external store, what is the expected behavior by default?

medium📝 Predict Output Q5 of 15
Kubernetes - Secrets
If an ExternalSecret references a non-existent secret key in the external store, what is the expected behavior by default?
AThe ExternalSecret controller retries until the key appears
BThe Kubernetes Secret is created with an empty value for that key
CThe ExternalSecret resource fails and no Secret is created
DThe ExternalSecret controller ignores the missing key and continues
Step-by-Step Solution
Solution:
  1. Step 1: Understand default missing key handling

    By default, if a key is missing in the external store, the controller creates the Kubernetes Secret with an empty string for that key.
  2. Step 2: Eliminate other options

    Retries or failures depend on configuration; ignoring missing keys is not default behavior.
  3. Final Answer:

    The Kubernetes Secret is created with an empty value for that key -> Option B
  4. Quick Check:

    Missing key results in empty value in Secret [OK]
Quick Trick: Missing keys default to empty values in Secrets [OK]
Common Mistakes:
  • Expecting controller to fail immediately
  • Assuming retries happen automatically
  • Thinking missing keys are ignored silently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes