EC2 Basics Flashcards

1
Q

Amazon EC2

A

Elastic Compute Cloud

This is the way to do Infrastructure as a Service

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

What does EC2 consist of?

A
  • Renting virtual machines (EC2)
  • Storing data on virtual drives (EBS)
  • Distributing load across machines (ELB)
  • Scaling the services using an auto-scaling group (ASG)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

EC2 sizing & configuration options

A
  • Operating System: Linux, Windows or Mac

How much of the following you want:
- Compute power & cores (CPU)

  • Random-access memory (RAM)
  • Storage space:
    Network-attached (EBS & EFS)
    Hardware (EC2 Instance Store)
  • Network card: speed of the card, Public IP address
  • Firewall rules: security group
  • Bootstrap script (configure at first launch): EC2 User Data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Bootstrapping

A

Launching commands when a machine starts

That script only run once at the instance first start

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

EC2 user data is used to automate boot tasks such as

A
  • Installing updates
  • Installing software
  • Downloading common files from the internet
  • Anything you can think of

The more you add into the user data script the more the instance has to do at boot time

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

Does the EC2 User Data Script runs with the root user?

A

Yes, any command you have will have the sudo rights

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

EC2 instance types

A

Instance | vCPU | Mem | Stge | Network Perf | EBS
t2.micro | 1 | 1 | EBS-Only| Low to Mod |

t2.xlarge | 4 | 16 | EBS-Only| Moderate |

c5d.4xlarge |16|32|1x400 NVMe SSD|Up to 10 Gb
| 4,750

r5.16xlarge | 64 | 512 | EBS-Only| 20 Gb | 13,600

m5.8xlarge | 32 | 128 | EBS-Only| 10 Gb | 6,800

** t2.micro is part of the AWS free tier (up to 750 hours per month) **

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