11.) Can a Secret be used in a volumeMounts section?
A) No
B) Yes
C) Only if encoded in JSON
D) Only if stored in a ConfigMap
12.) Which key is mandatory in a ConfigMap YAML definition?
A) version
B) configKey
C) data
D) env
13.) What is the purpose of envFrom in a pod spec?
A) Import volume data
B) Import all environment variables from a ConfigMap or Secret
C) Restart container
D) Define service dependencies
14.) How do you decode a Kubernetes Secret in Linux?
A) echo <value> | decode64
B) echo <value> | openssl
C) echo <value> | base64 –decode
D) kubectl decode
15.) Can you use binary data in Secrets?
A) No
B) Only in ConfigMaps
C) Only in JSON format
D) Yes, using binaryData
16.) What is the recommended way to store database credentials?
A) In the container image
B) In ConfigMaps
C) In Secrets
D) As labels
17.) What command lists all Secrets in a namespace?
A) kubectl get secrets
B) kubectl secrets list
C) kubectl get configmap
D) kubectl list secrets
18.) How do you create a Secret from literal values?
A) kubectl create secret text
B) kubectl create secret generic mysecret –from-literal=key=value
C) kubectl make secret
D) kubectl apply -s secret.yaml
19.) What happens when a Secret is updated while the pod is running?
A) Pod restarts
B) Pod instantly picks up the change
C) Pod won’t see the change unless restarted (for env vars)
D) Node is tainted
20.) Can you reference a Secret in a Deployment spec?
A) No
B) Yes, via env or volume
C) Only in Pods
D) Only in StatefulSets
Related