EC2 Basics Flashcards

1
Q

What is EC2?

A

Elastic Compute Cloud

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

What is EBS?

A

Elastic Block Store - Like an external HD

Its block storage for Amazon EC2 compute instances - it is similar to hard drives attached to your computers or laptops, but in a virtualized environment.

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

What is ELB? What does it use for?

A

Elastic Load Balancer - Distributing load across machines

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

What is ASG?

A

Scaling the services using an Auto-Scaling Group

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

What is EFS

A

Elastic File System

Provides scalable network file storage for Amazon EC2 cloud computing service users.

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

What is the different between EFS and EBS?

A

AMAZON EBSAMAZON EFS Accessible only via the given EC2 Machine
File System interface
Block Storage
Hardly scalable
Faster than S3 and EFSAccessible via several EC2 machines and AWS services
Web and file system interface
Object storage
Scalable
Faster than S3, slower than EBS Is meant to be EC2 driveGood for applications and shareable workloads

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

What is bootstrapping?

How many time it will run?

A

bootstrapping means launching commands when a machine starts

Can only run once

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

What does EC2 user data is used to automate at boot tasks?

(us, da?!)

A

EC2 user data is used to automate boot tasks such as:

  • 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
9
Q

Who can run the EC2 User Data Script?

A

Only the root user

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

What does the naming convention means?

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
11
Q

What does Security groups act like in EC2?

A

Security groups are acting as a “firewall” on EC2 instances

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

What Security Groups adjust?

(AA IO)

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

To how many EC2 you can attached a security group?

A

Can be attached to multiple instances

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

Where is the security group “lives”?

A

“Lives” “outside” the EC2 – if traffic is blocked the EC2 instance won’t see it

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

I security group, What to remember about SSH?

A

It’s good to maintain one separate security group for SSH access

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

When an application getting “time out, Where is the problam?

A

If your application is not accessible (time out), then it’s a security group issue

17
Q

Where it the problem If your application gives a “connection refused“ error?

A

f your application gives a “connection refused“ error, then it’s an application error or it’s not launched

18
Q

In security groups, What is the default for inbound and outbound?

A

All inbound traffic is blocked by default

All outbound traffic is authorized by default

19
Q

What are EC2 Instances Purchasing Options?

(OD R SP SI DH DI CR)

A
  • On-Demand Instances – short workload, predictable pricing, pay by second
  • Reserved (1 & 3 years)
  • Reserved Instances – long workloads
  • Convertible Reserved Instances – long workloads with flexible instances
  • Savings Plans (1 & 3 years) –commitment to an amount of usage, long workload
  • Spot Instances – short workloads, cheap, can lose instances (less reliable)
  • Dedicated Hosts – book an entire physical server, control instance placement
  • Dedicated Instances – no other customers will share your hardware
  • Capacity Reservations – reserve capacity in a specific AZ for any duration
20
Q

When EC2 On Demand is good?

A

Recommended for short-term and un-interrupted workloads, where
you can’t predict how the application will behave