EC2 Flashcards

1
Q

What are the 3 strategies available for Placement Groups?

A
  • Cluster
  • Spread
  • Partition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the Cluster Strategy?

A

It clusters instances into a low latency group in a single AZ - High performance but high risk

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

What is the Spread Strategy?

A

It spreads instances across underlying hardware, with a max of 7 instances per AZ. - For critical apps

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

Whats is the Partition Strategy?

A

Like Spread but relies on different sets of hardware racks in an AZ. Can scale to hundreds of EC2 instances per group and is good for Hadoop etc.

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

What would I use a Cluster Placement Group for?

A
  • Big Data job that needs to complete fast

- App that needs low latency and high network throughout

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

What would I use a Spread Placement Group for?

A
  • App that needs to maximize high availability

- Critical apps where instances need to be separated from each other

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

What would I use a Partition Placement Group for?

A

HDFS, HBase, Cassandra, Kafka

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

What happens if you have an instance that has termination protection enabled but shutdown behavior set to terminate?

A

If the shutdown command is run from the cli, the shutdown behavior will override the protections

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

What does an InstanceLimitExceeded error mean?

A

You have reached the max number of instances allowed per region

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

What is the default max number of instances per region?

A

20

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

What does an InsuficcientInstanceCapacity error mean?

A

That AWS does not have the on-demand capacity in this region right now

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

What are the 4 possible reasons an instance would terminate immediately? (go from pending to terminated)

A
  • You’ve reached your EBS volume limit
  • An EBS Snapshot is corrupt
  • The root EBS volume is encrypted and you dont have permissions to access the KMS key for decryption
  • The instance store backed AMI that you used is missing a required part.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

While SSH’ing into an instance, why would I get an “Unprotected Private Key File” error?

A

If the pem file does not have 400 permissions.

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

While SSH’ing into an instance, why would I get an “Host key not found” error?

A

The incorrect username for the OS was given.

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

What are the 2 possible reasons for a connection timeout while ssh into an instance?

A
  • Security Group is not configured correctly

- CPU load of instance is too high

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

What are the 11 EC2 instance types?

A
F - Field Programmable Gateway
I - IOPS
G - Graphics
H - High Disk Throughput
T - Cheap Genreal Purpose
D - Density
R - RAM
M - Main option for Genral Purpose
C - Compute
P - Graphics (pics)
X - Extreme Memory
17
Q

For Basic Monitoring in Cloudwatch, at what interval are metrics collected?

A

5 minute interval

18
Q

For Detailed Monitoring in Cloudwatch, at what interval are metrics collected?

A

1 minute interval

19
Q

What 4 metrics are included by default?

A
  • CPU
  • Network
  • Disk
  • Status Checks
20
Q

What is the basic resolution for a Custom Metric?

A

1 minute Resolution

21
Q

What is the high resolution for a Custom Metric?

A

Up to 1 second