EC2 architecture and resilience Flashcards
What are EC2 instances?
EC2 instances are virtual machines run on EC2 hosts
What types of hosts are used in EC2?
Shared hosts: every customer is isolated even on the same shared hardware.
Dedicated hosts: pay for the entire hardware, don’t pay for instances.
What level of resilience does EC2 provide?
AZ resilient service. They run within only one AZ system.
Can you access instances in a cross zone way?
You can’t access them cross zone.
What does an EC2 host contain?
- Local hardware such - CPU and memory
- Also have a temporary instance storage (If instance moves hosts, the storage is lost)
- Can use remote storage, Elastic Block Store (EBS)
What is EBS used for in EC2 instances?
- EBS allows you to allocate volumes of persistent storage to instances within the same AZ.
What types of networking exist in EC2?
- 2 types of networking
- Storage networking
- Data networking
When do EC2 instances get ENIs assigned to them?
When the EC2 instances are created and provisioned within a specific subnet.
What is the function of ENIs?
It maps to the physical hardware on the EC2 host.
Can instances have multiple network interfaces?
Yes
Can EC2 instances have multiple interfaces in multiple subnets?
Yes, as long as the subnets are in the same AZ.
An instance runs on a specific host. If you restart the instance…what happens?
The instance stays in the host.
When will an EC2 instance leave the host where it is running?
- The host fails or is taken down by AWS - maintenance
- The instance is stopped and then started, different than restarted.
When an EC2 instance is moved from its host, where is it relocated?
To another host in the same AZ.
What is a migration of an EC2 instances?
It is taking a copy of an instance and moving it to a different AZ.