A Cantrill - EC2 Basics & Advanced Flashcards

1
Q

Can you use EBS (Elastic Block Store) in multiple AZs?

A

No. EBS is limited to ONE AZ only

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

What type of storage is EBS?

A

EBS is a persistent data storage type.

EBS backups are called Snapshots which backup to S3.

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

How is EBS billed?

A

EBS is billed on a GB per month basis

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

Instance stores MUST be attached to an EC2 at launch, T or F?

A

True. Instance stores MUST be attached to an EC2 at launch.

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

What type of storage is Instance Store?

A

Ephemeral. If the instance is stopped or moves hosts, the instance datastore is lost.

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

What is the pricing for instance store?

A

It is included in the price of your EC2 instance.

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

What type of backups are EBS Snapshots?

A

Incremental volume copies to S3.

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

what is the difference between restarting an EC2 AND “stopping and starting” an EC2?

A

-Restarting an EC2, the EC2 will stay on its host
-Stopping and starting an EC2, the EC2 will move hosts

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

What kind of a key is used for each EBS volume? Default KMS key or single unique DEK?

A

Each volume uses 1 unique DEK. And these snapshots and future volumes will use the SAME DEK

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

Every EC2 has at least one __?

A

ENI.
All EC2s need at least 1 ENI.

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

All ENIs have what ?

A

MAC Address and a primary IPv4 IP. The IPs are on the ENI, NOT the actual EC2

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

What happens to an IPv4 public IP when the EC2 is Stopped & Started?
What can be done to prevent a public IPv4 address from changing on an EC2?

A

-IPv4 public IPs are dynamic, so when you stop and start the EC2, the Public IP WILL change.
-Assign the EC2 an Elastic IP

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

AMI work only in 1 region (t or f)?

A

AMIs work in only one region. But can be copied into a other regions.

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

What is AMI baking?

A

Creating an AMI from configured AMI plus an application loaded automatically

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

Are AMIs editable?

A

No, once an AMI is created you cannot change it. Need to make a new AMI

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

If an AMI snapshot is copied over to another Region, is it the same AMI ?

A

When an AMI snapshot is copied over to another region, the new AMI is a different AMI. Same data but it is a different ID

17
Q

If a company is moving off regular servers (EC2s) and onto serverless or container architecture (Lambda, Fargate) what should they utilize to save $?

A

EC2 savings plan can be a good tool for a company moving off ec2s

18
Q

What service can be used to automatically recover EC2s that fail status checks ?

A

CloudWatch alarms can monitor the EC2 and automatically recover the instance if it becomes impaired due to an underlying hardware failure or a problem that requires AWS involvement to repair.

19
Q

What is the instance metadata address inside ALL instances?

A

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

20
Q

What kind of use-case suits using IO1 EBS volumes?

A

When Maximum Consistent IOPS is a priority and data is important

21
Q

What is the limit of size for user data in EC2?

A

Data size limit for user data is 16KB

22
Q

What is EC2 instance role?

A

Allow EC2 instances to securely interact with other AWS services without the need for manually managing API keys or credentials

23
Q

What IAM feature allows Lambda to interact with other AWS services?

A

Lambda Execution Roles: Provide permissions for Lambda functions to interact with other AWS services.

24
Q

Where is Parameter Store located? (what service)

A

Parameter Store is located in AWS Systems Manager.

25
Q

What is the advantage of Cluster Placement Groups?

A

Performance. EC2s are always in the same rack, SOMETIMES on the same host.

**One AZ only

Recomended that same type is launched. AND VERY recommended to launch at the same time

26
Q

What is the Advantage of Spread Placement Groups?

A

Resilience, infrastructure isolation. Each instance has its own rack and power source.

Use Case: Small # of critical instances that need to be kept isolated from each other

27
Q

What is the Advantage of Partition Placement Groups?

A

designed for huge scale parallel processing systems.

Topology Awareness. More control than Spread. 7 Partitions per AZ

28
Q

What is the difference between Spread and Partition placement groups?

A
29
Q

If you run a large application which uses 100’s of EC2 instances and it needs exposure to physical location for performance and availability reasons. Which placement group should you use?

A

Partition placement group

30
Q

How can permissions be provided to an application running in EC2 using best practices?

A

Instance Profile and IAM role.

31
Q

How many AZs can be used by a cluster placement group?

A

cluster placement group can utilize ONE AZ only

32
Q

How many instances can be within a spread placement group?

A

7 Instances per AZ

33
Q

What is the cost of each EC2 running on a dedicated host?

A

There is no cost for EC2s on a dedicated host, only the cost of the HOST itself.

34
Q
A