EC2 Flashcards

1
Q

Is it possible to use AWS-CLI on an EC2 instance without storing credentials?

A

Yes, you can attach an IAM role to an EC2 instance to use AWS-CLI without declaring credentials

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

What is the url/endpoint for checking an EC2’s metadata and what command would you run to see the metadata?

A

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

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

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

What are the types of placement groups?

A

Clustered Placement Groups,
Spread Placement Groups,
Partition Placement Groups

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

What is the special attribute for EC2 instances within a clustered placement group?

A

All EC2 instances within a clustered placement group are hosted in a single AZ. (Use this type of group for instances that require low network latency or has high network throughput)

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

What is the special attribute for EC2 instances within a spread placement group?

A

All EC2 instances within a spread placement group are hosted on different underlying hardware. (Use this type of group for instances that need to be on different hardware)

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

What types of instances can you put in placement groups?

A

CPU Optimized, Storage Optimized, Memory Optimized, GPU)

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

What is a launch configuration?

A

A launch configuration is a template configuration of launch settings for EC2 instances.

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

What is an auto-scaling group?

A

An autoscaling group is a group of instances that scale up or down based on scaling policies, it also self heals across multiple subnets (AZs). You must set a launch configuration to auto scaling groups.

You can use ELBs in these groups.

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

What is an application load balancer?

A

An application load balancer is a load balancer that acts at layer 7. You can load balance based on type of requests and route to specific web servers. (HTTP/HTTPS)

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

What is a network load balancer?

A

A network load balancer is a load balancer that acts at layer 4. You can load balance based on networking and TCP. Used for high traffic applications where extreme performance is required.

Can handle millions of requests per second while maintaining low latency.

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

What is a classic load balancer?

A

A classic load balancer acts between layer 4 and 7 although mostly remains at 7. This is the legacy version of an application load balancer.

Sometimes called ELB.

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

What are the two instance states of an EC2 instance inside of an ELB?

A

OutOfService, InService

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

How does an ELB check the health of an instance?

A

You set a ping/path/route for AWS to continually ping to check if it’s healthy. You can set parameters and conditions for if an instance is healthy or not.

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

What does it mean when an ELB DNS name responds with a 504 status?

A

It means that something has went wrong with the application/data layer, whether that be an application error or a database error. You must troubleshoot, figure out the root cause and resolve it.

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

Can a spread placement group span multiple AZs?

A

Yes, a spread placement group can span multiple AZs.

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

What RAID types does AWS not recommend?

A

Any RAID that uses parity (5, 6) because the parity writes consume IOPS

17
Q

What hypervisors are used underneath EC2?

A

Nitro and Xen

18
Q

Individual EC2 instances are provisioned in what? (Region? AZ?)

A

AZ

19
Q

If you have all HDD volumes on an EC2, when should you schedule snapshots/backups?

A

During off times, because the backups and snapshots will consume IOPS during peak hours.

20
Q

Can you move/migrate a reserved instance from one region to another?

A

Nope. Sorry!

21
Q

What types of instances do auto-scaling groups actually use?

A

On-demand and spot type instances are spooled up. You can choose.

22
Q

What auto scaling option configures a unique number of instances that run 24/7?

A

Maintain current level

23
Q

What is the default EC2 instance limit?

A

20, but can be modified depending on business requirements