EC2 Flashcards
What are the four pricing types for ec2?
On demand - fixed rate pay as you go
Reserved - capacity reservation at discount
Spot - bidding for resources on aws
Dedicated hosts - bare metal servers for when licensing does not allow you use virtualisation such as on demand.
True or false, will you be charged for terminating a spot instance yourself?
True
Yes or no, will you be charged for a spot instances partial hour of usage if aws terminates this instance for you?
No
True or false, termination protection is turned off by default when creating an ec2 instance?
True
On an ebs backed instance, what is the default action on the root ebs when the instance is terminated?
The root ebs volume will be deleted.
Yes or no, can the root volumes of your default ami’s be encrypted?
Yes
Security groups: all inbound traffic is…
Blocked by default
Security groups: all outbound traffic is…
Allowed
Changes to security groups take effect..
Immediately
How many ec2 instances can be within a security group.
Any number
How many security groups can you attach to an ec2 instance?
Any number.
Security groups are …….. this means ……..
Stateful
That when you add an inbound rule to the sg it also creates a corresponding outbound rule.
You cannot block a specific up address with a security group, you can however with a
Network access control list
What are the five ebs volume types?
General purpose (ssd) Provisioned iops (ssd) Throughput optimized hdd Cold hdd Ebs magnetic
When would you opt for “general purpose ssd” ebs volumes?
When your iops requirement is no more then 16,000 and you want to balance price and performance.
When you opt for “provisioned iops ssd” as your ebs volume choice, what would be the reasons for this?
High performance requirements, mission critical applications like databases and where price does not factor over performance requirements.
When you opt for “throughput optimized hdd” as your ebs volume of choice, why would this be?
Low cost requirements for frequently accessed storage, with iops around 500. Typically for big data and data warehouses which are not mission critical.
When opting for “cold hdd” as your ebs volume of choice, why would this be?
Where you want the lowest cost for hdd volumes for less frequently accessed workloads such as file servers. Max iops around 250.
When opting for the “ebs magnetic” volume choice, why would you do this?
Where workloads are infrequently accessed, the lowest iops requirements of around 40-200.
Name the five EBS volume api names and what they stand for.
Gp2 - general purpose (ssd) Io1 - provisioned iops (ssd) (highest cost) St1 - throughput optimized hdd Sc1- cold hdd (lowest cost) Standard- ebs magnetic
You have deployed an ec2 instance and completed its setup, however you discover that the availability zone that it was set up in is the wrong one, how would you deploy this ec2 instance to the desired availability zone without having to go through the pain of setting up the machine config again?
- Take a snapshot of the root ebs volume.
- Create an image from the snapshot.
- Launch the image into the availability zone that is desired.
You need to move an ec2 instance from one region to another, how is this done?
Take snapshot of root ebs volume.
Create image from snapshot.
Copy image/ami to another region.
Launch ec2 instance from the ami in the region it was copied to into that region.
Be default, if you terminate an ec2 instance with additional ebs volumes, will they be deleted also?
No, all additional ebs volumes are set to persist unless otherwise specified.
When talking about storage volumes, instance store is also known as…
Ephemeral storage.
Yes or no, can an ec2 instance which is backed by an instance store volume be stopped?
No, only terminated.