EC2 Flashcards
What is EC2?
EC2 stands for Elastic Compute Cloud and this is basically secure, resizable compute capacity in the cloud. It is a virtual machine,
What are AMIs and what does it stand for?
AMIs are images provides by AWS that provide the information needed to launch an EC2 instance.
By default, an Amazon provided AMIs, you can create our own custom AMIs or use community/marketplace AMIs, however.
AMI stands for Amazon Machine Image.
What is included with an AMI?
One or more Amazon EBS snapshots, or, for instance-store-backed AMIs, a template for the root volume of the instance (for example, an operating system, an application server, and applications).
Launch permissions that control which AWS accounts can use the AMI to launch instances.
A block device mapping that specifies the volumes to attach to the instance when it’s launched.
Are AMIs region specific?
AMIs are created in one region, and they only work in that specific region. Within that region, however, they can be used to deploy EC2 instances in any availability zone.
Can AMIs be edited?
AMIs cannot be edited. The closest alternative is to use an AMI to launch an instance, update the configuration, and then make a new AMI based on the new configuration.
Can AMIs be copied to other regions?
AMIs can be copied between regions.
Are AMIs free?
AMIs are not free, because costs are generated by the EBS snapshots that the AMI references.
What is User Data?
This data can be used to perform common automated configuration tasks, and/or to run scripts when the instance boots. It can be configured as you are creating a new EC2 instance. Anything in User Data is executed by the instance OS, however, it’s ONLY executed on the initial launch of the instance.
What is the max size of User Data?
User data is limited to 16 KB in size
What is Meta Data?
Meta Data is data about the EC2 instance. Things such as hostname, IP, etc.. It can be viewed from the EC2 instance by curling http://169.254.169.254/latest/user-data
You can add more to the URL path to find specific information.
What is EBS?
Amazon Elastic Block Store (Amazon EBS) provides block level storage volumes for use with EC2 instances. These volumes can be mounted as devices on our instances.
Can EBS be attached to more than one EC2 instance?
EBS is generally attached to a single EC2 instance (or other service) over a storage network
Is EBS AZ-resilient?
Yes.
Can an EBS volume be detached from an EC2 instance and reattached to a different EC2 instance?
An EBS volume can be detached and re-attached between different EC2 instances without loss of data occurring.
Is EBS persistent?
EBS is persistent until a given volume is deleted.
Are there different options for EBS volumes?
Yes. EBS can provision volumes with different physical storage types, different sizes, and different performance profiles.
How is EBS billed?
EBS is billed on a per GB basis (some extra charges may be applied for high performance volumes).
Does EBS replicate data within an AZ?
Yes. EBS replicates data within an AZ, but failure of an AZ still means failure of a volume.
How many storage types are there and what are they?
There are 5.
General Purpose SSD (GP2)
General Purpose SSD (GP3)
Provisioned IOPS SSD (io1/2)
Throughput Optimized HDD (st1)
Cold HDD (sc1)
What is General Purpose SSD (GP2)?
Good for boot volumes, low-latency interactive apps, development, and testing. Currently the default. Credit architecture.
What is General Purpose SSD (GP3)?
3,000 IOPS & 125 MiB/s. Expected to be the default in the future. Good for virtual desktops, medium sizec single instance databases such as MSSQL Server, low-latency interactive apps, development, testing, and boot volumes.
What is Provisioned IOPS SSD (io1/2)?
Good for high performance, latency sensitive workloads, I-O-intensive NoSQL, and relational databases.
What is Throughput Optimized HDD (st1)?
A low-cost HDD designed for frequently accessed, throughput-intensive workloads. Good for Big Data, data warehouses, log processing.
What is Cold HDD (sc1)?
The lowest-cost HDD designed for less frequently accessed workloads. Good for saving money if you have archives or other data that requires fewer scans per day.
Is it possible to backup EBS volumes?
It’s possible to back up the data on our EBS volumes to Amazon S3 using snapshots. Because snapshots are stored in S3, they are region resilient.