Environment Variables and Secrets Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Container Application Hosting

What you'll be asked

  1. Which of the following is considered a security best practice when handling sensitive information like API keys in containerized applications?
  2. When using Docker environment variables, what is the primary risk of using the --env-file flag without proper access controls?
  3. In a Kubernetes environment, what is the recommended way to inject a secret into a container so that it is not stored in the pod configuration file?
  4. Why might a developer choose to use an .env file during local development versus production deployment?
  5. If an application requires a secret that must be rotated frequently without restarting the container, which approach is most effective?

Answers and explanations come after you submit.