← Quiz: Secrets and Configuration: all 10 questions
Quiz: Secrets and Configuration · Question 4 of 10
Which file should be committed to Git?
Which file should be committed to Git?
- A.
.envwith the real production password - B.
id_rsa(an SSH private key) - C.
.env.examplewith variable names and fake values - D.A backup of the production database
Answer & explanation
Correct answer: .env.example with variable names and fake values
The example file documents what is needed without exposing any real secret.
Can you get the rest right without peeking?
Take the timed Quiz: Secrets and Configuration quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →