Compute (EC2) Flashcards

1
Q

Name the 6 EC2 components?

A
  1. AMIs
    (templates for virtual machines (EC2 instances)
  2. EC2 Instance types
    (different hardware config)
  3. EC2 Instance purchasing options
    (On-demand, reserved, spot)
  4. EC2 Tenancy
    (shared / dedicated)
  5. EC2 User data
    (custom data passed at launch)
  6. EC2 Storage options
    (EBS volumes and instance store (ephemeral))
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name 5 EC2 instance types

A

General purpose
Memory optimized
Storage optimized
Compute optimized
Accelerated computing

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

Name 5 EC2 purchasing options

A

On-demand
Reserved
Scheduled
Spot
On-demand capacity reservations

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

What are the two types of EC2 tenancy that exist?

A

Shared
Dedicated

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

What are the 2 EC2 storage options?

A

Ephemeral storage
Elastic Block Storage

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

Name the 2 types of EC2 security?

A

Security Groups
NACLs

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

What do you need to do before you can create an Auto Scaling group?

A

you need to create a launch template with parameters (ie., AMI, ID and instance types)

then you can create an auto scaling group

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

Which is the new way of autoscaling EC2 components

A

Using a launch template is the new way

The old way was launch config

Launch templates use autoscaling instead of instances

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

Name 4 types of autoscaling policies

A

Manual
Dynamic (step and target)
Predictive
Scheduled

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

You create a EBS volume on your EC2 instance to store and manage data.

What should you do next?

A

You should create a file system to organize and manage files and directories on the volume

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

Describe the 4 steps to follow to create an EBS (Elastic Block Store) snapshot between AWS accounts?

A

2 AWS accounts: A is the source account and B is the destination account

  1. A shares EBS snapshot with B (adds B to its snapshot permissions)
  2. B accepts snapshot from A (copies EBS volume)
  3. B creates an EBS volume (contains data from original snapshot)
  4. EBS Volume attached and used by B
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When does EC2 Autoscaling check the health status of the instance?

A

After the grace period ends. The default grace period is 300 seconds (5mins)

Gives instances a chance to stabilze before the Auto Scaling group begins checking their health

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

What does the cooldown period do when Auto Scaling?

A

The cooldown period is the waiting period between scaling activities

This prevents excessive or rapid scaling by allowing instances time to stabilize before further adjustments are made

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

Does AWS have access to the OS of your app?

A

No

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

Who is responsible for patching the system?

A

The customer is responsible for patching the system

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

What is the default number of EC2 instances that you can launch?

A

Default number of instances you can launch is 20

17
Q

What happens if you try to create more EC2 instances than your account limit?

A

If you try to create more EC2 instances than your account limit, instance creation will fail and you will receive the error:

status=start_failed

18
Q

Name the required and optional parameters when creating a launch template

A

Required params:
Instance type

Optional params:
Instance ID
AMI
Key Pair
Security Groups
UserData
IAMRole
etc

19
Q

How would you back up multiple EBS volumes attached to an ec2 instance?

A

You would need to create a multi-volume snapshot (ie., create a snapshot for each of the EBS volumes attached to the ec2 instance)

To do this: choose “Instance” as the Resource Type in the Snapshot navigation pane

20
Q

When would you create a multi-volume snapshot instead of a snapshot?

A

A snapshot and multi-volume snapshot both create backups for EBS volumes

There is no separate action for a multi-volume snap

You just choose if you want to create a snapshot for a single EBS volume or multiple EBS volumes attached to the same EC2 instance

21
Q

Name 2 storage options for EC2 instances?

A

Instance Store (ephemeral)
EBS-Backed

22
Q

What do you pay for an EC2 instance in a hibernation state?

A

EBS Storage charges and Elastic IP address charges

You don’t pay for compute charges because it is in hibernation (not being used)

23
Q

Can Reserved Instance be queued to be purchased at a later date?

A

Yes

Can be queued for regional instance (can be used across multiple availability zones within the same AWS region)

(not zonal reserved instance or instance brought from other sellers)

24
Q

Examples of when u would use scheduled scaling

A

Everyone logs in a 9am so at 8.45 start scaling up