🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Inside the container's filesystem
  2. B.In a volume
  3. C.In an environment variable
  4. 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 →