QuizzesSecrets Management — Concept Check
intermediate
microservices

Secrets Management — Concept Check

Questions on Secrets Management. Inject secrets via HashiCorp Vault, AWS Secrets Manager, or Kubernetes Secrets mounted as env variables; never commit credentials to source control.

7 minutes 7 questions Pass at 70%
Time Limit
7 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

7 questions on Secrets Management — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A Kubernetes pod needs to access a database password stored in a Secret. What is the most secure way to inject this Secret into the pod?

    • AStore the password in a config map
    • BInject the Secret as an environment variable
    • CMount the Secret as a volume file
    • DHardcode the password in the application code
  2. 2.A developer is using HashiCorp Vault to manage database credentials. They want to minimize the impact of leaked credentials. What feature should they use?

    • AStatic secrets with long TTL
    • BDynamic secrets with short TTL
    • CEnvironment variable injection
    • DHardcoding credentials in the application
  3. 3.A team uses AWS Secrets Manager to store credentials. What is a key benefit of using IAM roles for service accounts (IRSA) in EKS?

    • AEliminates the need for static AWS credentials
    • BAllows hardcoding of credentials
    • CIncreases the TTL of secrets
    • DEnables secrets to be stored in plain text
  4. 4.A Kubernetes cluster has etcd encryption disabled. What is the risk associated with this configuration?

    • ASecrets are encrypted at rest by default
    • BSecrets can be extracted from etcd backups
    • CRBAC is not enforced
    • DPods cannot access Secrets
  5. 5.A developer is considering using environment variables to inject secrets into a container. What is a potential risk of this approach?

    • AEnvironment variables are encrypted by default
    • BSecrets may be exposed in process listings
    • CEnvironment variables are more secure than volume mounts
    • DSecrets cannot be accessed by the application
  6. 6.In HashiCorp Vault, what is the purpose of the Vault Agent Injector?

    • AHardcode secrets in application code
    • BStore secrets in environment variables
    • CInject secrets into pods as files via annotations
    • DEncrypt secrets at rest by default
  7. 7.Which statement about AWS Secrets Manager is true?

    • ASecrets require hardcoding in application code
    • BSecrets are stored as JSON strings
    • CSecrets are stored as plain text
    • DSecrets cannot be accessed by Spring applications