← Quiz: Secrets and Configuration: all 10 questions
Quiz: Secrets and Configuration · Question 1 of 10
According to the Twelve-Factor App idea, where should configuration like the database URL live?
According to the Twelve-Factor App idea, where should configuration like the database URL live?
- A.Hard-coded in the source code
- B.In the environment, so the same build runs everywhere with different settings
- C.In a comment at the top of main.py
- D.In the Docker image name
Answer & explanation
Correct answer: In the environment, so the same build runs everywhere with different settings
Config in the environment lets one build run in dev, staging and production.
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 →