EC2 Virtual Machines - storage - load balancing Flashcards

1
Q

What is Amazon EC2?

A

Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud.

  • EC2 is one of the most popular of AWS’ offering
  • EC2 = Elastic Compute Cloud = Infrastructure as a Service
  • It mainly consists in the capability of :
    - Renting virtual machines (EC2)
    - Storing data on virtual drives (EBS)
    - Distributing load across machines (ELB)
    - Scaling the services using an auto-scaling group (ASG)
  • Knowing EC2 is fundamental to understand how the Cloud works
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Bootstrap script

A

Is configure at first launch: EC2 User Data

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

On-demand EC2

A
  • Low cost, no upfront payments(commitments)
  • Use for workloads that cannot be predicted or interrupted
  • Developing applications
  • Workload will not run longer than a year
  • High availability
  • Disaster recovery
  • Coming and staying in resort whenever we like, we pay the full price
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Spot instances EC2

A
  • Cheapest option
  • Takes advantages of unused EC2 instances
  • Not concerned with start or stop times
  • Workload is interrupted
  • the hotel allows people to bid for the empty rooms and the highest bidder keeps the rooms. You can get kicked out at any time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Dedicated Hosts EC2

A
  • Dedicated servers that are reserved to run only your instances
  • You can bring your own server licenses
  • Company compliance requirement during tenancy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Dedicated Host vs Dedicated Instance

A

Dedicated Hosts = Dedicated Server
Dedicated Instances RUNS on dedicated Hosts

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

Reserved Instances EC2

A
  • Specify instance for 1-3 years
  • Can pay upfront
    - Choice to pay or not, if pay upfront get a bigger
    discount
  • Your application requires a capacity application
  • like planning ahead and if we plan to stay for a long time, we may get a good discount.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Savings plan EC2

A
  • Commit compute usage 1-3 years
  • Lower bill across multiple services
  • Flexibility to change compute services, instance types, OSs or regions
  • pay a certain amount per hour for certain period and stay in any room type (e.g., King, Suite, Sea View, …)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Capacity Reservations

A

you book a room for a period with full price even you don’t stay in it

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

Classic EC2 Load Balancing

A
  • EC2 classic network
  • Layer 4/7
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Gateway EC2 Load Balancing

A
  • Use for network logging and monitoring with a 3rd-party virtual appliance
  • Layer 3/4
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Application EC2 Load Balancing

A
  • Flexible application management
  • Layer 7
  • HTTP + HTTPS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Network EC2 Load Balancing

A
  • Extreme performance and static IP address
  • Layer 4
  • TCP + UDP + TLs protocols and static IPs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Connect to a EC2 instance (not linux)

A
  • Management console
  • Instance Connect
  • SSH
  • RDP
  • System Manager
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Connect to a Linux EC2 instance

A
  • SSH
  • AWS Systems Manager Session Manager
  • AWS CLI
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

You have been tasked with improving the availability of your application and curb costs when peak hours subside. What can you implement to accomplish this?

A

Auto Scaling