IAM, Route 53 & EC2 Flashcards

1
Q

IAM identities?

A

IAM user, groups and roles

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

IAM working of policies ?

A

Policies attached to role or directly to user (inline policy). Role can be applied to a user or group of user or resource.

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

Types of policies ?

A

Managed policies (orange box), customer managed (editable) or inline

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

IAM policy components

A

Version, Statement (container for policy element), Sid (optional serial id), Effect (allow or deny), Principal (account, user or role), Action (list of actions), Resource, Condition (optional)

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

AWS access keys

A

2 keys per user for programmatic access

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

AWS Cognito?

A

Used for giving temporary access to AWS services when authenticates with external identity provider like Google, FB etc.

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

AWS Cloud 9?

A

Cloud based web IDE

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

Route 53 ?

A

Managed DNS by AWS. Gels very well with the AWS services.

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

Managing subdomains ?

A

WE can have different subdomains like app.humanityolympiad.org point to Ec2, www.humanityolympiad.org pointing to cloudfront and so on

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

Route 53 traffic flow ?

A

There are 7 routing policies within route 53. This is visual editor for working with them.

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

Route 53 routing policies ?

A

Simple (multiple IPs random), weighted (separate for each IP with weight), latency (lowest latency), failover (primary, sec site with health check), geolocation (based on origin location), geoproximity (bias values, region), multi-value (simple with failover)

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

AWS Route 53 Resolver ?

A

For in house data centre and AWS VPC

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

EC2 instance types ?

A

General, Memory, Compute, Accelerated Optimised, Storage Optimised

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

EC2 placement groups ?

A

Logical placement of instances for multi-tenant apps. Is free service.

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

EC2 userdata ?

A

Script that can be run before launching for initial setup

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

EC2 metadata ?

A

Instance details like AMI, IP etc curl /latest/meta-data

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

Instance Profiles ?

A

Permissions and roles for the Ec2

18
Q

EC2 pricing models ?

A

On-demand (least commitment, pay what you use, experiments), Reserved instances (Long term value, upto 75% off, convertible option also, schedule for certain hours as well), Spot (biggest saving), Dedicated Host (no virtual isolation on but single tenants given)

19
Q

AWS AMI are region specific ?

A

Ye

20
Q

What do AMI hold ?

A

Root volume EBS, Launch permissions and block storage keeping track of what volumes to attach on start

21
Q

ASG ?

A

Auto scaling groups allows to increase or decrease capacity. Will keep min capacity always based on health check.

22
Q

ASG scaling policies ?

A

Target tracking (based on CPU, network, requests), Simple (legacy based on alarms), Scaling with steps (based on alarms and can escalate)

23
Q

Attaching Load balancer and Scaling group ?

A

Classic load balancers can be directly attached to ASG, Application and Network through target group

24
Q

ASG Launch Configuration ?

A

Used to setup the instance basics as to what AMI, type of instance etc will be used

25
Q

ELB ?

A

Distributes incoming request to multiple traffics like EC2, containers, IP, Lambda functions

26
Q

ELB rues of traffic ?

A

Listeners (looks for incoming traffic, for classic only this is present and directly attached to EC2), Rules (based on rules decide TG), TG (used to register EC2)

27
Q

When to use ALB vs NLB ?

A

ALB is for web apps, NLB provides better latency so like in video games

28
Q

ELB sticky session ?

A

Useful when we need to direct certain user to a particular TG only due to some local instance storage. Uses cookies for the same.

29
Q

XFF header ?

A

X-Forwarded-For header used to forward the user IP to the EC2 as else gets ELB ip

30
Q

ELB health checks ?

A

Redirects target to healthy but doesn’t kills the instance like Auto scaling group does

31
Q

Cross Zone LB ?

A

Load distributed among all the Availability zones equally

32
Q

ALB can direct based on headers, subdomain, query string ?

A

Yes called request routing

33
Q

EFS ?

A

Elastic file system. Multiple EC2 instances in same VPC can have this file system. Grows and shrinks based on requirement.

34
Q

EBS ?

A

Elastic Block Storage. Highly durable and available solution. Automatically replicated within AZs for protection.

35
Q

Types of EBS ?

A

General purpose, Provisioned IOPS, Throughput optimised HDD, Cold HDD, EBS Magnetic

36
Q

Moving EBS volumes to different AZ and Region?

A

For different AZ take snapshot, create AMI and launch in different AZ.
For different region take snapshot, create AMI, copy AMI and launch in different region

37
Q

EBS encrypt an unencrypted volume ?

A

Take a snapshot, encrypt snapshot, create AMI and launch EC2

38
Q

Can we share an encrypted snapshot ?

A

No

39
Q

Instance store volume ?

A

A temporary storage attached to the host machine. For ephemeral storage.

40
Q

Are snapshots incremental ?

A

Yes only the changes will be stored. Initial snapshot takes more time.