EC2 Flashcards

1
Q

True/false: EC2 sends instance memory utilization metrics to CloudWatch every five minutes.

A

EC2 doesn’t track instance memory utilization.

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

True/false: An EC2 instance in a private subnet can resolve an “A” resource record for a public hosted zone hosted in Route 53.

A

An EC2 instance in a private subnet still has access to Amazon’s private DNS servers, which can resolve records stored in public hosted zones.

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

You’re using EC2 Auto Scaling and want to implement a scaling policy that adds one extra instance only when the average CPU utilization of each instance exceeds 90 percent. However, you don’t want it to add more than one instance every five minutes.

A

A simple scaling policy changes the group size and then has a cooldown period before doing so again.

Step scaling policies don’t have cooldown periods.

Target tracking policies attempt to keep a metric at a set value.

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

Which instance type will, if left running, continue to incur costs?

A. Spot
B. Standard reserved
C. On‐demand
D. Convertible reserved

A

C. On‐demand instances will continue to run and incur costs.

Reserved instances cost the same whether they’re running or stopped.

Spot instances will be terminated when the spot price exceeds your bid price.

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

What are the common “General Purpose” EC2 instance types?

A

T series (e.g. T2) and M series (e.g. M5)

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

What are the common “Compute Optimized” EC2 instance types?

A

C series (e.g. C5)

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

What are the common “Memory Optimized” EC2 instance types?

A

R series (e.g. R5) and X series (e.g. X1)

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

What are the common “Storage Optimized” EC2 instance types?

A

I series (e.g. I3)

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

What are the common “Accelerated Computing” EC2 instance types?

A

P series (e.g. P3) and G series (e.g. G3)

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

What are the three primary details to define when creating an EC2 instance?

A
  • Geographic Region
  • VPC
  • Tenancy Model
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the common pattern to define VPC for EC2?

A

You can create a new VPC for each project or project stage (e.g. DEV, Staging, PROD).

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

Is VPC free?

A

Adding a simple VPC that doesn’t incorporate a NAT gateway or VPN access is free.

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

How to meet special regulatory requirements of EC2 isolation?

A

Use EC2 Dedicated Host.

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

What are three types of placement groups?

A
  • Cluster
    • pack instances close together to achieve low network latency (used by HPC applications)
  • Partition
    • spread instances across logical partitions such that partitions do not share the underlying hardware (used by Hadoop, Cassandra, and Kafka).
  • Spread
    • places a small group of instances across distinct underlying hardware to reduce correlated failures.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the EBS volume types?

A
  • EBS-Provisioned-IOPS SSD (64,000 IOPS)
  • EBS-General-Purpose SSD (16,000 IOPS)
  • Throughput-optimized HDD (500 IOPS)
  • Cold HDD (250 IOPS)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Instance Store Volume?

A

Instance store volumes are SSDs that are physically attached to the server hosting your instance.

Data is permanently lost if instance is restarted or shut down.

17
Q

Can you modify a launch configuration after creation?

A

No, you cannot. Launch configuration can only be used with Auto Scaling Group.

18
Q

What are the auto scaling policies?

A
  • Simple
  • Step
  • Target Tracking Policy
19
Q

You create an Auto Scaling group with a minimum group size of 3, a maximum group size of 10, and a desired capacity of 5. You then manually terminate two instances in the group. Which of the following will Auto Scaling do?

A

Auto Scaling strives to maintain the number of instances specified in the desired capacity setting. If the desired capacity setting isn’t set, Auto Scaling will attempt to maintain the number of instances specified by the minimum group size. Given a desired capacity value of 5, there should be five healthy instances. If you manually terminate two of them, Auto Scaling will create two new ones to replace them. Auto Scaling will not adjust the desired capacity or minimum group size.

20
Q

Can you modify a launch configuration after creation?

A

No. Launch template can be updated and supports versioning.

21
Q

What are the adjustment types in auto scaling policy?

A
  • ChangeInCapacity
  • ExactCapacity
  • PercentageChangeInCapacity
22
Q

What is the default cooldown period in simple scaling policy?

A

300 seconds, but you can set it as high as you want or as low as 0—effectively disabling it.

23
Q

What is the default warm-up time in step scaling policy?

A

300 seconds

24
Q

What are the features of Application Load Balancer that are not supported by Classic Load Balancer?

A
  • Support targets outside the VPC
  • Support containerized applications
  • Support host and path-based routing
25
Q

When should you use Network Load Balancer?

A
  • For applications that don’t use HTTP or HTTPS for communication
  • For AWS-managed VPN connections