DR, Scaling and High Availability Flashcards

1
Q

What does the AWS Application Discovery Service do?

A

Provides information on you on premise sever infrastructure and dependencies

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

Can a launch configuration be changed after creation? Can a launch template?

A

A configuration cannot be changed after creation. You need to create a new one. A launch template is versioned and can be changed after creation.

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

Why would you use a network load balancer?

A

For high throughput TCP traffic. High performance millions requests/second and low latency processing (less than 100msec)

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

If your ELB is setup for SSL (HTTPS) termination and is directing load to EC2 instances where does decryption of the traffic occur?

A

On the ELB. Encryption of traffic is between the web client and the ELB, so the ELB is responsible for encryption.

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

Whats the default cooldown period for an auto-scaling group?

A

300 Seconds

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

What are the 3 types of load balancer’s in AWS?

A

Network (OSI Layer 4 only) Application Classic

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

What is the difference between Horizontal Scaling and High Availability?

A

Horizontal Scaling: Increase the number of instances(or scale them in) - performance HA: Run instances for the app over multple AZ’s

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

You have a client which requires a static IP for your ELB. But, you also need the functions of an application load balancer with https. What could you do?

A

Use a network load balancer with TCP listener and forward the traffic to an ALB. The ALB performs TLS termination and routes requests appropriately.

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

For traffic routed to an instance via an ALB, can the instance see the originating client IP? Why, Why not?

A

No, you can’t. The application will see the Private IP of the ALB. The original IP is located in the X-Fowarded-For header on the request. The ALB performs the connection termination on the inbound request and opens a new connection to the instance using the ALB’s PRIVATE IP.

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

Where does TLS termination occur?

A

On the ELB (NLB, ALB, Classic)

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

For traffic routed via a Network Load Balancer - can the instance see the originating request IP?

A

Yes

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

How do you limit an instance to only serve traffic from requests from an ELB?

A

You reference the ELB’s security group in the inbound rules for the instances security group

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

Is vertical scalability best suited for distributed or non distributed systems?

A

Non distributed - specifically think of RDMS’s

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

What are 3 types of scaling policies?

A

Simple Step Target (Scaling out to maintain a utilisation metric)

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

What is the default termination policy for instances in an ASG?

A

Kill the instance with the oldest launch configuration first in the AZ with the most instances

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

In AWS, Horizontal scalability is referred to as ___ ?

A

Elasticity

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

What are the 3 step adjustments in a step scaling policy

A

Lower Bound for the cloudwatch metric Upper Bound for the cloudwatch metric % Amount To Scale

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

A client needs to whitelist an IP for your load balanced AWS application. What load balancer should you use on the AWS side?

A

A Network Load Balancer as this has a public facing EIP

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

With respect to Load Balancers, what does Server Name Indication (SNI) allow for?

A

SNI allows for an application to have multiple host names via SSL

20
Q

Which ELB’s support SNI?

A

Network and Application. Not supported by classic

21
Q

What do: -Desired -Minimum -Maximum Instances parameters define in an ASG?

A

Desired: ASG will ensure the group always has at least this many running instances Minimum: Minimum number of instances for the group Maximum: Max number of instances for the group

22
Q

For an application or classic LB - what does the use of a cookie enable?

A

Stickiness: Request for same user will be routed to the same instance.

23
Q

How does RDS scale

A

Vertically - although read replicas allow for elasticity

24
Q

Can an ELB scale?

A

Yes, but not instantly. If we anticipate a massive spike in traffic then AWS will need to ‘warm up’ the ELB.

25
Q

What would you need to do to scale an ASG on the number of requests from your application server to your database. What do you need to do?

A

Create a custom metric in Cloudwatch and build an alarm to scale the ASG

26
Q

On a linux EC2 instance, how do you create a custom cloudwatch metrics?

A

Create a shell script on the instance and then use the put-metric-data by calling the AWS CLI from within your monitoring script.

27
Q

You have a set of load balanced instances (via an ALB). One of those instances has significantly higher CPU utilisation than the others. All instances are the same instance type. What is a likely explanation for this?

A

Sticky Sessions may be introduced an inbalance with more sessions being stuck on one instance.

28
Q

During an ASG cool down, what scaling activities can occur?

A

None. Instances cannot be launched or terminated during the cooldown period

29
Q

Is stickiness generated by the application or the ALB?

A

By the ALB. Stickiness is enabled at the target group level.

30
Q

How does an ELB determine if an instance is healthy?

A

ELB performs a healthcheck against a port and route on the instances. If this returns a 200 the instance is healthy.

31
Q

You have an ASG sitting behind an ALB. The ALB healthchecks have reported that an instance is unhealthy. What actions will the ASG take?

A

The ASG will terminate the instance

32
Q

If you have defined a maximum capacity for an ASG, can you scale past this?

A

No. An ASG cannot scale past the max.

33
Q

What can an ALB not route traffic on: Hostname Request Path Geography Source IP

A

Geography - Route 53 would be used this instead

34
Q

What is the main difference between step and simple scaling policy?

A

For a simple scaling policy, the previous scaling activity must complete before the next starts For step, if a previous scaling activity is still running alarm breaches can still be responded to assuming the breaches do not occur within the same alarm range

35
Q

Is there a cost for autoscaling groups? Can a launch configuration be changed after creation?

A

No. Only cost is for resources instantiated by the group. Launch configs cannot be changed after creation - A new one will need to be created.

36
Q

For any load balancer in AWS do you get a static IP or a static hostname?

A

You get a host name. This never resolves to an an IP. Only NLB’s get a static IP.

37
Q

What routing does an ALB support? (Think Layer 7 - not route tables)

A

Routing on Hostname: E.G. users.example.com, payments.example.com Routing on URL path:example.com/users, example.com/payments

38
Q

Which ELB type supports HTTP->HTTPS redirects and dynamic port mapping?

A

An Application Load Balancer

39
Q

For an autoscaling group which is scaling up instances - how are IAM roles applied?

A

IAM Roles are attached to the ASG and applied to each instance on launch

40
Q

What scaling actions can take place in the warmup period in a step scaling group?

A

If a breach occurs outside the threshold which triggered the previous scaling activity, another scaling operation can occur.

41
Q

Can a launch configuration or a launch template be used to launch ec2 instances outside of an ASG?

A

A launch template can be used for spinning up a spot instance or a spot fleet

42
Q

What 3 protocols does an ALB support?

A

HTTP, HTTPS, Web Sockets

43
Q

Which ELBs support target registration external to a VPC?

A

NLB, ALB

44
Q

If there are multiple instances in an ASG with the same aged launch configuration - meaning that both can be terminated, what action will AWS take?

A

The instance closest to the next billing hour will be terminated. If there are multiple instances in this state, one will be terminated at random.

45
Q

We need to configure an autoscaling group to add more instances in proportion to CPU utilisation on each instance. What policy would you use?

A

Step: This allows you you to add more instances based on an aggregate metric such as CPU utilisation. You WOULDN’T use target tracking as this is used to scale instances in and out based on a target resource state. I.e. it will maintain enough instances to hold at a target 50% utilisation

46
Q

For what time periods can data lifecycle manager take snapshots of EBS volumes?

A

12 AND 24 Hours

47
Q

What is AWS data synch?

A

Allow large scale data migration from an on premise NAS - NFS or SMB. Requires an agent to be installed.