QuestionQ19

702.1 Application Container Management

Where should containerized applications keep persistent data, such as user-uploaded files or billing information?

Choose two
  • A In files inside the container that are exclusively locked by the application.
  • B In memory with an API to download a serialized dump of the data.
  • C In external systems such as databases or object stores.
  • D In dedicated, well known directory trees within the container.
  • E In a database server which is installed within the application container.
Explanation

Persistent data should be stored outside a container’s ephemeral writable layer, such as in external databases or object stores, and mounted into the application at dedicated, well-known directory paths when filesystem access is needed. Docker documents that container-layer data is removed with the container and that volume or bind mounts persist data independently of the container lifecycle.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!