EC2 Fundamentals Flashcards

(28 cards)

1
Q

AWS Budgets

A

Allow you to define a budget that send you an email if you go over

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

Amazon EC2

A

Elastic Compute Cloud

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

EC2 Config Option

A

Linux, Windows, or MacOS
CPU
RAM
Storage space
Network card
Firewall rules
Bootstrap script

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

EC2 User data script

A

Run only once at the instance first start, allows you to install updates, software, download files

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

For EC2 instances, what will happen when you stop and start an instance?

A

Public IPv4 address will change but private IPv4 will stay the same

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

What does the following naming convention mean?
m5.2xlarge

A

m = instance class
5 = generation
2xlarge - size within the instance class

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

What are General Purpose EC2 instances good for?

A
  • Diversity of workloads eg. web server, code repo
  • Balance between compute, memory, networking
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are Compute Optimised EC2 instances good for?

A
  • Compute intensive tasks eg. batch processing, media transcoding, high performance web servers, HPC, scientific modelling, game servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are Memory Optimised EC2 instances good for?

A
  • Large data sets in memory
  • High performance databases, in memory databases optimised for BI, real time processing of big unstructured data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are Storage Optimised EC2 instances good for?

A
  • High sequential read and write access to large data sets on local storage
  • High frequency online transaction processing, in memory databases, data warehousing applications, distributed file systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Security groups in EC2

A
  • Control how traffic is allowed into or out of EC2 instances
  • Only contain allow rules
  • Rules reference by IP or by security group
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

All inbound traffic is ______ by default and all outbound traffic is ______ by default

A

blocked
authorised

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

Port 22

A

SSH (secure shell) - log into a Linux instance
SFTP (secure file transfer protocol) - upload files using SSH

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

Port 21

A

FTP (file transfer protocol) - upload files into a file share

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

Port 80

A

HTTP - access unsecured websites

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

Port 443

A

HTTPS - access secured websites

17
Q

Port 3389

A

RDP (remote desktop protocol) - log into windows instance

18
Q

What does it mean if you try to connect to your EC2 instance but there is a timeout?

A

Security group issue

19
Q

EC2 Instance connect

A

Allows you to ssh to your EC2 instance from your web browser

20
Q

Should you do aws configure on EC2 instances?

A

No, never put your personal credentials into EC2 instances as others could access them. Instead, attach IAM roles to the EC2 instance for permissions.

21
Q

EC2 Instances Purchasing Options

A
  • On demand instances (short workload, predictable pricing, pay by second)
  • Reserved (1 and 3 years) - long workloads
  • Savings plans (short workloads, cheap, can lose instances)
  • Dedicated hosts - book entire physical server
  • Dedicated instances - no other customer using
  • Capacity reservations
22
Q

EC2 on demand

A
  • Pay for what you use
  • Highest cost but no upfront payment
  • No long-term commitment
  • Good for short-term and un-interrupted workloads where you can’t predict how the application will behave
23
Q

EC2 Reserved Instances

A
  • Reserve instance type, region, tenancy OS
  • Reservation period either 1 year or 3 years
  • Pay no upfront, partial upfront or all upfront
  • Good for steady state applications eg. databases
  • Convertible reserved instance = allows you to change EC2 instance type
24
Q

EC2 Savings Plans

A
  • Get a discount based on long term uses (similar to reserved instances)
  • Commit to a certain type of usage
  • Locked to specific instance family and AWS region
  • Usage beyond EC2 savings plans is billed at on demand price
25
EC2 Spot Instances
- Discount of up to 90% compared to on demand - Can lose instance at any time if your max price is less than the current spot price - Most cost efficient - Good for workloads that are resilient to failure eg. batch jobs, data analysis
26
EC2 Dedicated hosts
- Physical server with EC2 instance capacity for your use - Allows you to address compliance requirements and use exisitng server-bound software licenses
27
EC2 Dedicated instances
- Instances run on hardware that's dedicated to you - May share hardware with other instances in same account - No control over instance placement
28