Section 6 - 8 Flashcards

1
Q

T/F - Elastic Network Interface (ENI) can be attached to EC2 instances in another AZ.

A

False. ENIs are bound to a specific AZ and cannot be attached to EC2 instances outside of that AZ

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

The io1/io2 family of EBS volumes can use EBS multi-attach. How many instances can be attached to a single EBS volume at a time?

A

16 instances

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

T/F - EFS is only compatible with Windows based AMIs

A

False. EFS is only compatible with Linux based AMIs

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

You are running a high-performance database that requires an IOPS of 310,000 for its underlying storage. What do you recommend?

A

EC2 Instance Store

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

You are running a website on 10 EC2 instances fronted by an Elastic Load Balancer. Your users are complaining about the fact that the website always asks them to re-authenticate when they are moving between website pages. You are puzzled because it’s working just fine on your machine and in the Dev environment with 1 EC2 instance. What could be the reason?

A

You need to enable Sticky Sessions to ensure that the clients traffic is always redirecting to the same target (in this case the EC2 instance).

Essentially the client is getting sent to other EC2 instances by the load balancer while they’re navigating the website.

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

Your website is using an ALB to distribute traffic to your EC2 instances. You website only sees the traffic coming from your own ALBs private IPv4 addresses. If you modify your websites backend, where can you request the clients IP address from?

A

The X-Forwarded-For header

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

T/F - ALB does not support the TCP protocol

A

True, ALB supports HTTP/HTTPS, and WebSocket

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

T/F - ALBs can route traffic to different Target Groups based on URL Path, Hostname, HTTP Headers, and Query Strings.

A

True

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

T/F - ALBs can route traffic to different Target Groups based on the clients geographical location

A

False, do not confuse an ALB with Route 53

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

T/F - An ALB can have an NLB as its target group

A

False, an ALB cannot route traffic to a lower level in the OSI model (it would be going backwards)

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

T/F - An NLB can have an ALB as its target group

A

True, since an NLB operates at a lower layer, it can use an ALB as a target group

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

You need a fixed static IP address for your end-users. What type of Elastic Load Balancer would you use?

A

Network Load Balancer, ALBs do not have a static IP

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

T/F - Both NLBs and ALBs have a static DNS name

A

True

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

T/F - Network Load Balancer has 1 static IP address per AZ

A

True

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

Which ELB can you attach a Elastic IP address to?

A

An NLB, ALBs cannot have Elastic Ip addresses

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

You have an ALB that is configured to redirect traffic to 3 Target Groups with these hostnames: users.example.com, api.external.example.com, and checkout.example.com.

You would like to configure HTTPS for each of these hostnames. How do you configure the ALB to make this work?

A

Use Server Name Indication (SNI)

17
Q

How does SNI work?

A

It loads multiple SSL certificates on to 1 web server, to serve multiple pages

18
Q

In your ASG you set both “desired” and “maximum” capacity to 3. You set up CloudWatch to scale out your ASG when CPU utilization reaches 60%. What happens to the desired/max capacity when CPU utilization reaches 60%?

A

Absolutely nothing. Maximum obviously stays the same, and Desired cannot go higher than maximum.

19
Q

You have an Auto Scaling Group fronted by an Application Load Balancer. You have configured the ASG to use ALB Health Checks, then one EC2 instance has just been reported unhealthy. What will happen to the EC2 instance?

A

The ASG will terminate the instance

20
Q

Which protocols are supported in NLB Health Checks?

A

TCP, HTTP, and HTTPS