Environment Variables Quiz

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

Quiz covering Sensitive Data

What you'll be asked

  1. Which of the following is considered a security best practice when handling sensitive information like API keys in a development environment?
  2. When deploying a web application to a cloud provider, where is the most secure place to store production-grade secrets like database passwords?
  3. Why is it dangerous to print all environment variables to the logs during an application startup or error event?
  4. If you are using Docker to run your application, why is it discouraged to pass secrets using the --env or -e flag in the 'docker run' command?
  5. In a CI/CD pipeline, how should sensitive environment variables be handled to ensure they are available for the build process without exposing them in the pipeline configuration files?

Answers and explanations come after you submit.