EC2 Hibernate Flashcards

1
Q

What is the difference between stopping an EC2 Instance and terminating an EC2 instance?

A
  • If we stop the instance, data is kept on the disk (with EBS) and remains on the disk until the EC2 instance is started again.
  • If the instance is terminated, then (by default) the RDV will also be terminated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In order, what are the three things that happen when you start an EC2 instance?

A
  1. The Operating System boots up
  2. The user data script (bootstrap scripts) are run
  3. Applications start (can take some time)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

With EC2 Hibernate, what happens when you start your instance out of hibernation?

A
  • The EBS root volume is restored to its previous state
  • The RAM contents are reloaded
  • The processes that were previously running on the instance are resumed
  • Previously attached data volumes are reattached and the instance retains its instance ID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

With EC2 Hibernate, what happens when you hibernate an instance?

A
  • The OS is told to perform a hibernation (suspend-to-disk)
  • Hibernation saves the contents from the instance memory (RAM) to its EBS root volume and any attached Amazon EBS data volumes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the core benefit of EC2 Hibernate?

A

It is much faster to load up because the OS does not need to reboot becuase the in-memory state (RAM) is preserved.

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

What Instance families are eligible for EC2 Hibernate?

A

C3, C4, C5, M3, M4, M5, R3, R4, R5

{C, M, R} x {3, 4, 5}

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

For what types of use cases is EC2 Hibernate most useful?

A
  • Long-running Processes
  • Services that take a long time to initialize
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the limit on the RAM size of an EC2 instance in order to use EC2 Hibernate?

A

150 GB

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

For what operating systems is EC2 Hibernate available?

A
  • Windows
  • Amazon Linux 2 AMI
  • Ubuntu
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

For how long does EC2 Hibernate allow you to hibernate an instance?

A

up to 60 days

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

For what types of EC2 Instance pricing structures is EC2 Hibernate available?

A

On-Demand Instances and Reserved Instances

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

What is the difference between stopping an EC2 Instance and hibernating it?

A
  • Minor Billing Difference:
    • When hibernating, you get billed while the instance is in the stopping state, but not while it is stopped
    • When stopping, you stop getting billed once the instance is in the stopping state.
  • Contents of Memory (RAM):
    • When hibernating, the memory contents (RAM) is saved to a file on the root device,
    • When stopping, the RAM is erased
How well did you know this?
1
Not at all
2
3
4
5
Perfectly