← Quiz: Docker: all 10 questions
Quiz: Docker · Question 6 of 10
Why should a database container use a volume?
Why should a database container use a volume?
- A.Volumes make queries faster
- B.Without one, the data is lost when the container is removed
- C.Docker does not allow databases otherwise
- D.Volumes encrypt the data
Answer & explanation
Correct answer: Without one, the data is lost when the container is removed
A volume is storage that lives outside the container's lifetime.
Can you get the rest right without peeking?
Take the timed Quiz: Docker quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →