EC2 basics Flashcards

1
Q

What level of resilience does EC2 have?

A

Availability Zone Resilient - the instance fails if the AZ fails

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

What cloud service model is EC2?

A

IAAS - infrastructure as a service

The unit of consumption is the instance. The user manages the OS (operating system) and upwards

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

Is EC2 a private or public AWS service?

A

Private by default

Launches into a single VPC

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

What are the states of an EC2 instance?

A

Provisioning - being created

Running - instance is running

Stopped - instance is not running

Terminated - instance is shutdown (not reversible)

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

What are the transitions of the EC2 instance states?

A

Provisioning -> Running

Running -> Stopped

Stopped -> Running (instance restarted)

Stopped -> Terminated

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

What states of the instance are billed?

A

Running:

  • CPU
  • Memory
  • Disk (EBS)
  • Memory

Stopped:
- Disk (EBS) only - storage is still allocated to the instance

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

What is the purpose of EC2?

A
  • Rent virtual machines (EC2)
  • Store data on virtual drives (EBS)
  • Distribute load across machines (ELB)
  • Scale services using an auto-scaling group (ASG)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What config options are available for EC2?

A
  • OS
  • CPU
  • RAM
  • Storage space (EBS & EFS, EC2 Instance Store)
  • Network card (ENI?)
  • Firewall Rules (security group)
  • Bootstrap script (EC2 User Data)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an EC2 User Data Script?

A
  • A script that runs once when the instance is started
  • Automates boot tasks
    • Install updates
    • Install Software
    • download common files from the internet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly