AWS - Elastic Load Balancer - multichoice questions

Question 1

You are designing the architecture for a web application that will be deployed on AWS. The application consists of multiple services running on Amazon EC2 instances. The services communicate over both HTTP and TCP protocols.

Which type of Elastic Load Balancer (ELB) would be most suitable for this scenario?

Question 2

In the security group of an Application Load Balancer (ALB), port 80 is configured to be open for incoming traffic. However, in the security group of the EC2 instances hosting the application, port 80 is not allowed.

Given this configuration, would a request from a client to the application succeed?

Question 3

After experiencing a DDoS attack during the night, you discovered that your instances are accessed directly using their public IP addresses, allowing bypass the Application Load Balancer (ALB) that routes traffic to the instance.

How can you overcome this vulnerability?

Question 4

You have set up an Application Load Balancer (ALB) to distribute incoming traffic across 2 instances. But when you tested how does the balance load, you've noticed that requests are always routed to the same EC2 instance.

How could that behavior be explained?

Question 5

You are managing a web service that offer to two types of requests: short-lived requests that require quick response times and heavy, long-lived requests that involve significant processing and take a longer time to complete. The service runs on multiple instances behind an Application Load Balancer (ALB).

Considering this scenario, which load balancing algorithm would be the preferred choice for distributing traffic to the instances?