Advanced EC2 Flashcards

1
Q

EC2 User Data

A

anything in the user Data is executed by the instance OS

but Only on Lunch

EC2 doesn’t interpret the OS needs to understand the User data

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

Adress for EC2 User data

A

http://169.254.169.254/Latest/user-data

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

CFN-INIT

A

helper script - installed on EC2 OS

simple configuration management system

procedural(User Data) vs Desired State(cfn-init)

it can control what packages gets installed, Groups, user, files commands and services

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

What makes CFN-INIT so powerful ?

A

can be used to rerun scripts through metadata and cloud formation making it more reactive than if you were to bootstrap through just EC2 user data

and it works with stack updates

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

creationPolicy and signals

A

by default cloud formation doesn’t know if the instance bootstrapping data fails

creating a creationPolicy with a resouceSignal enables cloud formation to wait for a signal from the instance itself before it moves to create complete

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

EC2 Instance Roles

A

How EC2 instances get permissions

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

How is an instance role attached to an EC2 instance ?

A

when you create an instance role in the UI a Instance Profile gets created of the same name it’s that profile that gets attached to an instance then temp credentials are delivered via meta-data

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

System Manager Parameter Store

A

storage for configuration and secrets

string, stringlist and secureString

Hierarchies and versioning

store plaintext and cipher (through KMS permission need to be added)

Public parameters - latest AMIs per region

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

What is CloudWatch used for ?

A

Metrics

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

what is Cloud Watch Logs user for ?

A

logging

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

If you want to captured data inside an instance which service would you user cloudWatch or CloudWatch logs ?

A

CloudWatch Logs but neither can natively capture data inside an instance you have to install CloudWatch agent on an EC2 instance to do that

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

Placement Groups : Cluster

A

Pack instance close together

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

Placement Group: Spread

A

Keep instances separated

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

Placement Groups: Partition

A

groups of instance spread apart

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

What can impact the performance of an Clust Placement groups ?

A

can span VPC peers - but impacts performance

us the same type of instance (not mandatory)

Launch at the same time(not mandatory … very recommended)

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

Draw backs to a cluster placement group?

A

can’t span AZs - one AZ only locked when launching first instance

requires a support instance type

17
Q

What are the benefits of a Cluster placement group ?

A

10GBps p/ stream vs 5gbps normally

all members have a direct connection to each other

same Rack and sometime same host

18
Q

Spread placement group benefits

A

provides infrastructure Isolation

each instance runs from a different rack

each rack has it’s own networking and power source

19
Q

Drawback of a spread placement group ?

A

7 instances per Az(hard limit )

Not supported for dedicated instances or host

20
Q

Cluster placement Group use cases

A

high performance, fast speed and low latency

21
Q

Spread Placement Group

A

small number of critical instances that need to be kept separate from each other

22
Q

Partition Placement Groups Drawbacks

A

7 partitions per Az

23
Q

Use case for a Partition Placement Groups ?

A

contain the impact of a failure to a part of an application

24
Q

Benefits of a partition placement Group ?

A

greate for topology(application with it’s own networks or nodes) aware applications like HFFS,HBase and Cassandra

25
Q

Dedicated Hosts

A

Host dedicated to you, you pay for the host no instance charge

26
Q

Drawback of dedicated host

A

older version of dedicated host the instance family has to has to be specified when making host new host instance families don’t have to be specified

27
Q

Payment types for Decificate Host ?

A

on-demand and reserved options (1yr or 3 yrs )

28
Q

Benefits of dedicated Host

A

Host hardware has physical sockets and cores

29
Q

EBS Optimized

A

dedicated bandwidth for storage networking - separate from data networking.

generally enabled and comes built in for all modern instances

older instances enabling cost extra