Environment Variables and Secrets Quiz

5 questions Pass: 70% +25 pts

Quiz covering Container Application Hosting

Environment Variables and Secrets Quiz

5 questions | Pass: 70% | Earn 25 points

Questions in this quiz

A preview of the 5 questions covered. Start the quiz above to answer them, check your score, and read the explanations.

  1. 1

    Which of the following is considered a security best practice when handling sensitive information like API keys in containerized applications?

  2. 2

    When using Docker environment variables, what is the primary risk of using the --env-file flag without proper access controls?

  3. 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. 4

    Why might a developer choose to use an .env file during local development versus production deployment?

  5. 5

    If an application requires a secret that must be rotated frequently without restarting the container, which approach is most effective?