Amazon Machine Image (AMI) Flashcards

1
Q

What are AMIs?

A

Images of EC2 instances that can launch more EC2 instance.

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

Are AMIs regional, global or AZ based?

A

AMIs are regional with a unique ID.

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

What kind of permissions can you find in an AMI?

A
  • Default only your account can use it.
    • Can be set to be public.
    • Can have specific AWS accounts on the AMI.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a common use of AMIs?

A

Can create an AMI from an existing EC2 instance to capture the current config (baking).

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

Describe the lifecycle of AMIs:

A
  1. Launch: EBS volumes are attached to EC2 devices using block IDs.
  2. Configure: customize the instance from applications or volume sizes.
  3. Create Image or AMI
  4. Launch: When launching an instance, the snapshots are used to create new EBS volumes in the AZ of the EC2 instance and contain the same block device mapping.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What do AMIs contain?

A
  • Permissions: who can use it, is it public or private

- EBS snapshots are created from attached EBS volumes

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

How are Snapshots referenced inside the AMI?

A

using block device mapping.

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

What is a block device mapping?

A

Table of data that links the snapshot IDs that you’ve just created when making that AMI and it has for each one of those snapshots, a device ID that the original volumes had on the EC2 instance.

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

If you create an AMI in a region, can this be used in a different region?

A

No, AMIs are regional.

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

What is AMI baking?

A

creating an AMI from a configuration instance, with packages installed, etc.

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

Can you edit an AMI?

A

An AMI cannot be edited. If you need to update an AMI, launch an instance, make changes, then make new AMI

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

We said that AMIs are regional, what can you do to use an AMI in another region?

A

AMIs can be copied between regions

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

What is the default permission attached to AMIs?

A

Only access to your account.

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

Based on what are AMIs billed?

A

Billing is for the storage capacity for the EBS snapshots the AMI references.

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

Is it recommendable to create AMIs from instances that are running? and why?

A

No, it is recommendable to create an AMI from instances that are stopped, so all the data is written to the EBS volumes.

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