🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Node, Express and REST: all 10 questions

Quiz: Node, Express and REST · Question 5 of 10

Why should database credentials be in environment variables?

Why should database credentials be in environment variables?

  1. A.It makes the code faster
  2. B.So secrets aren't stored in the code or pushed to GitHub
  3. C.Express requires it
  4. D.To support JSON
Answer & explanation

Correct answer: So secrets aren't stored in the code or pushed to GitHub

Leaked secrets in repositories are a very common security incident.

Can you get the rest right without peeking?

Take the timed Quiz: Node, Express and REST quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →