
Answer-first summary for fast verification
Answer: Store the credentials in a Kubernetes Secret and then allow the application access via environment variables at run time
Storing the credentials in a Kubernetes Secret and allowing the application access via environment variables at runtime ensures secure usage of secrets without the need for environment-specific code modifications, updating build pipelines, or insecure storage of secrets.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
When deploying an application to a Kubernetes cluster that requires credentials to connect to another service, how can you securely use these credentials across multiple environments with minimal code changes? (Select One)
A
Bundle the secret in a file on your desktop and add as needed
B
Use a Kubernetes secret and setup a KSM to handle the secrets
C
Store the credentials in a Kubernetes Secret and then allow the application access via environment variables at run time
D
Enable the Kubernetes secret API and then setup a KSM to handle the secrets.