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

  1. A.Volumes make queries faster
  2. B.Without one, the data is lost when the container is removed
  3. C.Docker does not allow databases otherwise
  4. 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 →