← 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?
- A.It makes the code faster
- B.So secrets aren't stored in the code or pushed to GitHub
- C.Express requires it
- 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 →