ELB & ASG Quiz Flashcards

1
Q

What is the main purpose of High Availability in the Cloud?

A

Application thriving even in case of a disaster.

High Availability means applications running at least in two AZs to survive a data center loss.

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

Which AWS offered Load Balancer should you use to handle hundreds of thousands of connections with low latency?

1 - Network Load Balancer
2 - Application Load Balancer
3 - Elastic Load Balancer

A

Network Load Balancer

A Network Load Balancer can handle millions of requests per second with low-latency. It operates at Layer 4, and is best-suited for load-balancing TCP, UDP, and TLS traffic with ultra high-performance.

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

Changing an EC2 Instance Type from a t3a.medium to a t3a.2xlarge is an example of?

1 - Horizontal Scaling
2 - High Availability
3 - Agility
4 - Vertical Scaling

A

Vertical Scaling

Vertical scaling means increasing the size of the instance. Changing from a t3a.medium to a t3a.2xlarge is an example of size increase.

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

What is high availability?

A

High Availability means running your application/system in at least 2 Availability Zones.

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

What can you use to handle quickly and automatically the changing load on your websites and applications by adding compute resources?

1 - Elastic Load Balancer (ELB)
2 - A bigger instance
3 - An Auto Scaling Group
4 - Health checks on your EC2 instances

A

An Auto Scaling Group

An Auto Scaling Group (ASG) can automatically and quickly scale-in and scale-out to match the changing load on your applications and websites.

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

Why use an Elastic Load Balancer (ELB)?

A

An Elastic Load Balancer is used to spread the load across downstream instances, not handling quickly and automatically the changing load on your applications and websites.

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

Which of the following statements is INCORRECT regarding Auto Scaling Groups?

1 - Replace unhealthy instances
2 - Are cost effective running at optimal capacity
3 - Automatically register new instances to a load balancer
4 - Automatically changing the EC2 instance types

A

Automatically changing the EC2 instance types

Auto Scaling Groups cannot change the EC2 Instances Types

Auto Scaling Groups can add or remove instances, but from the same type. They cannot change the EC2 Instances Types on the fly.

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

Can Auto Scaling Groups replace unhealthy instances by terminating them and creating new healthy instances?

A

Yes

Auto Scaling Groups can replace unhealthy instances by terminating them and creating new healthy instances.

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

Which Load Balancer is best suited for HTTP/HTTPS load balancing traffic?

1 - Network Load Balancer
2 - Classic Load Balancer
3 - Elastic Load Balancer
4 - Application Load Balancer

A

Application Load Balancer

Application Load Balancers are used for HTTP and HTTPS load balancing. They are the best-suited for this kind of traffic.

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

Which AWS service offers easy horizontal scaling of compute capacity?

1 - EBS - Elastic Block Storage
2 - AMI - Amazon Machine Image
3 - IAM - Identity & Access Management
4 - ASG - Auto Scaling Groups (ASG)

A

Auto Scaling Groups (ASG)

Auto Scaling Groups (ASG) offers the capacity to scale-out and scale-in by adding or removing instances based on demand.

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

Which of the following statements is NOT a feature of Load Balancers?

1 - Do regular health checks on your EC2 instances
2 - Spread load across multiple downstream instances
3 - Handle failures of downstream instances
4 - Back-end autoscaling

A

Back-end autoscaling

Load Balancers cannot help with back-end autoscaling. You should use Auto Scaling Groups.

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

How can a company enable elasticity for an application running on Amazon EC2?

  1. By using EC2 Auto Scaling
  2. By using Elastic Load Balancing
  3. By configuring multi-az
  4. By enabling failover in EC2
A

Amazon EC2 Auto Scaling enables elasticity for EC2 by launching and terminating instances as demand changes

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

Which type of Elastic Load Balancer can direct traffic based on the domain name?

  1. Classic Load Balancer
  2. Network Load Balancer
  3. Application Load Balancer
  4. EC2 Load Balancer
A
  1. Application Load Balancer

The application load balancer can do host-based routing which means it can direct traffic based on information in the host header such as a domain name

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

How does Amazon EC2 Auto Scaling assist with cost-effectiveness?

  1. By choosing the most effective instance type
  2. By balancing load between instances evenly
  3. By launching and terminating instances as demand changes
  4. By automating application failover
A

Amazon EC2 Auto Scaling launches and terminates instances as demand for your application changes, this ensures you are only paying for instances that you need to service demand

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

How does Elastic Load Balancing (ELB) assist with fault tolerance?

  1. By distributing connections to multiple back-end instances
  2. By directing traffic according to latency
  3. By caching content closer to users
  4. By automatically launching instances
A
  1. By distributing connections to multiple back-end instances

ELB distributes connections to multiple back-end instances and this means your application is fault tolerant. You should couple this with Auto Scaling to ensure the right number of back-end instances are available

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

Which of the following statements is INCORRECT about Elastic Load Balancing?

  1. ELB can distribute connections across AZs
  2. ELB can be internet facing
  3. ELB enables high availability & fault tolerance
  4. ELB can distribute connections across regions
A

4.ELB can distribute connections across regions

ELB cannot distribute connections across regions, only availability zones. To direct traffic across regions use Amazon Route 53

17
Q

What does Elastic Load Balancing use to ensure instances are available?

  1. EC2 status checks
  2. CloudWatch Metrics
  3. Scaling Plans
  4. Health Checks
A

Health checks are used by ELB to check that an instance is available and healthy

18
Q

Which type of Elastic Load Balancer routes connections based on IP protocol data at layer 4 only?

  1. Classic Load Balancer
  2. Network Load Balancer
  3. Application Load Balancer
  4. EC2 Load Balancer
A

The NLB operates at layer 4 of the OSI model only, routing connections based on IP protocol data

19
Q

What type of template is used by Amazon EC2 Auto Scaling to define instance family, AMI key pair, and security groups?

  1. Scaling Plan
  2. Launch Configuration
  3. Scaling Policy
  4. Auto Scaling Group
A

A launch configuration is the template used to create new EC2 instances and includes parameters such as instance family, instance type, AMI, key pair and security groups