EC2 Flashcards
What is the difference between a dedicated instance and a dedicated host?
A dedicated host allows for placement control, visibility of sockets and cores. They are available for a 3 year period and are used for bring your own license, for software that does not support multi-tenanted licensing, or compliance.
A dedicated instance is a physical server with automatic instance placement only. It may share hardware with other instances in the account
When would you use a spot instance?
Batch jobs, big data workloads which are resilient to failure and have flexible start and stop times. Not to be used for critical applications
How many minutes of warning do you get if a spot instance is being reclaimed?
2 minutes
Can AMI’s be shared between AWS accounts?
Yes. You can give another account access to you AMI’s
What happens to an instances EBS volume when you create an AMI?
A snapshot is taken of each EBS volume attached to the instance.
What are the 3 types of placement groups?
Cluster: Clusters instances in a single AZ- low latency
Spread: Spreads instances across underlying hardware - limited to 7 instances/group/AZ
Partitioned: Spreads instances across partitions - different sets of racks in the same AZ
What acts as an instance level firewall for an EC2 instance?
A security group acts as an instance level firewall
With respect to an Ec2 instance volume:
Can you set termination protection to prevent accidental shutdown of the EC2 instance (protecting the instance state) .
And do you pay for storage on the instance volume?
No. Termination policy will not work as instance store data is dependent on the physical host. Storage on an instance store does not incur any costs over that of the EC2 instance.
Which instance state allows you to attach an Elastic Network Interface?
The Stopped state
How many EC2 instance can you have per subnet
There is a soft limit of 20 per region, but you can have as many as there are IP’s allocated to the CIDR minus 5 (for the AWS reserved IP’s)
Can you change an instance type when an instance is still running? If so, what happens to the instances EIP in this case?
No. The instance must be stopped. When the instance type is changed nothing happens to the EIP.
What is a spread placement group, and how many instances can you have per group?
Instances are spread across multiple racks in one or more AZ’s so all instances are on different tin. Highly redundant and is used where one failure in one instance must be isolated from the others. There is a limit of 7 instance per AZ per placement group.
For a dedicated instance, do other customers share the hardware?
No.
What is the timeframe that you can reserve an Ec2 instance for?
1 or 3 years
What is a burstable instance?
T2/T3 instances are burstable. This means that there can be bursts of CPU activity beyond the provisioned types for processing spikes in load. Bursts are based on the number of credits that accrue hourly. If the credits become exhausted then we will get poor performance. If the instance is consistently low on burst credits, it will need to have its specs upped.
There are two classes of burstable instances (as opposed to instance types). What are they?
There are limited and unlimited burstable classes. Be careful with unlimited as these can be very costly.
Can you copy an AMI that has been shared that has a billing product code associated with it?
No. You need to create an instance from the AMI and then create an AMI from that instance.
Which of the following EC2 instance states are you billed for: Running Stopping to Hibernate Pending Stopping to Stop
Running
Stopping to Hibernate
What is a partitioned placement group, can it be multi AZ and what is the usecase?
A partitioned group operates WITHIN an AZ. Instances are partitioned over differing racks WITHIN the AZ. If the rack fails, then all instances on that rack fail. You can only have 7 partitions per AZ. Use for cassandra, kafka, HDFS and HBASE.
What happens to the ownership of a shared AMI?
Nothing. Sharing the AMI does not impact the ownership. The account that created the AMI still owns it.