
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
This approach ensures that secrets are managed securely without the need for environment-specific code modifications, insecure storage, or updates to build pipelines.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
When deploying an application to a Kubernetes cluster that requires credentials to connect to another service, how can you ensure these credentials are used securely across multiple environments with minimal code changes?
A
Bundle the secret in a file on your desktop and add as needed
B
Enable the Kubernetes secret API and then 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
Use a Kubernetes secret and setup a KSM to handle the secrets
No comments yet.