Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the recommended way to store configuration secrets in a Node.js application?

  1. A Hard-coded in source files
  2. B In environment variables or a secret manager
  3. C In package.json
  4. D In a committed .env file
Answer

In environment variables or a secret manager

Secrets in source control leak through repository history and backups. A .env file may be used locally but must never be committed.

All NodeJS MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as