← Quiz: Docker and Containers: all 10 questions
Quiz: Docker and Containers · Question 5 of 10
Where should database data live so it survives removing the container?
Where should database data live so it survives removing the container?
- A.Inside the container's filesystem
- B.In a volume
- C.In an environment variable
- D.In the image
Answer & explanation
Correct answer: In a volume
Containers are disposable; volumes persist data outside them.
Can you get the rest right without peeking?
Take the timed Quiz: Docker and Containers quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →