Availability and Scalability - SSL/Connection Drain Flashcards

1
Q

What is the purpose of an SSL/TLS certificate?

A

An SSL/TLS certificate encrypts traffic between clients and load balancers to ensure data is secure during transit (in-flight encryption).

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

How are SSL/TLS certificates typically used in a load balancer setup?

A

The SSL/TLS certificate is attached to the load balancer to secure communication between the client and the load balancer via HTTPS.

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

What is SSL termination in the context of a load balancer?

A

SSL termination is when the load balancer decrypts SSL/TLS traffic (HTTPS) and forwards it to backend systems over HTTP.

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

What service in AWS can you use to manage SSL/TLS certificates?

A

You can manage SSL/TLS certificates using AWS Certificate Manager (ACM).

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

What is the Server Name Indication (SNI)?

A

SNI is an extension to SSL/TLS where the client specifies the hostname during the handshake, allowing the server to choose the correct SSL certificate for the requested domain.

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

Why is SNI important in load balancing?

A

SNI allows multiple SSL certificates to be used on a single load balancer, enabling it to serve multiple domains securely with different certificates.

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

Which AWS load balancers support SNI?

A

Application Load Balancer (ALB), Network Load Balancer (NLB), and CloudFront support SNI.

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

What happens when a client connects to a load balancer using SNI?

A

The client sends the requested hostname during the SSL handshake. The load balancer uses this information to load the appropriate SSL certificate and route the request to the correct target group.

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

How can an ALB or NLB support multiple SSL certificates?

A

An ALB or NLB can support multiple SSL certificates by using SNI, allowing different certificates for different domains or subdomains.

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

What happens if a website does not use SSL/TLS encryption?

A

If SSL/TLS is not used, the browser will display a warning (e.g., a red warning sign) indicating that the traffic is not encrypted, and sensitive information should not be submitted.

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

How do you configure SSL certificates for multiple domains on an ALB or NLB?

A

You can configure multiple SSL certificates on an ALB or NLB by using SNI to assign different certificates to different hostnames, allowing multiple domains to be served securely.

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

What is Connection Draining in the context of AWS Load Balancers?

A

Connection Draining (for Classic Load Balancers) or Deregistration Delay (for ALBs and NLBs) allows existing connections to complete before an EC2 instance is deregistered or marked unhealthy.

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

What happens when an EC2 instance is set to Connection Draining or Deregistration Delay?

A

When an EC2 instance is in the draining state, the load balancer stops sending new requests to it, but allows existing connections to finish within the specified draining period.

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

How does Connection Draining (or Deregistration Delay) work with existing user connections?

A

Users already connected to a draining EC2 instance are given time to finish their ongoing requests. Once their requests are completed, the connections are shut down.

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

How does the load balancer handle new user connections when an EC2 instance is in draining mode?

A

The load balancer will only establish new connections with other healthy EC2 instances, not the instance in draining mode.

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

What is the range of time that the Connection Draining parameter can be configured for?

A

The Connection Draining period can be configured from 1 to 3,600 seconds (1 second to 1 hour).

17
Q

Can you configure Connection Draining for a target group in an ALB or NLB?

A

Yes, in ALBs and NLBs, Deregistration Delay can be configured at the target group level, allowing different settings for each target group.

18
Q
A