Server-Based Compute (EC2) Fundamentals Flashcards

1
Q

What is EC2?

A
o	EC2 (Elastic Compute Cloud) is an IaaS (Infrastructure as a Service) product, responsible for providing long-running compute as a service, through instances
o	It is a regional service, so all instances created in a Region will be isolated to that Region
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you connect to an EC2 instance?

A

o Before creating an Instance, you need to create a Key Pair: the Public Part is stored by AWS, the Private Part is downloaded to your machine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the difference between Instance Store Volumes and Elastic Block Store?

A

o Instance Store Volumes can be configured, and they are physically part of the instance, hence no resilience (if the instance fails, the data is lost too). They are not persistent, but are the highest performance store volumes
o Elastic Block Store (EBS) is the other type of storage: they are created outside of the instance, and attached to it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you monitor an EC2 running instance?

A

o Tight link with CloudWatch, for monitoring resources usage

o Data coming at 5’ granularity by default, which can be improved to 1’ at extra cost

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does billing work for Instances and Storage?

A

o You are not billed if an instance is in a pending, stopping, stopped, shutting down or terminated state (excluding reserved instances)
o You are billed for EBS Volumes regardless of instance’s state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the various families of Instance Types?

A

o EC2 Instances are grouped into families, designed for a specific broad type workload: general purpose, compute optimized, memory optimized, storage optimized and accelerated computing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the various sizes of Instances?

A

o Instance sizes include nano, micro, small, medium, large, x.large, 2x.large and larger

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are Snapshots?

A

o Snapshots are point in time backups of an EBS volume, stored in S3
o The initial snapshot is a full copy of the volume, and further snapshots only store data changes since last snapshot
o Snapshots can be used to create new volumes and are a great way to move or copy instances between AZs
o It is best practice to shutdown an instance before creating snapshots
o Snapshots can be copied between regions, shared and automated using Data Lifecycle Management (DLM)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are Security Groups?

A

o Security Groups are software firewalls that can be attached to network interfaces and (by association) products in AWS
o SG have inbound and outbound rules, allowing traffic from or to a source (IP, network, named AWS entity) and protocol
o SG have a hidden implicit/default deny rule but cannot explicitly deny traffic
o SG are stateful (for any traffic allowed in/out, the return traffic is automatically allowed)
o SG can reference AWS resources, other SGs and even themselves
o Every Elastic Network Interface can have a maximum of 5 SG associated with it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Instance Metadata, and what is the HTTP address associated with it?

A

o Instance Metadata is data relating to the instance that can be accessed from within the Instance itself, using a utility capable of accessing HTTP and using the URL http://169.254.169.254/latest/meta-data
o It is a way for scripts and applications running on EC2 to get visibility of data without using API calls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly