EC2 Flashcards

1
Q

DIRTMCG - what are the different types of instances?

A
D for Density
I for IOPS
R for RAM
T cheap general purpose (think T2 Micro)
M main choice for general purpose
C for Compute
G for Graphics
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

HVM

A

Hardware Virtual Machine

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

PV

A

Paravirtual

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

One subnet….

A

…equals one availability zone.

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

When editing a security group, the rules apply how quickly?

A

Immediately

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

How are Security Groups stateful?

A

If you allow a specific port inbound, that protocol will automatically be allowed on the outbound.

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

Is termination protection on or off by default?

A

Off. You must turn it on.

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

If a spot instance is terminated by you, who pays for the hour?

A

You do, as you terminated it.

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

If a spot instance is terminated by AWS, who pays for the hour?

A

Nobody - the hour is free.

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

How many IOPS does GP2 (General Purpose SSD) give you?

A

Up to 10,000

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

How many IOPS does IO1 (Provisioned IOPS SSD) give you?

A

More than 10,000

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

What’s the best EC2 Instance Type for NoSQL databases or fast data warehousing?

A

I2, IOPS

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

What’s a good EC2 Instance Type with a lot of storage?

A

D2, Dense Storage

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

C4 and C3 are what?

A

Compute Optimized instance types, best suited for CPU Intesive Apps and DBs

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

When you delete an EBS-backed instance, what happens to the root volume?

A

The default action is for the root volume to be deleted. This can be changed for each instance.

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

How can I encrypt the Root Volume?

A

The root volume cannot be encrypted by default by AWS ; you need to use a third-party tool (eg, Bitlocker) to do this.

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

Where do EBS snapshots live?

A

S3

18
Q

Are snapshots full or incremental?

A

Incremental.

19
Q

Why can’t I share this snapshot?

A

It’s encrypted. You can only share unencrypted snapshots.

20
Q

How do snapshots handle encrypted volumes?

A

Snapshots of encrypted volumes are encrypted automatically. Volumes restored from encrypted snapshots are encrypted automatically.

21
Q

Why can’t I create a snapshot of the root volume?

A

The instance is running. Stop the instance to take the snapshot.

22
Q

What’s another term for Instance Store Volumes?

A

Ephemeral Storage

23
Q

What happens to Instance Store Volumes if the host fails or stops?

A

The data is lost ; instance store volumes can’t be stopped. You can reboot them.

24
Q

What happens to EBS-backed volumes if the host fails or stops?

A

The data is retained.

25
Q

What’s a potential problem with snapshotting a RAID array?

A

The snapshot may be missing cached data, which can be a large issue with RAID.

26
Q

What’s a good way to snapshot a RAID array?

A

Take an application consistent snapshot ; stop the application from writing to disk, and flush caches to disk by 1) freezing the file system, 2) unmounting the RAID array, or 3) shutting down the EC2 instance.

27
Q

I created an AMI in eu-west-1, but I can’t see it in eu-central-1. Why not?

A

AMI’s are regional. You’ll need to copy the AMI using the console, command line, or API.

28
Q

In Cloudwatch, what’s the interval for standard monitoring?

A

5 minutes

29
Q

In Cloudwatch, what’s the interval for detailed monitoring?

A

1 minute

30
Q

What are the main features of Cloudwatch?

A

Dashboards
Alarms
Events
Logs

31
Q

When should you assign a role to an EC2 instance?

A

When creating ; you can only assign the role to an EC2 instance when you are creating it

32
Q

Are roles regional?

A

No ; roles are universal.

33
Q

What’s the IP address for local EC2 metadata?

A

169.254.169.254

34
Q

What’s the curl command to display the instance metadata?

A

curl http://169.254.169.254/latest/meta-data

35
Q

What protocol does EFS use?

A

NFSv4

36
Q

How do you pay for EFS?

A

You pay only for the storage you use. 30c per GB.

37
Q

What resiliency does EFS have?

A

EFS data is stored across multiple AZ’s, but only within the one region.

38
Q

How do you pay for Lambda?

A

You pay only for the time your function runs, per 100ms slot,

39
Q

How can Lambda be used?

A

To respond to events (AWS)

To respond to HTTP or API calls (external)

40
Q

Can I delete a snapshot of an EBS Volume that is used as the root device of a registered AMI?

A

No, you must deregister the AMI before being able to delete the root device.

41
Q

A placement group can be deployed across multiple Availability Zones.

A

False

42
Q

What’s an EC2 placement group?

A

A placement group allows you to define several EC2 instances within their own high-speed, low-latency internal network. It is available within a single subnet and AZ only.