Section 5a: EC2 Flashcards

1
Q

EC2 stands for ___ and is what type of cloud computing?

A

Elastic Compute Cloud. Infrastructure as a Service.

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

EC2 User data script allows you to

A

bootstrap your EC2 instance

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

Bootstrapping means

A

launching commands when a machine starts

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

The 4 major types of EC2 Instances are

A

General Purpose, Compute Optimized, Memory Optimized, Storage Optimized,

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

General Purpose EC2 instances are useful for

A

a diversity of workloads such as web servers or code repositories

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

Compute Optimized EC2 instances are useful for

A

compute-intensive tasks that require high performance
processors

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

Memory Optimized EC2 instances are useful for

A

workloads that process large data sets in memory

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

Storage Optimized EC2 instances are useful for

A

storage-intensive tasks that require high, sequential read and write
access to large data sets on local storage

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

What do Security Groups control?

A

They control how traffic is allowed into or out of our EC2 Instances & are the fundamental of network security in AWS.

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

Security Groups are

A

“firewalls” on EC2 instances

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

Security Groups regulate these 4 things

A
  • Access to Ports
  • Authorised IP ranges – IPv4 and IPv6
  • Control of inbound network (from other to the instance)
  • Control of outbound network (from the instance to other)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can SGs be attached to one or multiple instances?

A

Multiple

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

Can SGs be used in any region or are they confined to one region?

A

Confined to the region they were created in as VPCs

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

Do SGs live “within” or “Outside” the EC2 instance?

A

Outside. EC2 instances can be blocked from “seeing” SGs.

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

All outbound traffic is ____ and all inbound traffic is ___ by default.

A

All outbound traffic is authorized and all inbound traffic is blocked by default.

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

Port 22

A

SSH (for linux)
and
SFTP (Secure File Transfer Protocol) – upload files using SSH

17
Q

Port 21

A

FTP (File Transfer Protocol) – upload files into a file share

18
Q

Port 80

A

HTTP – access unsecured websites

19
Q

Port 443

A

HTTPS – access secured websites

20
Q

Port 3389

A

RDP (Remote Desktop Protocol) – log into a Windows instance

21
Q

What are the 7 EC2 Instance Purchasing Options?

A
  • On-Demand Instances
  • Reserved (1 & 3 years)
  • Savings Plans (1 & 3 years)
  • Spot Instances
  • Dedicated Hosts
  • Dedicated Instances
  • Capacity Reservations
22
Q

On-Demand Instances

A

short workload, predictable pricing, pay by second, highest cost. For short-term and uninterrupted workloads

23
Q

Reserved (1 & 3 years)

A
  • Reserved Instances – long workloads. Recommended for steady-state usage applications
  • Convertible Reserved Instances – long workloads with flexible instances
24
Q

Savings Plans (1 & 3 years)

A

commitment to an amount of usage, long workload. Locked to a specific instance family & AWS region

25
Dedicated Hosts
book an entire physical server, control instance placement. *Allows you address compliance requirements and use your existing server- bound software licenses. *Can be on-demand or Reserved. *Useful for software that have complicated licensing model *Also useful for companies that have strong regulatory/compliance needs
26
Dedicated Instances
no other customers will share your hardware * Instances run on hardware that’s dedicated to you * May share hardware with other instances in same account * No control over instance placement
27
Capacity Reservations
reserve capacity in a specific AZ for any duration *charged at On-Demand rate whether you run instances or not * Suitable for short-term, uninterrupted workloads that needs to be in a specific AZ
28
Spot Instances
short workloads, cheap, can lose instances (less reliable). The MOST cost-efficient instances in AWS. Not suitable for critical jobs or databases
29
For EC2, AWS is responsible for
* Infrastructure (global network security) * Isolation on physical hosts * Replacing faulty hardware * Compliance validation
30
For EC2, the customer is responsible for
* Security Groups rules * Operating-system patches and updates * Software and utilities installed on the EC2 instance * IAM Roles assigned to EC2 & IAM user access management * Data security on your instance