CLF-C02 ยท Storage services
Block storage: Amazon EBS vs instance store
Amazon EBS volumes and snapshots versus ephemeral instance store, persistence, and matching each to a workload.
Key points
- Amazon EBS: network block volumes for EC2; a volume lives in one AZ, attaches there, persists independently, can move to another instance.
- EBS snapshots: point-in-time backups, restored to new volumes, copied across AZs, Regions, accounts.
- Instance store: host disk, no extra charge, very fast, temporary.
- Its data survives a reboot; lost on stop, hibernate, terminate or disk failure.
- Use it for caches and scratch data.
Source: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes.html
Practice questions
What is an Amazon EBS snapshot?
- A live mirror volume in another Availability Zone
- A point-in-time backup of an EBS volume
- A shared file system mounted by several instances
- A saved copy of the instance's RAM
Show answer
Answer: B. A point-in-time backup of an EBS volume
A snapshot is a point-in-time backup of an EBS volume that persists independently of the volume and can be restored to new volumes. It is not a live second copy, not a file share, and not instance memory.
Which statements about Amazon EBS volumes are true?
- The volume and the instance must be in the same Availability Zone
- The volume persists independently of the instance's running life
- A volume can be moved from one instance to another
- EBS storage is included in the instance price at no extra charge
- Every volume is automatically replicated to a second Region
Show answer
Answer: A. The volume and the instance must be in the same Availability Zone, B. The volume persists independently of the instance's running life, C. A volume can be moved from one instance to another
An EBS volume must be in the same AZ as the instance it attaches to, it persists independently of the instance, and it can be detached and attached to a different instance. It is not included free with the instance (that is instance store), and it is not automatically replicated to another Region; data is replicated within its AZ.
Rebooting an EC2 instance erases the data on its instance store volumes.
Show answer
Answer: False
False. Instance store data persists through a reboot. It is lost when the instance is stopped, hibernated or terminated, or when the underlying disk fails.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
