Cloud and Container Basics
Cloud storage is used for three purposes: (1) attaching it to a virtual machine as a disk, creating a file system and storing database data files; (2) mounting it from several servers at the same time and using it as a shared directory; (3) reading and writing a large number of images by key (name) through an HTTP API and growing the capacity without deciding it in advance. Which of the following is the appropriate combination of storage types for (1) to (3)?
- A(1) object storage, (2) block storage, (3) file storage
- B(1) file storage, (2) object storage, (3) block storage
- C(1) block storage, (2) file storage, (3) object storage
Show answer and explanation
Answer: C. (1) block storage, (2) file storage, (3) object storage
Block storage attaches an area of fixed size to a virtual machine as a virtual disk; a file system is created on it, and it suits uses such as databases that perform many small reads and writes quickly. File storage provides a shared file system that several servers can mount at the same time through NFS, SMB or the like. Object storage reads and writes data as whole objects identified by keys through an HTTP API; its capacity can be grown almost without limit, and it suits images, backups and logs. It is not suited to rewriting part of an object, so database data files are not placed in it.
- A. Object storage is not suited to fine-grained rewriting as a file system, and block storage is generally not used as a directory shared by several servers.
- B. Object storage is not suited to a shared directory that is mounted, and block storage is not read and written through an HTTP API.
- C. Correct. Disks are block storage, sharing is file storage, and large amounts of data handled through an API are object storage.