EC2 - Elastic Compute Cloud Flashcards

1
Q

What service does EC2 provide?

A

EC2 provides Infrastructure as a Service (IaaS)

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

What does an EC2 Instance include?

A
  • AMI (Operating System)
  • Instance Size (CPU + RAM)
  • Storage
  • Security Groups
  • EC2 User Data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Security Group?

A
  • Security Groups act as a ‘firewall’ for the EC2 instance
  • Control the traffic that is allowed into or out of the EC2 instance (control the inbound & outbound network)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is EC2 User Data?

A

A script launched at the first start of an EC2 instance

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

What is Port 22?

A

Port 22 = SSH (Secure Shell), which is used to log into a Linux instance. Additionally, Port 22 = SFTP (Secure File Transfer Protocol), which uploads files using SSH

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

What is Port 21?

A

Port 21 = FTP (File Transfer Protocol), which uploads files into a file share

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

What is Port 80?

A

Port 80 = HTTP, which is used to access unsecured websites

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

What is Port 443?

A

Port 443 = HTTPS, which is used to access secured websites

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

What does an On-Demand EC2 Instance offer?

A
  • Short workload
  • Predictable pricing: pay for what you use, and pay by the second/hour
  • Has the highest cost
  • No upfront payment and no long-term commitment
  • Ideal for short-term and uninterrupted workloads
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does a Reserved EC2 Instance offer?

A
  • Long workloads (1 & 3 years)
  • Up to 72% cheaper than On-Demand instances
  • Specific instance attributes are reserved (instance type, region, tenancy, OS)
  • Can pay as no upfront, partial upfront, or all upfront (to save the most)
  • Ideal for steady-state applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does a Convertible Reserved EC2 Instance offer?

A
  • Long workloads, but with flexible instances
  • Up to 66% cheaper than On-Demand instances
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What do Savings Plans EC2 Instances offer?

A
  • Commit to an amount of usage (e.g. $10/hour for 1 or 3 years), instead of committing to a specific instance type
  • Up to 72% cheaper than On-Demand instances (but any usage beyond the Savings Plan is billed at On-Demand rate)
  • Locked into a specific instance family & region
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What do Spot Instances offer?

A
  • Short, cheap workloads - up to 90% cheaper than On-Demand instances
  • Less reliable, as instances can be lost at any time if the defined max price is less than the current spot price
  • Useful for workloads that are resilient to failure
  • Not suitable for critical jobs or databases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does a Dedicated Host offer?

A
  • Book an entire physical server, and control instance placement
  • Pay either On-Demand (pay per second), or Reserved (1 or 3 years - no upfront, partial upfront, or all upfront)
  • The most expensive option for AWS EC2 instances
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What do Dedicated Instances offer?

A

Instances run on hardware dedicated to you (no customers share your hardware, but you may share hardware with other instances in the same account)

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

What do Capacity Reservations offer?

A
  • Reserve On-Demand instances in a specific AZ for any duration
  • No time commitment, and no billing discounts (pay On-Demand, even if no instances are running)
  • Ideal for short-term, uninterrupted workloads that need to be in a specific AZ
17
Q

What do Savings Plans EC2 Instances offer?

A
  • Instead of committing to a specific instance type, Savings Plans commit to an amount of usage (e.g. $10/hour for 1 or 3 years)
  • Up to 72% cheaper than On-Demand instances (but any usage beyond the Savings Plan is billed at On-Demand rate)
  • Locked into a specific instance family & region
18
Q

Under the Shared Responsibility Principle for EC2 Instances, what is AWS responsible?

A
  • Infrastructure (global network security)
  • Isolation on physical hosts
  • Replacing faulty hardware
  • Compliance validation
19
Q

Under the Shared Responsibility Principle for EC2 Instances, what is the customer responsible for?

A
  • Security Group 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 the instance