EC2 Flashcards

1
Q

Can I use the same Security Group across different regions?

A

No, security groups are locked for a specific region and VPC

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

What is the port 21 for?

A

FTP, File Transfer Protocol

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

What is the difference between Reserved Instance and Convertible Reserved Instance?

A

In a convertible instance you can change the instance type, instance family, OS, scope and tenancy. You have less discount

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

What’s the most cost efficient way to launch an instance?

A

Spot Instances

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

What type of use case has a C7g instance?

A

Compute optimized

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

What type of use case have R6a and X2gd instances?

A

Memory optimized

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

What type of use case have P4 and G5 instances?

A

Accelerated computing

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

What type of use case have Im4gn and D2 instances?

A

Storage optimized

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

How many Elastic IPs can you have in your account?

A

5

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

Do you pay for Elastic IPs?

A

Only if it’s not attached to any instances

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

What should I do if I want to have very low latency between my instances?

A

Put them in a Cluster placement group

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

Can I use ENI for fail tolerance?

A

Yes, if an instance dies, I can move its ENI to a new instance, and the traffic will start working again

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

Under the hood EC2 Hibernate write the RAM state in a file in the root EBS volume. True or false?

A

True

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

I can use EC2 Hibernate if the root EBS volume in not encrypted. True or false?

A

False

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

Can I attach an EBS volume to multiple instances?

A

Only if the volume type is io1 or io2, and the instances are in the same AZ

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

Can I use HDD as root volume?

A

No, I can only use SSD instances (gp2, gp3, io1 and io2) as root

17
Q

AMIs are locked to a specific region. True or false?

A

True

18
Q

What is faster between Instance Store and EBS volumes?

A

Instance store

19
Q

Can you mount an Elastic File System to multiple instances in multiple AZs?

A

Yes

20
Q

You’re not sure of how much data you need to store. What would you choose between EFS and EBS?

A

EFS because it scales automatically, no need of capacity planning

21
Q

How to reduce the cost for a EFS?

A

Create a Lifecycle Policy that move the files to IA (Infrequent Access) if a file is not accessed for a certain period of time

22
Q

You put a bid into the EC2 spot market. The current spot price is $0.054 and you bid $0.075 for the instance and your request is fulfilled. The on-demand price is $0.09. What rate are you going to pay?

A

$0.054

23
Q

Can a Convertible Reserved Instance change region?

A

No

24
Q

Is CPU utilization a good cost metric for EC2 instance?

A

No. You are not charged for CPU cycles or actual utilization. AWS does not oversubscribe its resources, thus when you are running an EC2 instance, as far as AWS is concerned, it is 100% utilized as they cannot use those resources. Whether your instance is running at 0% CPU or 100% the cost is the same. The rest are all valid cost measurements.

25
Q

What two types of status checks run every minute on a running EC2 Instance?

A

System status checks and Instance status checks

26
Q

Difference between Spread and Partition placement groups?

A

Spread
Every instance is on a different hardware

Partition
Spread instances across logical partitions such that groups if instances in one partition do not share the underlying hardware with instances in another partition. Good for distributed and replicated workloads

27
Q

What’s the maximum Elastic IPs you can have in your account?

A

5

28
Q

What are the differences between the EC2 placement group?

A

There are three placement group:

Cluster: all the instances use the same hardware in a single AZ, useful for applications that need low latency, bad for HA

Spread: All the instances have different hardware in different AZs. Good for HA, every failure is isolated, but is limited to 7 instances per AZ placement group

Partition: Multiple partitions of instances for each AZ. A partition is a group of instances that share the same hardware. A hardware failure will affect multiple instances, but not all of them. Up to 7 partitions per AZ

29
Q

What is EC2 Hibernate?

A

If you hibernate an EC2 instance, the RAM state is preserved while the instance is stopped. When you restart the instance, the boot will also be much faster. To enable it, the EBS volume must be encrypted. An instance cannot be hibernated for more than 60 days

30
Q

What is Elastic Fabric Adapter

A

It can be attached to an EC2 instance to improve its performance, and it also attaches an ENI to it. Useful for high performance computing

31
Q

What’s the url to get the metadata from an EC2 instance?

A

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

32
Q

How many instances per AZ are allowed in a Spread placement group?

A

Max 7 per AZ

33
Q

How can you enable hibernation mode on a running EC2 instance?

A

You need to create a new instance with hibernation enabled