Elastic Compute Cloud Flashcards

1
Q

What does EC2 stand for

A

Elastic Compute Cloud

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

What does EC2 mainly 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

What does bootstrapping mean

A

launching commands when a machine starts , runs only once on initial start

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

What kind of boot tasks is EC2 user data used to automate

A

installing updates
installing software
Downloading common files from the internet
Anything you can think of

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

Describe the EC2 naming convention

                         m5.2xlarge
A

m: instance class
5: generation (AWS improves them over time)
2xlarge: size within the instance class

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

What is a security group

A

acts as a virtual firewall for your EC2 instances to control inbound and outbound traffic

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

How do security groups work

A

By controlling how traffic is allowed into or out of our EC2 instances

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

What is one thing security groups contain

A

allow rules

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

What do security groups regulate

A

Access to Ports
Authorized Ip ranges - IPv4 and IPv6
Control of inbound network (from other to the instance
Control of outbounf network (from the instance to other)

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

How many instances can a security group be attached to

A

multiple instances

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

How many regions can one security group be on at one time

A

Only on region at a time with a VPC combo

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

Does a security group live inside the EC2?

A

no it lives outside the EC2 - if traffic is blocked the EC2 instance wont see it

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

Should you use the same security group for EC2 and SSH access

A

No its best to have separate security groups

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

If your app is not accessible (time out ) what kind of issue is this?

A

security group issue

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

If your app gives a connection refuse error what type of issue is this

A

An app error or its not launched

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

By default how is inbound traffic setup in an security group

A

Blocked by default

17
Q

By default how are all outbound traffic configured

A

Authorized by default

18
Q

What are the three ways you can connect to an EC2 instance

A

SSH, Putty , EC2 Instance Connect

19
Q

Never enter your access key / secret access key into an EC2 instance

A

Never enter your access key / secret access key into an EC2 instance

20
Q

Use IAM roles to create password credentials to an EC2 instance

A

Very true

21
Q

Describe EC2 On-Demand instances

A

short workload, predictable pricing

22
Q

What is the minimum you can have an EC2 instance reserved for

A

1 year

23
Q

What is considered a long workload in EC2 instances

A

Reserved instances

24
Q

What is a Convertible Reserved instance

A

Long workloads with flexible instances

25
Q

What is an Scheduled Reserved Instances

A

Instances scheduled for a certain time and date

26
Q

What is a sport instance

A

short workloads, cheap, can lose instances (less reliable)

27
Q

What is a dedicated host

A

Book an entire physical server , control instance placement

28
Q

Describe EC2 on-demand

A

Pay for what you use
Has the highest cost but no upfront payment
No long-term contract
Recommended for short-term and un-interrupted workloads, where you cant predict how the application will behave

29
Q

Describe EC2 Reserved Instances

A

Up to 75% discount compared to On-demand
Reservation period: 1 year = + discount | 3 years = +++ discount
Reserve a specific instance type
Recommended for steady-state usage apps (think database)

30
Q

Describe Convertible Reserved Instance

A

Can change the EC2 instance type

Up to 54% discount

31
Q

Described Reserved Instances

A

Launch within time widow you reserve
When you require a fraction of day/ week / month
Still commitment over 1 to 3 years

32
Q

Describe Spot instances

A

Can get a discount of up to 90% compared to On-demand
instances that you can lose at any point of time if your max price is less than the current spot price
The Most cost-effiecient instances in AWS

33
Q

Describe Spot Instances useful cases

A
Batch jobs
Data analysis
Image processing 
Any distributed workloads 
Workloads with a flexible start and end time
34
Q

What are Spot instances not useful for

A

Critical jobs or Databases

35
Q

What is an EC2 Dedicated Hosts

A

a physical server fully dedicated for your use
Allocated for your account for a 3-year period reservation
More expensive
Useful for software that have a complicated licensing model (BYOL)
Or for companies that have strong regulatory or compliance needs

36
Q

Describe EC2 Dedicated Instances

A

Instances running on hardware thats dedicated to you
May share hardware with other instances in same account
No control over instance placement (can move hardware after Stop/Start)

37
Q

What is Amazon Responsible for in EC2

A

Infrastructure
Isolation on physical hosts
Replacing faulty hardware
Compliance validation

38
Q

What are you responible for in the EC2

A

Security Groups rules
Operating-system patches and updates
Software and utilities installed on the EC2 instance
IAM Roles assigned to EC2 and IAM user access management
Data security on your instance