Automation, Orchestration, and Scripting
A team deploys an application to a Kubernetes cluster. The application needs a database password at runtime, and the password must be stored as its own object instead of being written into the pod specification. Which Kubernetes object is intended for this purpose?
Show the answer
Correct answerC. Secret
A Secret holds sensitive data such as passwords and tokens, and pods can consume it as environment variables or mounted files. A ConfigMap is tempting, but it is meant for non-confidential configuration and gives no special handling to sensitive values.