Kubernetes - SecretsWhich of the following is the correct syntax to specify a secret key in an ExternalSecret YAML manifest?Aspec.secretStoreRef.name: my-storeBspec.data[0].secretKey: passwordCspec.data[0].key: db-passwordDspec.secretKeyRef.name: api-keyCheck Answer
Step-by-Step SolutionSolution:Step 1: Review ExternalSecret data key syntaxThe correct syntax uses spec.data with an array of objects, each having a key field for the external secret key.Step 2: Validate optionsspec.data[0].key: db-password correctly uses spec.data[0].key: db-password. Other options misuse fields or syntax.Final Answer:spec.data[0].key: db-password -> Option CQuick 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 keyMisplacing secretStoreRef fieldsIncorrect array syntax for data
Master "Secrets" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes ConfigMaps - Creating ConfigMaps from files - Quiz 14medium ConfigMaps - Using ConfigMaps as environment variables - Quiz 12easy Health Checks and Probes - Probe timing parameters (initialDelay, period, timeout) - Quiz 1easy Health Checks and Probes - Readiness probe concept - Quiz 4medium Networking - DNS in Kubernetes (CoreDNS) - Quiz 7medium Persistent Storage - Why persistent storage matters in Kubernetes - Quiz 3easy Resource Management - Quality of Service classes (Guaranteed, Burstable, BestEffort) - Quiz 9hard Scheduling - DaemonSets for per-node workloads - Quiz 8hard Scheduling - Node selectors for simple scheduling - Quiz 10hard Secrets - Secrets are not encrypted by default - Quiz 13medium